@extends('layouts.master') @section('title', 'Recent Orders | Alboosh - Timeless authenticity, born of the desert') @section('title-topbar', __('basic.recent orders')) @section('css') @endsection @section('fixedcontent') @if (Session::has('success'))

Sent Successfully

{{ Session::get('success') }}

@endif @endsection @section('content')
{{ __('basic.dashboard') }} | {{ __('basic.recent orders') }}
{{ __('basic.new order') }} {{ __('basic.search filter') }}

{{ __('basic.month order') }}

@if($month_order > $last_month_order) @elseif($month_order < $last_month_order) @endif {{ $month_order }}
{{ __('basic.orders') }}
{{ $last_month_order }} {{ __('basic.last month') }}

{{ __('basic.in progress month orders') }}

@if($month_inprogress_order > $last_month_inprogress_order) @elseif($month_inprogress_order < $last_month_inprogress_order) @endif {{ $month_inprogress_order }}
{{ __('basic.orders') }}
{{ $last_month_inprogress_order }} {{ __('basic.last month') }}

{{ __('basic.delivered month orders') }}

@if($month_order_delivered > $last_month_delivered) @elseif($month_order_delivered < $last_month_delivered) @endif {{ $month_order_delivered }}
{{ __('basic.orders') }}
{{ $last_month_delivered }} {{ __('basic.last month') }}

{{ __('basic.canceled month orders') }}

@if($month_order_canceled > $last_month_order_canceled) @elseif($month_order_canceled < $last_month_order_canceled) @endif {{ $month_order_canceled }}
{{ __('basic.orders') }}
{{ $last_month_order_canceled }} {{ __('basic.last month') }}

{{ __('basic.refund month orders') }}

@if($month_order_refund > $last_month_order_refund) @elseif($month_order_refund < $last_month_order_refund) @endif {{ $month_order_refund }}
{{ __('basic.orders') }}
{{ $last_month_order_refund }} {{ __('basic.last month') }}

{{ __('basic.orders amount') }}

@if($month_total_amount > $last_month_total_amount) @elseif($month_total_amount < $last_month_total_amount) @endif {{ $month_total_amount }}
{{ $currency }}
{{ $last_month_total_amount }} {{ __('basic.last month') }}
{{ __('basic.recent orders') }}
@foreach ($recent_bookings 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 }} {{ $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)) }}
@endsection @section('js') {{-- data table --}} @php $chart_color = ['#323ac8', '#38dfa8','#1a78f1', '#d13c62', '#12c7d9', '#03c2c3', '#5035df', '#17a673', '#2e59d9', '#9aeded', '#f3d56a', '#7c859d', '#a4adc5', '#80142f', '#33d293', '#bed233', '#3958e9', '#10c86f', '#654fb6', '#a44fb6', '#89728e', '#c85110', '#6d769d', '#1b6954', '#204494', '#94206b', '#948320', '#209493', '#292094', '#203a65', '#4e6fa5', '#e29031', '#e23168', '#31e0e2', '#e29131', '#319fe2', '#8131e2', '#31a8e2', '#31e2c0', '#31c3e2', '#e2a931', '#3157e2']; @endphp @endsection