@extends('layouts.app') @section('title', 'Dashboard') @section('content') {{-- KPI Stats --}}
{{ currency($stats['total_revenue']) }}
Total Revenue ({{ now()->format('M Y') }})
{{ abs($stats['revenue_change']) }}% vs last month
{{ $stats['deals_won'] }}
Deals Won
{{ abs($stats['deals_change']) }}% vs last month
{{ $stats['active_bookings'] }}
Active Bookings
{{ $stats['bookings_upcoming'] }} upcoming
{{ currency($stats['pipeline_value']) }}
Pipeline Value
{{ $stats['pipeline_deals'] }} active deals
{{ $stats['pending_approvals'] }}
Pending Approvals
@if($stats['pending_approvals'] > 0) Requires action@else All clear@endif
{{-- Charts Row --}}
Revenue Overview
Pipeline by Stage
{{-- Bottom Row --}}
{{-- Recent Leads --}}
Recent Leads View all
@forelse($recentLeads as $lead)
{{ strtoupper(substr($lead->company_name ?? $lead->contact_name ?? 'L', 0, 2)) }}
{{ $lead->company_name ?? $lead->contact_name }}
{{ $lead->source }} · {{ $lead->created_at->diffForHumans() }}
{{ $lead->status }}
@empty
No recent leads
@endforelse
{{-- Upcoming Bookings --}}
Upcoming Bookings
@forelse($upcomingBookings as $booking)
{{ $booking->event_name }} {{ $booking->status }}
{{ $booking->property->name }} · {{ $booking->space->name }}
{{ $booking->event_date->format('D, M j · g:ia') }}
@empty
No upcoming bookings
@endforelse
{{-- Team Performance --}}
Team Performance Details
@foreach($teamPerformance as $member)
{{ strtoupper(substr($member->name, 0, 2)) }}
{{ $member->name }}
{{ currency($member->revenue) }}
{{ $member->deals_closed }} deals {{ $member->performance_pct }}%
@endforeach
{{-- Pending Approvals + Recent Activity --}}
Pending Finance Approvals View all
@forelse($pendingApprovals as $approval)
{{ $approval->title }}
Requested by {{ $approval->requestedBy->name }} · {{ $approval->created_at->diffForHumans() }}
{{ currency($approval->amount) }}
@can('approve', $approval)
@csrf
@csrf
@endcan
{{-- Approval Stage Progress --}}
@foreach($approval->stages as $stage)
@endforeach
@empty
All approvals up to date
@endforelse
Recent Activity
@foreach($recentActivity as $activity)
{{ $activity->created_at->diffForHumans() }}
{{ $activity->user->name }} {{ $activity->description }}
@endforeach
{{-- AI Assistant Quick Prompts --}}
AI Assistant Suggestions Open Full Assistant
Based on your data, I suggest:
@foreach($aiSuggestions as $suggestion)
{{ $suggestion->text }}
@endforeach
@push('scripts') @endpush @endsection