@foreach($product as $key => $product_res) @endforeach
Id Title Slug Is Parent Category Is Featured Photo Description status Actions
{{ $product_res->id }} {{ $product_res->title }} {{ $product_res->slug }} {{(( $product_res->is_parent==1)? 'Yes': 'No')}} {{ $product_res->parent_info->title ?? ''}} {{(( $product_res->is_featured==1)? 'Yes': 'No')}} @if(!empty($product_res->filename)) @if(in_array(pathinfo($product_res->filename, PATHINFO_EXTENSION), ['jpg', 'jpeg', 'png', 'gif'])) filename")}}" alt="Example Image" style="max-width: 100%; height: auto;"> @else filename")}}" download>Download {{ basename($product_res->filename) }} @endif @else avatar.png @endif {{ $product_res->summary }} {{ $product_res->status }}
{{ $product->links('vendor.pagination.custom') }}