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