訂單編號 | 客戶 | 地址 | 送達時間 | 商品 |
---|---|---|---|---|
{{ $order->id }} @if ($order->paid == 0) (未付款) @endif | {{ $order->customer_name }} | {{ $order->deliver_address }} | @php $arrivalHour = $order->arrival_time; $arrivalAmPm = $arrivalHour >= 12 ? 'PM' : 'AM'; $formattedHour = $arrivalHour % 12; $formattedHour = $formattedHour ? $formattedHour : 12; // Convert 0 to 12 for 12 AM $formattedTime = $formattedHour . ':00 ' . $arrivalAmPm; @endphp {{ $formattedTime }} |
@foreach ($order->items as $item)
{{ $item->product->name_chi ?? '未知' }} x {{ $item->qty }} @endforeach |
{{ $productName }}: {{ $quantity }}
@endforeach @endforeach