@include('site.customer.sidebar')
@php
$statuses = App\Models\OrderStatus::where('bill_order_id', $order->id)->get();
@endphp
@php
$approvedFound = false;
@endphp
@foreach ($statuses as $key => $status)
@endforeach
@if ($loop->last && $status->completed == '1')
@elseif ($loop->last && $status->completed != '1')
@else
@endif
{{ date('d-m-Y H:i:s A', strtotime($status->date_time)) }}
{{ $status->status }}
| ID | Date | Country | Category | Company | Ref# | Due date | Status | Total |
|---|---|---|---|---|---|---|---|---|
| ET{{ $order->id }} | {{ date('d-m-Y H:i:s A', strtotime($order->dated)) }} | {{ str_replace('_', '', optional($country)->name )}} | {{ optional($billCategory)->name }} | {{ optional($billCompany)->name }} | {{ $order->bill_reference }} | {{ $order->due_date }} | @if ($order->status == 'pending') Pending @else Approved @endif | {{ str_replace('_', '', $order->currency )}} {{ $order->total }} |