Products

@can('create', App\Models\Product::class) Create Product @endcan
@forelse($products as $product) @empty @endforelse
Name @if($sortBy === 'name') @endif Sale Price @if($sortBy === 'sale_price') @endif Purchase Price @if($sortBy === 'purchase_price') @endif Supplier Stock Quantity @if($sortBy === 'stock_quantity') @endif Expired Date @if($sortBy === 'expired_date') @endif Actions
{{ $product->name }} @if($product->description)
{{ Str::limit($product->description, 50) }} @endif
{{ number_format($product->sale_price, 2) }} {{ $product->purchase_price ? number_format($product->purchase_price, 2) : '-' }} @if($product->supplier) {{ $product->supplier->name }} @else - @endif @if($product->stock_quantity > 10) {{ $product->stock_quantity }} @elseif($product->stock_quantity > 0) {{ $product->stock_quantity }} @else 0 @endif @if($product->expired_date) {{ $product->expired_date->format('Y-m-d') }} @else - @endif
@can('view', $product) @endcan @can('update', $product) @endcan @can('delete', $product) @endcan
No products found
{{ $products->links() }}
@push('scripts') @endpush