@extends('admin.layouts.master') @section('page-title') عرض جميع الطلبات @endsection @section('header-title') جميع الطلبات @endsection @push('main-orders-active') m-menu__item--active @endpush @section('content')
@include('admin.includes.alerts') @include('admin.orders.banner') @include('admin.orders.search_bar') @foreach($orders as $order) @endforeach
# اسم العميل رقم الجوال اسم المندوب تاريخ التسليم الشركة طريقة الدفع العنوان التفصيلي حالة الطلب اجمالي المبلغ
{{ $order->id }} {{ $order->user['name'] }} {{ $order->user->getPhone() }} {{ $order->driver['name']? $order->driver['name'] : '-' }} {{ $order->delivery_date }}
من {{ __('api.order_times.' . $order->delivery_time) }} إلى {{ __('api.order_times.' . ($order->delivery_time+2)) }}
{{ $order->company['name'] }} {{ __('api.payment_methods.' . $order->payment_method) }}
{{ $order['is_printed']? 'تم طباعة الفاتورة' : 'لم يتم طباعة الفاتورة' }}
{{ $order['address_details'] }} @if (($order->status == 'waiting_for_payment')) @elseif (($order->status == 'pending') || ($order->status == 'approved')) @elseif (($order->status == 'driver_accepted') || ($order->status == 'processing')) @elseif (($order->status == 'done') || ($order->status == 'rated')) @elseif (($order->status == 'cancelled_by_user') || ($order->status == 'cancelled_by_driver') || ($order->status == 'cancelled_by_admin')) @else @endif {{ $order['total_price'] }} @if (auth('admin')->user()->can('orders.discount')) @endif @if (auth('admin')->user()->can('orders.appologize')) @endif @if ((auth('admin')->user()->can('orders.hurry')) && (in_array($order->status, ['driver_accepted', 'processing']))) @endif @if (!in_array($order->status, ['done', 'rated', 'cancelled_by_user', 'cancelled_by_driver', 'cancelled_by_admin'])) @if (auth('admin')->user()->can('orders.edit')) @endif @if (auth('admin')->user()->can('orders.cancel')) @endif @endif @if (auth('admin')->user()->can('orders.attachments')) @endif
{{ $orders->links() }}
نتيجة البحث: {{ $orders_count }} طلب
@include('admin.orders.details') @include('admin.orders.cancel_order_dialog') @include('admin.orders.attachments') @include('admin.orders.special_discount') @include('admin.orders.business_registration')
@stop @push('page_level_style') @endpush @push('page_level_script') @endpush