@extends('layouts.master') @section('title', 'Agent Dashboard - HomesInKerala') @section('content')
@if(session('success'))
{{ session('success') }}
@endif

Agent Dashboard

Welcome, {{ $agent->user->name }}

Verification status: {{ Str::headline($agent->verification_status) }}

@include('frontend.agent.partials.nav')
@foreach([ 'Properties' => $stats['properties'], 'Published' => $stats['published'], 'Leads' => $stats['leads'], 'Payments' => $stats['payments'], ] as $label => $value)
{{ $label }} {{ number_format($value) }}
@endforeach

Current Subscription

{{ $stats['active_plan'] }} @if($agent->currentSubscription) · {{ $agent->currentSubscription->listing_limit_label }} listings · {{ $agent->currentSubscription->lead_access ? 'Lead access' : 'No lead access' }} · {{ $agent->currentSubscription->premium_badge ? 'Premium badge' : 'No premium badge' }} @endif

Manage Subscription

Recent Properties

Add Property
@forelse($recentProperties as $property)
{{ $property->title }}
{{ $property->city?->name }}, {{ $property->district?->name }}
{{ Str::headline($property->status) }}
@empty

No properties submitted yet.

@endforelse

Recent Leads

@forelse($recentLeads as $lead)
{{ $lead->name }} {{ Str::headline($lead->status) }}

{{ $lead->property?->title ?: 'General Inquiry' }}

@empty

No leads yet.

@endforelse

Ratings & Reviews

{{ number_format((float) $agent->rating, 1) }} ★

{{ $agent->total_reviews }} approved reviews

@forelse($recentReviews as $review)
{{ $review->name }} {{ Str::headline($review->status) }}

{{ Str::limit($review->comment, 90) }}

@empty

No reviews yet.

@endforelse
@endsection