@extends('layouts.app') @section('page_title', 'Notifications') @section('content')
{{-- Upcoming Loan Due Dates --}}

Upcoming Loan Due Dates

@forelse($loans as $l)
{{ $l->contact?->name ?? 'Loan' }}
Due {{ $l->due_date->format('d M Y') }}
৳ {{ number_format((float) $l->outstanding, 2) }}
@empty
No loan deadlines in the next 30 days.
@endforelse
{{-- Goal Deadlines --}}

Goal Deadlines

@forelse($goals as $g)
{{ $g->name }}
Target {{ $g->target_date->format('d M Y') }} · ৳ {{ number_format((float) $g->target_amount, 2) }}
@empty
No goal deadlines in the next 30 days.
@endforelse
{{-- Upcoming Recurring Payments --}}

Upcoming Recurring Payments

Next 5 days
@forelse($recurringReminders as $r)
{{-- Description --}}
{{ $r->description ?: ucfirst($r->type) }}
{{ ucfirst($r->type) }} · Due {{ $r->next_run->format('d M Y') }}
{{-- Account + Balance --}}
{{ $r->account?->name ?? 'Account' }}
Balance: ৳ {{ number_format((float) ($r->account?->current_balance ?? 0), 2) }}
{{-- Amount --}}
৳ {{ number_format((float) $r->amount, 2) }}
@empty
No recurring payments due in the next 5 days.
@endforelse
@endsection