{{-- Success/Error Messages --}} @if (session()->has('message')) @endif @if (session()->has('error')) @endif {{-- Products Card --}}
{{-- Header --}}

Products Management

{{-- Search & Filters --}}
{{-- Search --}}
{{-- Per Page --}}
{{-- Products Table --}}
@forelse($products as $product) {{-- Product Name --}} {{-- Code --}} {{-- SKU --}} {{-- KKM --}} {{-- QR Tagged Count --}} {{-- Actions --}} @empty @endforelse
Product Name Code SKU KKM QR Tagged Actions
{{ $product->name }}
@if($product->manufacture_dt || $product->expiry_dt)
@if($product->manufacture_dt) Mfg: {{ $product->manufacture_dt->format('M Y') }} @endif @if($product->expiry_dt) | Exp: {{ $product->expiry_dt->format('M Y') }} @endif
@endif
{{ $product->code }}
{{ $product->sku ?: '-' }}
{{ $product->kkm ?: '-' }}
@if($product->halal_status)
✓ Halal: {{ $product->halal_status->format('M Y') }}
@endif
{{ $product->qr_codes_count }} QR Codes
@if($search) No products found matching your search. @else No products created yet. Click "Add New Product" to get started. @endif
{{-- Pagination --}}
{{ $products->links() }}
{{-- Add/Edit Product Modal --}} @if($showModal) @endif