@include('links.header') Product List
@if(Auth::user()->role_id==1) Add Product @endif

@if (Session::has('msg')) @endif @if (Session::has('msg_e')) @endif
@if(!empty($product_list)) @foreach($product_list AS $index=>$value) @foreach($value->product_descriptions as $desp) @endforeach @endforeach @endif
# Title Category State URL Alias Is Featured Status Date Action
{{ $index+1 }} {{ $desp->title }} {{ $value->parent_category_name }} @if( $value->category_name ) >> {{ $value->category_name }} @endif {{ $value->state }} {{ $value->url_alias }} {{ $value->is_featured ? ' Yes ' : 'No' }} @if($value->status == 1) {{ 'Active'}} @else {{'In-Active'}} @endif {{ $value->created_at->format('d/m/Y H:i') }} Edit    {!! Form::open(array( 'style' => 'display: inline-block;', 'method' => 'DELETE', 'onsubmit' => "return confirm('Are you sure. You want to delete record!');", 'route' => ['products.destroy', $value->id])) !!} {!! Form::submit('Delete', array('class' => 'btn btn-danger')) !!} {!! Form::close() !!}
# Title URL Alias Status Action
@include('links.footer')