@extends('layout') @section('page_title', 'Dashboard') @section('content')

System Overview

View All Instalments Create New Instalment
Total Instalments
{{ $stats['agreements_total'] }}
+12% from last month
Active Instalments
{{ $stats['agreements_active'] }}
+8% from last month
Pending Payments
{{ $stats['payments_pending'] }}
-3% from last month
Paid Payments
{{ $stats['payments_paid'] }}
+15% from last month

Recent Instalments

View All
@if(isset($recentAgreements) && $recentAgreements->count() > 0)
@foreach($recentAgreements as $agreement) @endforeach
ID Customer Product Total Amount Status Date
{{ $agreement->id }} {{ optional($agreement->customer)->name ?? $agreement->customer_name }} {{ optional($agreement->product)->name ?? '—' }} {{ $currency }}{{ number_format($agreement->total_amount, 2) }} @if($agreement->status === 'completed') Completed @elseif($agreement->status === 'active') Active @else Draft @endif {{ $agreement->created_at->format('M d, Y') }}
@else

No recent instalments found.

@endif

Payment Summary

Total Revenue
{{ $currency }}{{ number_format($stats['total_revenue'] ?? 0, 2) }}
+5.2% from last month
Pending Payments
{{ $currency }}{{ number_format($stats['pending_revenue'] ?? 0, 2) }}
-2.1% from last month

Quick Actions

@endsection