@extends('investor.layouts.app') @php $pageTitle = 'Payment Tracker'; @endphp @section('content')

Payment Tracker

Track all your installments and payment history.

{{-- Summary --}}
Total Paid
₹{{ number_format($totalPaid/100000, 2) }}L
Pending Amount
₹{{ number_format($totalPending/100000, 2) }}L
@if($overdue->count())
Overdue
{{ $overdue->count() }} payments
@endif
@if($investments->count()) @foreach($investments as $inv) @if($inv->payments->count())

{{ $inv->property->title }}

{{ $inv->property->full_location }}

Total: ₹{{ number_format($inv->invested_amount) }}

Pending: ₹{{ number_format($inv->pending_amount) }}

{{-- Progress bar --}} @php $totalAmt = $inv->payments->sum('amount'); $paidAmt = $inv->payments->where('status','paid')->sum('amount'); $paidPct = $totalAmt > 0 ? ($paidAmt / $totalAmt) * 100 : 0; @endphp
Payment Progress {{ round($paidPct) }}% paid
@foreach($inv->payments as $pay) @endforeach
Installment Amount Due Date Paid On Status
{{ $pay->installment_label }} ₹{{ number_format($pay->amount) }} {{ $pay->due_date->format('d M Y') }} {{ $pay->paid_date ? $pay->paid_date->format('d M Y') : '—' }} {{ ucfirst($pay->status) }}
@endif @endforeach @else

No payment schedules yet

Payment schedules will appear here once your investments are set up.

@endif @endsection