@extends('website.layouts.master') @section('site_title')طلباتي -@endsection @section('content')
طلباتي

لديك {{ $orders_count }} طلب فعّال

@include('website.includes.user_menu')

طلبات حالية

@if ($orders->count()) @foreach ($orders as $order)
#{{ $order['id'] }}

{{ $order->company['name'] }}

{{ $order->delivery_time }}

@if (($order->status == 'waiting_for_payment') || ($order->status == 'pending') || ($order->status == 'approved'))
@elseif (($order->status == 'driver_accepted') || ($order->status == 'processing') || ($order->status == 'done') || ($order->status == 'rated'))
@else
@endif

طلب جديد

@if (($order->status == 'driver_accepted'))
@elseif (($order->status == 'processing') || ($order->status == 'done') || ($order->status == 'rated'))
@elseif (($order->status == 'waiting_for_payment') || ($order->status == 'pending') || ($order->status == 'approved'))
@endif

استلام الطلب

@if (($order->status == 'processing'))
@elseif (($order->status == 'done') || ($order->status == 'rated'))
@elseif (($order->status == 'waiting_for_payment') || ($order->status == 'pending') || ($order->status == 'approved') || ($order->status == 'driver_accepted'))
@endif

في الطريق

تم التوصيل

{{ __('api.user_order_statuses.' . $order['status']) }}

{{ __('api.user_order_statuses_details.' . $order['status']) }}

تفاصيل الطلب
@endforeach @else
لا يوجد طلبات حاليا!
@endif
{{ $orders->links() }}
@endsection