Order Type:
{{ ucfirst($rental->order_type ?? '-') }}
Total Amount:
{{ $currency ?? '' }}{{ number_format($rental->total_amount ?? 0, 2) }}
Down Payment:
{{ $currency ?? '' }}{{ number_format($rental->down_payment ?? 0, 2) }}
Pending Amount:
{{ $currency ?? '' }}{{ number_format($rental->pending_amount ?? 0, 2) }}
No. of Installments:
{{ $rental->no_of_installments ?? '-' }}
Installment Amount:
{{ $currency ?? '' }}{{ number_format($rental->installment_amount ?? 0, 2) }}
Security Amount:
{{ $currency ?? '' }}{{ number_format($rental->security_amount ?? 0, 2) }}
Status:
@php
$statusClass = $rental->status === 'Active' ? 'badge bg-success' : 'badge bg-danger';
@endphp
{{ ucfirst($rental->status ?? '-') }}
Start Date:
{{ \Carbon\Carbon::parse($rental->start_date)->format('d M, Y') }}
Due Date:
@php
$dueClass = \Carbon\Carbon::parse($rental->due_date)->isPast()
? 'text-danger fw-bold'
: 'text-success fw-bold';
@endphp
{{ \Carbon\Carbon::parse($rental->due_date)->format('d M, Y') }}