@extends('layouts.admin') @section('content')

folder Catalogue

@if(sizeof($categories) == 0)
@if(auth()->user()->role == "Webmaster") {!! Html::link(action('\Plugins\Catalogue\Controller\CatalogueController@edit_parametres'), "Modifier les paramètres du catalogue", array("class" => "btn btn-sm bg-black waves-effect m-l-15 pull-right")) !!} @endif

Liste des catégories

Aucune catégorie pour le moment.

add
@endif @if(sizeof($categories) > 0 && sizeof($last_produits) == 0)
@if(auth()->user()->role == "Webmaster") {!! Html::link(action('\Plugins\Catalogue\Controller\CatalogueController@edit_parametres'), "Modifier les paramètres du catalogue", array("class" => "btn btn-sm bg-black waves-effect m-l-15 pull-right")) !!} @endif

Liste des produits

Aucun produit pour le moment.

add
@endif @if(sizeof($last_produits) > 0)
@if(auth()->user()->role == "Webmaster") {!! Html::link(action('\Plugins\Catalogue\Controller\CatalogueController@edit_parametres'), "Modifier les paramètres du catalogue", array("class" => "btn btn-sm bg-black waves-effect m-l-15 pull-right")) !!} @endif

Liste des 25 derniers produits

@foreach ($last_produits as $produit) @endforeach
ID Nom du produit Catégorie par défaut Catégories associées Prix Actif MEA Actions
{{ $produit->id }} {{ $produit->libelle }} {{ $produit->defaut->libelle }} @if(count($produit->categories)) @foreach($produit->categories as $categorie) {{ $categorie->libelle }}, @endforeach @else Sans @endif {{ $produit->prix }} € @if($produit->actif)check_circle @else cancel @endif @if($produit->mea)check_circle @else cancel @endif
add {!! Html::link(action('\Plugins\Catalogue\Controller\CatalogueController@produit'), 'Liste complète', array("class" => "btn btn-sm bg-teal waves-effect m-l-15 m-t-15 pull-right")) !!}
@endif @if (sizeof($categories) > 0) {!! Form::open(array("class" => "form-horizontal")) !!}

Liste des catégories

@foreach ($categories as $categorie) @foreach ($categorie['children'] as $firstChild) @foreach ($firstChild['children'] as $secondChild) @foreach ($secondChild['children'] as $thirdChild) @foreach ($thirdChild['children'] as $lastChild) @endforeach @endforeach @endforeach @endforeach @endforeach
ID Libellé de la catégorie Image de couverture de la catégorie Actions
{{ $categorie->id }} {{ $categorie->libelle }} {!! Html::image('plugins/catalogue/img/categories/' . $categorie->id . "/couverture.jpg", "", array("class" => "img-responsive", "width" => 110)) !!}
{{ $firstChild->id }} subdirectory_arrow_right {{ $firstChild->libelle }} {!! Html::image('plugins/catalogue/img/categories/' . $firstChild->id . "/couverture.jpg", "", array("class" => "img-responsive", "width" => 110)) !!}
{{ $secondChild->id }} subdirectory_arrow_right {{ $secondChild->libelle }} {!! Html::image('plugins/catalogue/img/categories/' . $secondChild->id . "/couverture.jpg", "", array("class" => "img-responsive", "width" => 110)) !!}
{{ $thirdChild->id }} subdirectory_arrow_right {{ $thirdChild->libelle }} {!! Html::image('plugins/catalogue/img/categories/' . $thirdChild->id . "/couverture.jpg", "", array("class" => "img-responsive", "width" => 110)) !!}
{{ $lastChild->id }} subdirectory_arrow_right {{ $lastChild->libelle }} {!! Html::image('plugins/catalogue/img/categories/' . $lastChild->id . "/couverture.jpg", "", array("class" => "img-responsive", "width" => 110)) !!}
add
{!! Form::close() !!} @endif @stop @section('js') @endsection