@extends('layout') @section('page_title', 'Instalments') @section('content')
| ID | Customer | Product | Total Amount | Down Payment | Instalments | Status | Created | Actions |
|---|---|---|---|---|---|---|---|---|
| {{ $a->id }} |
@if($a->customer)
{{ $a->customer->name }}
{{ $a->customer->email }}
@else
{{ $a->customer_name }}
@endif
|
@if($a->product)
{{ $a->product->name }}
{{ $a->product->category->name ?? '' }}
@else
—
@endif
|
{{ $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 | {{ $a->created_at->format('M d, Y') }} |