@extends('layouts.client') @section('content-header')

Produits {{ $products->total() }} produits

@endsection @section('content')

{!! Form::open(['route' => ['clients.products.index'], 'class' => '', 'method' => 'GET']) !!}
@if(request('q')) @endif Ajouter un produit
{!! Form::close() !!}
@foreach($products as $product) @endforeach
ID Ref Nom du produit Categorie Marque Actif Action
{{ $product->id }} {{ $product->ref }} {{ $product->name }} {{ isset($product->category)?$product->category->name:null }} {{ isset($product->brand)?$product->brand->name:null }} @if($product->published) @else @endif
@endsection