@extends('layout') @section('content')
No agreements.
@else| ID | Customer | Total | Instalments | Status | |
|---|---|---|---|---|---|
| {{ $a->id }} | {{ optional($a->customer)->name ?? $a->customer_name }} | {{ $currency }}{{ number_format($a->total_amount, 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 |