{{ __('Recurring Payments') }}

@include('accounting.partials.nav') {{-- OVERDUE ALERT SECTION --}} @if($overdueOccurrences->count() > 0)

{{ $overdueOccurrences->count() }} Overdue Payment(s)

These payments are past their due date.

@foreach($overdueOccurrences as $occ) @endforeach
Name Due Date Amount Type Actions
{{ $occ->recurring->name }} {{ \Carbon\Carbon::parse($occ->occ_date)->format('M d, Y') }} @if($occ->recurring->isVariable()) ~ @endif {{ number_format($occ->amount, 2) }} @if($occ->hasAdvance())
(Adv: {{ number_format($occ->advance_amount, 2) }}) @endif
{{ $occ->recurring->txn_type }}
@endif {{-- MAIN GRID --}}
{{-- CREATE RECURRING FORM --}}
Create Recurring Payment
@csrf
Active
{{-- BULK RUN + UPCOMING --}}
{{-- BULK RUN --}}
Run All Due
@csrf
Posts all pending occurrences on or before the selected date.
{{-- UPCOMING OCCURRENCES --}}
Upcoming (Next 90 Days)
@if($upcomingOccurrences->count() > 0)
@foreach($upcomingOccurrences as $occ) @endforeach
Name Due Amount Action
{{ $occ->recurring->name }} {{ \Carbon\Carbon::parse($occ->occ_date)->format('M d') }} @if($occ->occ_date == now()->toDateString()) (Today) @endif @if($occ->recurring->isVariable()) ~ @endif {{ number_format($occ->amount, 2) }} @if($occ->hasAdvance())
(Adv: {{ number_format($occ->advance_amount, 2) }}) @endif
@else
No upcoming occurrences.
@endif
{{-- TEMPLATES LIST --}}
Recurring Templates
@forelse($templates as $tmpl) @empty @endforelse
Name Type Frequency Next Amount Paid Status Actions
{{ $tmpl->name }} @if($tmpl->isVariable()) Variable @endif {{ $tmpl->txn_type }} {{ $tmpl->frequency }} @if($tmpl->frequency === 'Custom' && $tmpl->custom_days) ({{ $tmpl->custom_days }}d) @endif {{ optional($tmpl->next_run_date)->format('M d, Y') }} {{ number_format($tmpl->amount, 2) }} {{ $tmpl->paid_occurrences_count }} / {{ $tmpl->pending_occurrences_count }} @if($tmpl->is_active) Active @else Inactive @endif
@csrf
@csrf @method('DELETE')
No recurring templates.
{{-- RECENT PAID --}} @if($recentPaid->count() > 0)
Recent Payments (Last 30 Days)
@foreach($recentPaid as $paid) @endforeach
Name Due Date Paid Date Amount Note
{{ $paid->recurring->name ?? 'Deleted' }} {{ \Carbon\Carbon::parse($paid->occ_date)->format('M d, Y') }} {{ $paid->paid_at ? \Carbon\Carbon::parse($paid->paid_at)->format('M d, Y H:i') : '-' }} {{ number_format($paid->amount, 2) }} {{ $paid->note ?? '-' }}
@endif
{{-- PAY OCCURRENCE MODAL --}} {{-- ADVANCE PAYMENT MODAL --}} {{-- SKIP MODAL --}} {{-- EDIT TEMPLATE MODAL --}} {{-- EDIT OCCURRENCE MODAL --}}