{{ __('frontend::lang.page.profile_order_history.title') }}

{{ __('frontend::lang.page.profile_order_history.title_desc') }}

@if (!empty($cards[0])) @php $status_class = [ 'PAYMENT' => [ 'class' => 'bg-yellow-100 text-yellow-800 border border-yellow-200', 'icon' => 'fa-solid fa-box-open', 'text' => __('frontend::lang.page.profile_order_history.status.payment'), ], 'DELIVERY' => [ 'class' => 'bg-blue-100 text-blue-800 border border-blue-200', 'icon' => 'fa-solid fa-truck-fast', 'text' => __('frontend::lang.page.profile_order_history.status.delivery'), ], 'COMPLETED' => [ 'class' => 'bg-green-100 text-green-800 border border-green-200', 'icon' => 'fa-solid fa-check-circle', 'text' => __('frontend::lang.page.profile_order_history.status.completed'), ], 'CANCELLED' => [ 'class' => 'bg-red-100 text-red-800 border border-red-200', 'icon' => 'fa-solid fa-circle-xmark', 'text' => __('frontend::lang.page.profile_order_history.status.cancelled'), ], 'FAILED' => [ 'class' => 'bg-red-100 text-red-800 border border-red-200', 'icon' => 'fa-solid fa-circle-xmark', 'text' => __('frontend::lang.page.profile_order_history.status.failed'), ], ]; @endphp @foreach ($cards as $card) @php if ($card['status'] == 'DELIVERY' && $card['shipper_status'] != 'SHIPPING') { $card['status'] = 'PAYMENT'; } @endphp @endforeach @if ($page_total > 1) @endif @else

{{ __('frontend::lang.error.no_data') }}

@endif