{{-- 側滑面板標題 --}}
{{ __('Payment Status') }}
{{ __('Payment Type') }}
{{ $order->payment_type_label }}
{{ __('Dispense Status') }}
{{ __('Transaction Time') }}
{{ $order->created_at->format('Y-m-d H:i:s') }}
{{ __('Machine Name') }}
{{ $order->machine->name ?? __('Unknown') }}
{{ __('Machine Serial') }}
{{ $order->machine->serial_no ?? '---' }}
{{ __('Machine Flow ID') }}
{{-- 顯示去前綴序號的乾淨流水號(DB 仍存完整 serial+flow_id 唯一值供後台判斷) --}}{{ $order->display_flow_id }}
{{ __('Staff Name') }}
{{ $order->staffCardLog->staffCard->name }}
{{ __('Employee ID') }}
{{ $order->staffCardLog->staffCard->employee_id }}
{{ __('Card UID') }}
{{ $order->staffCardLog->staffCard->card_uid }}
{{ __('Notes') }}
{{ $order->staffCardLog->staffCard->notes }}
{{ __('Pickup Recipient (Prescription Slip)') }}
{{ $order->masked_pickup_recipient }}
{{ $item->product_name }}
${{ number_format($item->subtotal, 0) }}
| {{ __('Slot') }} | {{ __('Product') }} | {{ __('Status') }} |
|---|---|---|
| #{{ str_pad($dispense->slot_no, 2, '0', STR_PAD_LEFT) }} |
{{ $dispense->product->localized_name ?? __('Unknown Product') }} |
@php
$dStatusMap = [
'success' => 'active',
'failed' => 'error',
'pending' => 'pending',
'1' => 'active',
'0' => 'error',
];
$dLabelMap = [
'success' => __('Success'),
'failed' => __('Failed'),
'pending' => __('Pending'),
'1' => __('Success'),
'0' => __('Failed'),
];
$statusValue = (string)($dispense->dispense_status ?? 'pending');
$ds = $dStatusMap[$statusValue] ?? 'slate';
$dl = $dLabelMap[$statusValue] ?? $statusValue;
@endphp
|
{{ $order->invoice->invoice_no ?: '---' }}
{{ __('Issued At') }}
{{ optional($order->invoice->invoice_date)->format('Y-m-d') ?: '---' }}
{{ __('Remark') }}