@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 --}}
| Date |
Lead |
Type |
Amount |
Added By |
@forelse($recentPayments as $payment)
| {{ $payment->payment_date }} |
{{ $payment->lead->name ?? '-' }} |
{{ $payment->type }}
|
₹ {{ number_format($payment->amount, 2) }} |
{{ $payment->addedBy->name ?? '-' }} |
@empty
| No payments found |
@endforelse
@endif
Follow-Up Dashboard
{{-- TODAY --}}
@include('dashboard.followup-table', ['items' => $todayFollowups])
{{-- UPCOMING --}}
@include('dashboard.followup-table', ['items' => $upcomingFollowups])
{{-- OVERDUE --}}
@include('dashboard.followup-table', ['items' => $overdueFollowups])
@endsection