@extends('layouts.app') @section('content')
@include('layouts.partials.breadcrumb', ['title' => $title])
@can('product.create') Add @endcan
@forelse ($products as $key => $product) {{-- @dd($product->fabricCategory) --}} @empty @endforelse
S.N Title Fabric Category Product Category Product Code Status Action
{{ $key + 1 }} {{ $product->name }} {{ optional($product->fabricCategory)->title }} {{ optional($product->category)->title }} {{ $product->code }} {!! $product->status_name !!}
@can('product.show') @endcan @can('product.edit') @endcan @can('product.destroy') @endcan
@endsection