{{-- Stop trying to control. --}}
บิล
@foreach($this->ordersDetailBills() as $row) @php $toppings = $this->toppingsGrouped()[$row->orders_detail_id] ?? collect(); @endphp @foreach($toppings as $trow) @endforeach @endforeach
รหัสคำสั่งซื้อ {{ $this->ordersBills()?->orders_id }}
รายการ ราคา
{{ $row->product_name }} ({{ number_format($row->quantity, 0) }} x {{ $row->product_price }}) {{ number_format($row->product_price * $row->quantity, 2) }}
ไซต์: {{ $row->size_name }} ({{ number_format($row->quantity, 0) }} x {{ $row->size_price }}) {{ number_format($row->size_price * $row->quantity, 2) }}
ประเภท: {{ $row->type_name }} ({{ number_format($row->quantity, 0) }} x {{ $row->type_price }}) {{ number_format($row->type_price * $row->quantity, 2) }}
ประเภท: {{ $trow->topping_name }} ({{ number_format($row->quantity, 0) }} x {{ number_format($trow->topping_price, 2) }}) {{ number_format($trow->topping_price * $row->quantity, 2) }}
รวม
{{ number_format($this->ordersBills()?->total_amount ?? 0, 2) }}