Status
{{ \App\Utils\EcommerceService::STATUS_LABELS[$order->status] ?? $order->status }}
Fulfillment
{{ ucfirst($order->fulfillment_method) }}
@if($order->pickupLocation)
Pickup branch
{{ $order->pickupLocation->name }}
@endif
@if($order->driver)
Driver
{{ $order->driver->user_full_name }}
@endif
@if($order->delivery_tracking_code)
Tracking code
{{ $order->delivery_tracking_code }}
@endif
@if($order->proof_of_delivery_path)
View protected proof of delivery
@endif
@if($order->cancellation_reason)
Cancellation reason
{{ $order->cancellation_reason }}
@endif
Customer
{{ $order->customer_name }}
{{ $order->customer_email ?: 'No email' }}
{{ $order->customer_phone }}
@if($order->delivery_address)
Delivery address
{{ data_get($order->delivery_address, 'address_line_1') }} {{ data_get($order->delivery_address, 'address_line_2') }}
{{ data_get($order->delivery_address, 'barangay') }} {{ data_get($order->delivery_address, 'city') }} {{ data_get($order->delivery_address, 'province') }} {{ data_get($order->delivery_address, 'postal_code') }}
@if(data_get($order->delivery_address, 'delivery_instructions'))
Instructions
{{ data_get($order->delivery_address, 'delivery_instructions') }}
@endif
@endif
@if($order->customer_notes)
Customer note
{{ $order->customer_notes }}
@endif
Payment
{{ ucfirst(str_replace('_',' ',$order->payment_method)) }}
{{ ucfirst(str_replace('_',' ',$order->payment_status)) }}
@if($order->pos_transaction_id)
@php($posInvoice = \App\Transaction::whereKey($order->pos_transaction_id)->value('invoice_no'))
POS sale recorded: invoice {{ $posInvoice ?: '#'.$order->pos_transaction_id }}
@endif
@if($order->paymentAttempt)
Provider: {{ $order->paymentAttempt->provider }}
Reference: {{ $order->paymentAttempt->provider_reference ?: $order->paymentAttempt->merchant_reference }}
Provider status: {{ $order->paymentAttempt->status }}
@endif
@if(\App\Utils\EcommerceManualPaymentService::isManualMethod($order->payment_method))
A screenshot is supporting evidence only. Confirm the transaction inside the actual receiving account before recording any amount.
Total received₱{{ number_format($order->manual_payment_received_total,2) }}
Total refunded₱{{ number_format($order->manual_payment_refunded_total,2) }}
Remaining₱{{ number_format(max(0,(float)$order->final_total-(float)$order->manual_payment_received_total),2) }}
@if((float)$order->manual_payment_overpayment > 0)
Overpayment to resolve: ₱{{ number_format($order->manual_payment_overpayment,2) }}
@endif
@forelse($order->manualPaymentSubmissions as $submission)
Submission #{{ $submission->id }} {{ ucfirst(str_replace('_',' ',$submission->status)) }}
Receiving account: {{ data_get($submission->account_snapshot,'label','Legacy receiving account') }}
Reference: {{ $submission->reference_number }}
Expected: ₱{{ number_format($submission->expected_amount,2) }}
Customer reported: ₱{{ number_format($submission->customer_amount ?? $submission->expected_amount,2) }}
Transaction date: {{ optional($submission->transaction_date)->format('M d, Y') ?: 'Not recorded' }}
@if($submission->actual_received_amount !== null)Actual received: ₱{{ number_format($submission->actual_received_amount,2) }} · {{ ucfirst($submission->payment_classification ?: 'pending classification') }}
@endif
Submitted: {{ $submission->created_at->format('M d, Y h:i A') }}
@if(!empty($submission->risk_flags))
Automatic risk flags@foreach($submission->risk_flags as $flag)
{{ ucfirst(str_replace('_',' ',$flag)) }}
@endforeach
@endif
@if($submission->proof_path)
Open protected payment screenshot
@else
The proof image was removed under the retention policy. Its hashes, amounts, reference record, and audit history remain.
@endif
@if($submission->first_reviewed_at)
First approval {{ $submission->first_reviewed_at->format('M d, Y h:i A') }} by {{ optional($submission->firstReviewer)->user_full_name ?: 'staff' }}.
@endif
@if($submission->reviewed_at)
Final review {{ $submission->reviewed_at->format('M d, Y h:i A') }} by {{ optional($submission->reviewer)->user_full_name ?: 'staff' }}.
@if($submission->review_notes)
Review note:
{{ $submission->review_notes }}
@endif @endif
@if(in_array($submission->status,['submitted','pending_second_approval'],true) && $order->status === 'pending_payment')
@endif
@empty
The customer has not uploaded payment proof yet.
@endforelse
@if((float)$order->manual_payment_received_total > (float)$order->manual_payment_refunded_total)
@endif
@if($order->manualPaymentRefunds->isNotEmpty())
Refund ledger
@foreach($order->manualPaymentRefunds as $refund)
₱{{ number_format($refund->amount,2) }} · {{ ucfirst($refund->status) }}
Reference: {{ $refund->reference_number }}
{{ $refund->reason }}
{{ $refund->processed_at->format('M d, Y h:i A') }} by {{ optional($refund->processor)->user_full_name ?: 'staff' }}
@if($refund->proof_path)
Open protected refund receipt
@endif
@if(!$refund->acknowledged_at)
@else
Customer acknowledgement recorded {{ $refund->acknowledged_at->format('M d, Y h:i A') }}.
@endif
@endforeach
@endif
@endif
@if(!\App\Utils\EcommerceManualPaymentService::isManualMethod($order->payment_method))
@endif
@if($order->returns->isNotEmpty())