@extends('layouts.app') @section('title', 'Provider Dashboard — ' . config('app.name')) @section('header')

{{ __('Dashboard') }}

@endsection @section('content') @php $profile = $profile ?? null; @endphp
@if (! $profile)
Your provider profile is incomplete. Complete your business profile to get started.
@else @php $verification = $profile->verification_status; $initials = strtoupper(substr($profile->business_name ?: auth()->user()->name, 0, 1)); $completeness = collect([ 'Business name' => filled($profile->business_name), 'Bio / about' => filled($profile->bio), 'Address & city' => filled($profile->address_line) && filled($profile->city), 'At least one service' => $stats['services'] > 0, 'A verification document' => $stats['documentsTotal'] > 0, 'Payout / bank details' => filled($profile->bank_account_number), ]); $completeDone = $completeness->filter()->count(); @endphp {{-- Hero --}}
{{ $initials }}

{{ $profile->business_name ?: auth()->user()->name }}

{{ $verification }}

@if ($profile->city) 📍 {{ $profile->city }}{{ $profile->state ? ', '.$profile->state : '' }} · @endif Member since {{ $profile->created_at->format('M Y') }} @if ($profile->experience_years) · {{ $profile->experience_years }} yrs experience @endif

Edit profile
@if ($verification === 'pending')
Your provider account is pending verification. Complete your profile, upload your documents, and add at least one service — our team will review your account shortly.
@elseif ($verification === 'rejected')
Your provider account was rejected: {{ $profile->rejection_reason }}. Update your details and documents, then contact support for re-review.
@endif {{-- Stats --}}
{{ $stats['total'] }}
Total bookings
{{ $stats['requested'] }}
Pending requests
{{ $stats['completed'] }}
Completed jobs
₹{{ number_format($stats['earnings'], 0) }}
Total earnings
{{-- Quick links --}}

Manage your business

{{-- Recent bookings --}}

Recent bookings View all

@forelse ($recentBookings as $booking)
{{ strtoupper(substr($booking->customer->name, 0, 1)) }}

{{ $booking->customer->name }}

{{ $booking->service->name }} · {{ $booking->scheduled_at->format('d M, H:i') }}

{{ str_replace('_', ' ', $booking->status) }}
@empty

No bookings yet. Once your profile is verified, requests will show up here.

@endforelse

Profile completeness

{{ $completeDone }}/{{ $completeness->count() }}
@foreach ($completeness as $label => $done)
@if ($done) ✓ @else · @endif {{ $label }}
@endforeach

Payout details

@if ($profile->bank_account_number)

Account holder
{{ $profile->bank_account_name }}

Account no.
•••• {{ substr($profile->bank_account_number, -4) }}

IFSC
{{ $profile->bank_ifsc }}

@else

No payout details on file yet.

Add bank details → @endif
@endif
@endsection