@extends('layouts.dashboard') @section('title', 'BRIOS Admin Dashboard') @section('header-title', 'Executive Overview') @section('content')
@php $stats = [ ['label' => 'Total Visitors', 'value' => $dashboardStats['total_visitors'], 'icon' => 'M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z', 'color' => 'text-red-600'], ['label' => 'Total Revenue By Visitors', 'value' => '₹' . number_format($dashboardStats['total_revenue']), 'icon' => 'M12 8c-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3-1.343-3-3-3z M2 17V7a2 2 0 012-2h16a2 2 0 012 2v10a2 2 0 01-2 2H4a2 2 0 01-2-2z', 'color' => 'text-green-600'], ['label' => 'Current Month Visitors', 'value' => $dashboardStats['current_month_visitrs'], 'icon' => 'M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1', 'color' => 'text-gray-700'], ['label' => 'Total Revenue By Members', 'value' => '₹' . number_format($dashboardStats['total_revenue_by_members']), 'icon' => 'M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z', 'color' => 'text-blue-600'], ['label' => 'Current Month Members Revenue', 'value' => '₹' . number_format($dashboardStats['current_month_revenue_by_members']), 'icon' => 'M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z', 'color' => 'text-blue-600'], ['label' => 'Paid (Member)', 'value' => $dashboardStats['paid_by_member'], 'icon' => 'M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z', 'color' => 'text-blue-600'], ['label' => 'Paid (Visitor)', 'value' => $dashboardStats['paid_by_visitor'], 'icon' => 'M15 5v2m0 4v2m0 4v2M5 5a2 2 0 00-2 2v3a2 2 0 110 4v3a2 2 0 002 2h14a2 2 0 002-2v-3a2 2 0 110-4V7a2 2 0 00-2-2H5z', 'color' => 'text-amber-600'], ]; @endphp @foreach($stats as $stat)

{{ $stat['label'] }}

{{ $stat['value'] }}

@endforeach
🏆 TOP PERFORMER OF THE MONTH @if($topReferrersCurrent)

{{ $topReferrersCurrent->name }}

{{ $topReferrersCurrent->company ?? 'Company Not Listed' }}

📞 {{ $topReferrersCurrent->phone ?? 'N/A' }} 📧 {{ $topReferrersCurrent->email ?? 'N/A' }}
@else

Calculating this month's results...

@endif
@if($topReferrersCurrent)
{{ $topReferrersCurrent->referred_visitors_count ?? 0 }}

Visitors

@endif

Upcoming Chapter Meetings

@forelse($upcomingMeetings as $meeting)

{{ \Carbon\Carbon::parse($meeting->meeting_date)->format('D, d M Y') }}

@empty

No upcoming meetings scheduled.

@endforelse

Recent Visitor Activity

@foreach($recentVisitors as $visitor) @endforeach
Visitor Invited By Amount Status
{{ $visitor->name }}
{{ $visitor->company ?? '-' }}
{{ $visitor->referredBy->name ?? 'Direct' }} ₹{{ number_format($visitor->amount ?? 0) }} @php $statusClasses = [ 'paid' => 'bg-green-100 text-green-700', 'pending' => 'bg-amber-100 text-amber-700', 'failed' => 'bg-red-100 text-red-700', ][$visitor->status] ?? 'bg-gray-100 text-gray-700'; @endphp {{ $visitor->status }}
@endsection @push('scripts') @endpush