@extends('layout') @section('page_title', 'Customer Details') @section('content')
No payment history available.
@else| Payment ID | Agreement ID | Product | Amount | Due Date | Status | Paid Date |
|---|---|---|---|---|---|---|
| {{ $payment->id }} | #{{ $payment->agreement->id }} | {{ optional($payment->agreement->product)->name ?? '—' }} | {{ $currency }}{{ number_format($payment->amount, 2) }} | {{ $payment->due_date->format('M d, Y') }} | @if($payment->status === 'paid') Paid @else Pending @endif | @if($payment->paid_at) {{ $payment->paid_at->format('M d, Y') }} @else — @endif |
No instalments found for this customer.
@else| ID | Product | Total Amount | Down Payment | Instalments | Status | Actions |
|---|---|---|---|---|---|---|
| {{ $a->id }} | {{ optional($a->product)->name ?? '—' }} | {{ $currency }}{{ number_format($a->total_amount, 2) }} | {{ $currency }}{{ number_format($a->down_payment, 2) }} | {{ $a->instalments_count }} × {{ $currency }}{{ number_format($a->instalment_amount, 2) }} | @if($a->status === 'completed') Completed @elseif($a->status === 'active') Active @else Draft @endif | View |