@extends('backend.layout.main') @section('content')
Installment Plan Details
Plan Name: {{ $plan->name }}
Price: {{ number_format($plan->price, 2) }}
Additional Amount: {{ number_format($plan->additional_amount, 2) }}
Total Amount: {{ number_format($plan->total_amount, 2) }}
Down Payment: {{ number_format($plan->down_payment, 2) }}
Months: {{ $plan->months }}

Installments
@forelse ($plan->installments as $key => $installment) @if ($installment->status === 'completed') @else @endif @empty @endforelse
# Payment Date Status Amount Action
{{ $key + 1 }} {{ \Carbon\Carbon::parse($installment->payment_date)->format('d M Y') }} Completed Pending {{ number_format($installment->amount, 2) }} @if ($installment->status === 'pending') @else @endif
No installments found
@endsection @push('scripts') @endpush