@extends('layouts.app') @section('title', 'Products') @section('content')

Products

Menu items and stock-tracked ingredients across all departments.

@can('products.manage') @endcan
@can('products.manage') {{-- Bulk delete: the checkboxes sit in the table and point at this form with form="bulk-delete-form" (forms cannot be nested). --}}
@csrf @method('DELETE')

selected

@endcan
@can('products.manage')@endcan @can('data.costs')@endcan @forelse ($products as $product) @php $stockQty = $product->stocks->sum('quantity_on_hand'); @endphp @can('products.manage')@endcan @can('data.costs') @endcan @empty @endforelse
ProductSectionDepartmentSellingCost MarginTaxStock

{{ $product->name }}

{{ $product->sku }}

{{ $product->section->name ?? '—' }} {{ $product->department->name ?? '—' }} {{ number_format($product->selling_price, 2) }}{{ number_format($product->cost_price, 2) }} {{ $product->grossMarginPercent() }}%{{ $product->tax_type->label() }} @if ($product->track_stock) {{ number_format($stockQty, 1) }} @else N/A @endif @can('products.manage') Edit
@csrf @method('DELETE')
@endcan
No products found.
{{ $products->links() }}
@endsection