@if(!$customer)

No Customer Profile Found

Please contact support to set up your customer profile.

@else

My Account Overview

{{ $stats['total_vehicles'] ?? 0 }}

My Vehicles

{{ $stats['active_subscriptions'] ?? 0 }}

Active Subscriptions

Rs. {{ number_format($stats['total_paid'] ?? 0, 0) }}

Total Paid

Rs. {{ number_format($stats['pending_amount'] ?? 0, 0) }}

Pending Amount

My Vehicles

@if($vehicles->count() > 0)
@foreach($vehicles as $vehicle)

{{ $vehicle->plate_number }}

{{ $vehicle->make }} {{ $vehicle->model }}

@if($vehicle->year)
Year: {{ $vehicle->year }}
@endif @if($vehicle->color)
Color: {{ $vehicle->color }}
@endif @if($vehicle->vin)
VIN: {{ $vehicle->vin }}
@endif @if($vehicle->chassis_number)
Chassis: {{ $vehicle->chassis_number }}
@endif
@endforeach
@else

No vehicles registered

@endif

My Subscriptions & Packages

@if($subscriptions->count() > 0)
@foreach($subscriptions as $subscription) @endforeach
Vehicle Package/Plan Duration Start Date End Date Amount Status
{{ $subscription->vehicle->plate_number ?? 'N/A' }}
{{ $subscription->vehicle->make ?? '' }} {{ $subscription->vehicle->model ?? '' }}
{{ $subscription->plan_name ?? 'N/A' }}
@if($subscription->plan_type)
{{ ucfirst($subscription->plan_type) }}
@endif
@if($subscription->start_date && $subscription->end_date) {{ $subscription->start_date->diffInDays($subscription->end_date) }} days @else N/A @endif {{ $subscription->start_date ? $subscription->start_date->format('M d, Y') : 'N/A' }} {{ $subscription->end_date ? $subscription->end_date->format('M d, Y') : 'N/A' }}
Rs. {{ number_format($subscription->amount, 0) }}
@if($subscription->billing_cycle)
{{ ucfirst($subscription->billing_cycle) }}
@endif
{{ ucfirst($subscription->status) }}
@else

No active subscriptions

@endif

Payment History

@if($payments->count() > 0)
@foreach($payments as $payment) @endforeach
Date Invoice/Reference Description Amount Method Status
{{ $payment->payment_date ? $payment->payment_date->format('M d, Y') : 'N/A' }}
{{ $payment->invoice_number ?? $payment->reference_number ?? 'N/A' }} {{ $payment->notes ?? 'Payment for GPS Service' }}
Rs. {{ number_format($payment->amount, 0) }}
{{ ucfirst(str_replace('_', ' ', $payment->payment_method ?? 'N/A')) }}
Paid
Total Paid: Rs. {{ number_format($payments->sum('amount'), 0) }}
@else

No payment history available

@endif @endif