@extends('layout') @section('page_title', 'Instalments') @section('content')

Instalment Management

Create Instalment

All Instalments

@if($agreements->isEmpty())

No instalments found

Get started by creating a new agreement.

Create Instalment
@else
@foreach($agreements as $a) @endforeach
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') }}
Showing {{ $agreements->firstItem() }} to {{ $agreements->lastItem() }} of {{ $agreements->total() }} instalments
{{ $agreements->links() }}
@endif
@endsection