@extends('product::layouts.master') @section('title') product list @stop @section('content')
@if (Session::has('successMSG'))

{{Session::get('successMSG')}}

@elseif (Session::has('errorMSG'))

{{Session::get('errorMSG')}}

@endif @component('product::components.validationError',['errors'=>$errors])@endcomponent

product list

@foreach($products as $product) @component('product::components.showModal',['product'=>$product])@endcomponent @endforeach
id name price description status image operation
{{$product->id}} {{$product->name}} {{$product->price}} {{str_limit($product->description,50)}} @php echo empty($product->status)?'inactive':'active'; @endphp {{$product->name}}
{{$products->links()}}
@stop @push('js') @endpush