@extends('layouts.public') @section('title', 'Customer Portal | NEAMEE Auto-Tech Solutions') @section('content')

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

Customer Portal Dashboard

Loyalty Points: {{ number_format($loyaltyPoints) }}
@foreach([ ['My Vehicles', $vehicles->count(), route('portal.vehicles'), 'M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4'], ['Bookings', auth()->user()->bookings()->count(), route('portal.bookings'), 'M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'], ['Repairs in Progress', auth()->user()->jobCards()->whereNotIn('status', ['delivered'])->count(), route('portal.tracking'), 'M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2'], ['Invoices', auth()->user()->invoices()->count(), route('portal.invoices'), 'M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'], ] as [$label, $count, $url, $icon])

{{ $count }}

{{ $label }}

@endforeach

Recent Bookings

View all
@forelse($bookings as $booking)

{{ $booking->service->name }}

{{ $booking->scheduled_date->format('M d, Y') }} at {{ $booking->scheduled_time }} ยท {{ $booking->status }}

@empty

No bookings yet. Book a service

@endforelse

Repair Tracking

View all
@forelse($jobCards as $job)

{{ $job->vehicle->display_name ?? 'Vehicle' }}

{{ \App\Models\JobCard::statusLabel($job->status) }}

@empty

No active repairs.

@endforelse
@endsection