@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
{{ __('frontend::lang.error.no_data') }}