@extends('layouts.app') @section('content')

Dashboard

@if(auth()->user()->role === 'admin') {{-- PAYMENT SUMMARY --}}
Total Payments

₹ {{ number_format($totalPayments, 2) }}

This Month Payments

₹ {{ number_format($thisMonthPayments, 2) }}

{{-- RECENT PAYMENTS --}}
Recent Payments View Report
@forelse($recentPayments as $payment) @empty @endforelse
Date Lead Type Amount Added By
{{ $payment->payment_date }} {{ $payment->lead->name ?? '-' }} {{ $payment->type }} ₹ {{ number_format($payment->amount, 2) }} {{ $payment->addedBy->name ?? '-' }}
No payments found
@endif

Follow-Up Dashboard

{{-- TODAY --}}
Today’s Follow-Ups
@include('dashboard.followup-table', ['items' => $todayFollowups])
{{-- UPCOMING --}}
Upcoming (Next 7 Days)
@include('dashboard.followup-table', ['items' => $upcomingFollowups])
{{-- OVERDUE --}}
Overdue Follow-Ups
@include('dashboard.followup-table', ['items' => $overdueFollowups])
@endsection