@php $layout = $isMobile ? 'layouts.mobile' : 'layouts.desktop'; @endphp @extends($layout) @section('title', 'My Account Dashboard - Gletra') @section('content')
@if($isMobile)
{{ strtoupper(substr(Auth::user()->name, 0, 1)) }}

{{ Auth::user()->name }}

SECURE End-to-End Encrypted
Wallet
₹{{ number_format($wallet, 2) }}
GP Coins
1,240
@include('partials.dashboard-advice-panel')
Refer & Earn ₹500

Share your exclusive code with friends

{{ Auth::user()->referral_code }}
@if(count($stats['recently_viewed']) > 0)
Recently Viewed
View All
@foreach($stats['recently_viewed'] as $view) @endforeach
@endif LOGOUT FROM ACCOUNT
@else
@include('customer.partials.sidebar')
@php $unreadChat = auth()->user()->unreadChatCount(); $pendingOrders = (int) ($stats['pending_orders'] ?? 0); @endphp

Hello, {{ Auth::user()->name }}!

Orders, wallet aur shop — sab kuch yahan se

Wallet ₹{{ number_format($wallet, 2) }}
@if($pendingOrders > 0) {{ $pendingOrders }} order{{ $pendingOrders > 1 ? 's' : '' }} in progress — track karein @endif
Total Orders {{ $totalOrders }}
In Progress {{ $pendingOrders }}
Wallet ₹{{ number_format($wallet, 0) }}
Notifications {{ $notifications }}
Refer & Earn ₹500

Friends ko invite karein

@if(count($stats['recently_viewed']) > 0)
Recently Viewed
View All
@foreach($stats['recently_viewed']->take(4) as $view) @endforeach
@endif
Messages

Vendor chat & support

@if(auth()->user()->chat_enabled) Open Chat @else Get Help @endif
Wallet Balance ₹{{ number_format($wallet, 2) }}
Top Up
@endif @push('styles') @endpush @endsection