@extends('layouts.app') @section('title', 'Instalments · '.$deal->deal_no) @section('heading', 'Instalments · '.$deal->deal_no) @section('content') @php $kes = fn ($v) => 'KSh '.number_format((float) $v, 2); @endphp

{{ $deal->customer->name }} · {{ $deal->vehicle->display_name }} · Back to deal

@if (($plan['kind'] ?? null) === 'in_house')
@include('portal._plan', ['plan' => $plan])
@can('payments.record') @unless ($plan['cleared'])
@csrf
@endunless @endcan @forelse ($payments as $p)@empty@endforelse
Payments
DateMethodReferenceAmount
{{ $p->paid_on->format('d M Y') }}{{ $methods[$p->method] ?? $p->method }}{{ $p->reference }}{{ number_format((float) $p->amount, 2) }} @can('payments.refund') @if ($p->status === 'confirmed')
@csrf
@endif @endcan
Nothing recorded yet.
@else

This deal has no instalments collected by the dealership. (Instalments are tracked for finance deals with no lender named, once the deal is confirmed.)

@endif @endsection