Order Food

{{-- SUCCESS MESSAGE --}} @if (session()->has('success'))
{{ session('success') }}
@endif {{-- ERROR MESSAGE --}} @if ($errors->any())
Please fix the errors below.
@endif {{-- BURGERS --}}

Burgers

@foreach($items as $item) @if($item->category === 'burger') @php $itemId = $item->id; $inCart = isset($this->cart[$itemId]); $qty = $inCart ? $this->cart[$itemId]['quantity'] : 0; @endphp
{{-- Item name + description always visible --}}
{{ $item->name ?? 'N/A' }}
@if(!empty($item->description))
{{ $item->description }}
@endif
R{{ number_format($item->price ?? 0, 2) }}
{{-- Quantity controls --}}
@if($inCart) {{ $qty }} @endif
{{-- Per-item note only shows if in cart --}} @if($inCart) @endif
@endif @endforeach {{-- KOTAS --}}

Kotas

@foreach($items as $item) @if($item->category === 'kota') @php $itemId = $item->id; $inCart = isset($this->cart[$itemId]); $qty = $inCart ? $this->cart[$itemId]['quantity'] : 0; @endphp
{{-- Item name + description always visible --}}
{{ $item->name ?? 'N/A' }}
@if(!empty($item->description))
{{ $item->description }}
@endif
R{{ number_format($item->price ?? 0, 2) }}
{{-- Quantity controls --}}
@if($inCart) {{ $qty }} @endif
{{-- Per-item note only shows if in cart --}} @if($inCart) @endif
@endif @endforeach {{-- KOTAS --}}

Chicken and Plates

@foreach($items as $item) @if(!in_array($item->category, ['burger', 'kota'])) @php $itemId = $item->id; $inCart = isset($this->cart[$itemId]); $qty = $inCart ? $this->cart[$itemId]['quantity'] : 0; @endphp
{{-- Item name + description always visible --}}
{{ $item->name ?? 'N/A' }}
@if(!empty($item->description))
{{ $item->description }}
@endif
R{{ number_format($item->price ?? 0, 2) }}
{{-- Quantity controls --}}
@if($inCart) {{ $qty }} @endif
{{-- Per-item note only shows if in cart --}} @if($inCart) @endif
@endif @endforeach
{{-- Customer Phone --}} @error('customer_phone')

{{ $message }}

@enderror {{-- Fulfilment type --}} {{-- Total --}}
Total: R{{ number_format($this->total, 2) }}
{{-- Submit button --}}