@extends('layouts.mobile') @section('title', __('mobile.my_profile')) @section('content')
{{ strtoupper(substr(auth()->user()->name, 0, 2)) }}

{{ auth()->user()->name }}

{{ auth()->user()->email }}

{{ auth()->user()->orders()->count() }}
Total Orders
{{ auth()->user()->orders()->where('status', 'delivered')->count() }}
Delivered
{{ auth()->user()->orders()->whereIn('status', ['created', 'picked', 'in_transit'])->count() }}
Active
Quick Actions
Personal Information
{{ auth()->user()->name }}
{{ auth()->user()->email }}
{{ auth()->user()->phone ?? 'Not provided' }}
{{ ucfirst(auth()->user()->role) }}
{{ auth()->user()->created_at->format('M Y') }}
@if(auth()->user()->orders()->count() > 0)
Recent Orders
View All
@foreach(auth()->user()->orders()->latest()->take(3)->get() as $order)
{{ $order->tracking_code }}
{{ $order->pickupDistrict->name }} → {{ $order->dropDistrict->name }}
{{ ucfirst(str_replace('_', ' ', $order->status)) }}
{{ $order->created_at->format('M d, Y') }} Rs. {{ number_format($order->final_price) }}
@endforeach
@endif
Account Settings
Order History
Track Package
@if(auth()->user()->role === 'admin')
Admin Dashboard
@endif
Need Help?
@endsection @push('styles') @endpush @push('scripts') @endpush