@extends('astrologer.layouts.app') @section('title', 'Dashboard') @section('content')

Total Bookings

{{ ($totalChats ?? 0) + ($totalPoojaOrders ?? 0) }}

{{ $totalChats ?? 0 }} Chats • {{ $totalPoojaOrders ?? 0 }} Poojas

Average Rating

{{ number_format($avgRating, 1) }}

Based on {{ $totalReviews }} reviews.

Wallet Balance

₹{{ number_format($walletBalance ?? 0, 2) }}

Payout threshold: ₹1000

Last Settled

₹{{ number_format($lastSettledAmount ?? 0, 2) }}

Next: {{ $nextSettlementDate->format('M d') }} ({{ now()->diffInDays($nextSettlementDate) }}d)

{{-- Pending Chat Requests Section --}}

Active Requests

@if(isset($pendingRequests) && $pendingRequests->count() > 0)
{{ $pendingRequests->count() }} Pending
@endif
@if(isset($pendingRequests) && $pendingRequests->count() > 0)
@foreach($pendingRequests as $request)
@if($request->user->avatar) @else
{{ substr($request->user->name, 0, 1) }}
@endif

{{ $request->user->name }}

{{ $request->created_at->diffForHumans() }}

@endforeach
@else

No new requests. Take a break!

@endif
{{-- Latest Reviews Section --}}

Latest Reviews

View All
@forelse($latestReviews as $review)
{{ substr($review->user->name, 0, 1) }}

{{ $review->user->name }}

{{ $review->created_at->format('M d, Y') }}

@for($i = 1; $i <= 5; $i++) @endfor

"{{ $review->review }}"

@empty

No reviews yet. Deliver great service!

@endforelse
@if(!auth()->user()->astrologerDetail || !auth()->user()->astrologerDetail->bio)

Complete Your Profile!

Receive consultations by listing your expertise and services.

Update Now
@endif @push('scripts') @endpush @endsection