@extends('layouts.app') @section('content')
@include('layouts.partials.breadcrumb', ['title' => $title])
@can('product.create') Add @endcan
@forelse ($products as $key => $product) @empty @endforelse
S.N Name Price Quantity Category Sub Category Supplier Warehouse Status Action
{{ $key + 1 }} {{ $product->name }} {{ $product->price }} {{ $product->qty }} {{ optional($product->category)->title }} {{ optional($product->subCategory)->title }} {{ optional($product->supplier)->supplier_name }} {{ optional($product->warehouse)->title }} {!! $product->status_name !!}
@can('product.show') @endcan @can('product.edit') @endcan @can('product.destroy') @endcan
@endsection