@vite(['resources/css/app.css']) @include('includes.admin-header')

Order Details

All Orders Pending Orders ({{ $pendingCount }}) Shipped Orders ({{ $shippedCount }})
@foreach($checkouts as $checkout)

Order #{{ $checkout->id }} - {{ $checkout->first_name }} {{ $checkout->last_name }} {{ $checkout->status == 0 ? 'Pending' : 'Shipped' }}

Order Summary

@php $cartData = json_decode($checkout->cart_data, true); $grandTotal = $cartData['grand_total'] ?? 0; unset($cartData['grand_total']); @endphp @foreach($cartData as $item)
{{ $item['name'] }}

{{ $item['name'] }}

Price: ₱{{ number_format($item['price'], 2) }}

Shipping: ₱{{ number_format($item['shippingFee'] ?? 0, 2) }}

Quantity: {{ $item['quantity'] }}

@endforeach
Grand Total: ₱{{ number_format($grandTotal, 2) }}

Customer Information

Name: {{ $checkout->first_name }} {{ $checkout->last_name }}

Phone: {{ $checkout->phone }}

Address: {{ $checkout->address }}, {{ $checkout->barangay }}, Zip: {{ $checkout->zip_code }}

Proof of Payment

Proof of Payment
Click to Expand
Proof of Payment
@csrf @method('PUT')
@endforeach

Total: {{ $checkouts->total() }} results

@foreach ($checkouts->links()->elements[0] as $page => $url) {{ $page }} @endforeach