{{ __('basic.orders list') }}
{{ __('basic.orders') }}
{{ __('basic.from') }} {{ $date_from }} {{ __('basic.to') }} {{ $date_to }}

@php $total_sell = 0; @endphp @foreach ($orders as $item) @if ($item->status == 1) @php $text_color = 'not_accepted-color-btn'; $msg = __('basic.placed'); @endphp @elseif ($item->status == 2) @php $text_color = 'main-color-btn'; $msg = __('basic.approved from store'); @endphp @elseif ($item->status == 3) @php $text_color = 'prog-color-btn'; $msg = __('basic.shipped'); @endphp @elseif ($item->status == 4) @php $text_color = 'active-color-btn'; $msg = __('basic.out for delivery'); @endphp @elseif ($item->status == 5) @php $text_color = 'done-color-btn'; $msg = __('basic.delivered'); @endphp @elseif ($item->status == 6) @php $text_color = 'prog-color-btn'; $msg = __('basic.failed to deliver'); @endphp @elseif ($item->status == 7) @php $text_color = 'cancel-color-btn'; $msg = __('patientappo.canceled'); @endphp @elseif ($item->status == 8) @php $text_color = 'pend-color-btn'; $msg = __('basic.refund'); @endphp @endif @if ($item->note_doctor) @php $icon_note = 'fa-user-check text-blue-400'; @endphp @else @php $icon_note = 'fa-user-edit text-grey-400'; @endphp @endif @endforeach
{{ __('basic.order number') }} {{ __('basic.branch') }} {{ __('basic.client') }} {{ __('basic.worker') }} {{ __('basic.status') }} {{ __('basic.final price') }} {{ __('basic.created') }} {{ __('basic.last update') }}
{{ $item->code }} @if($item->branch) {{ $item->branch->name }} @else {{ __('basic.not selected') }} @endif @if($item->client) {{ $item->client->first_name }} @else {{ __('basic.not selected') }} @endif @isset($item->creator->first_name) {{ $item->creator->first_name }} @endisset {{ $msg }} @php $total_sell += $item->final_price; @endphp {{ $item->final_price }} {{ date('Y-m-d', strtotime($item->created_at)) }}
{{ date('h:i a', strtotime($item->created_at)) }}
{{ date('Y-m-d', strtotime($item->updated_at)) }}
{{ date('h:i a', strtotime($item->updated_at)) }}
{{ __('basic.total') }} {{ $total_sell }}
{{ $invoice_rule }}