@extends('layouts.mobile') @section('title', 'My Orders') @section('content')

{{ __('mobile.my_orders') }}

{{ __('mobile.track_manage_orders') }}

{{ $orders->total() }}
Total
{{ $orders->where('status', 'created')->count() + $orders->where('status', 'picked')->count() }}
Active
{{ $orders->where('status', 'in_transit')->count() }}
Transit
{{ $orders->where('status', 'delivered')->count() }}
Delivered
@if($orders->count() > 0) @foreach($orders as $order)
{{ $order->tracking_code }}
{{ $order->created_at->format('M d, Y h:i A') }}
{{ ucfirst(str_replace('_', ' ', $order->status)) }}
From {{ $order->pickupDistrict->name }}
{{ Str::limit($order->pickup_address, 30) }}
To {{ $order->dropDistrict->name }}
{{ Str::limit($order->drop_address, 30) }}
Package
{{ ucfirst($order->package_type) }}
Weight
{{ $order->weight }} kg
Amount
Rs. {{ number_format($order->final_price) }}
{{ $order->recipient_name }}
{{ $order->recipient_phone }}
@if($order->status !== 'delivered') @endif
@endforeach @if($orders->hasPages())
{{ $orders->appends(request()->query())->links() }}
@endif @else

No Orders Found

@if(request('search') || request('status')) No orders match your search criteria. @else You haven't placed any orders yet. @endif

@if(request('search') || request('status')) Clear Filters @endif Book Your First Order
@endif @endsection @push('scripts') @endpush