@extends('adminlte::page') @section('title', 'Edit Loan Application') @section('content_header')

Edit Loan Application

@stop @section('content')

Edit Loan Application #{{ $loan->id }}

@csrf @method('PUT')
@error('user_id') {{ $message }} @enderror
@error('amount') {{ $message }} @enderror
@error('interest_rate') {{ $message }} @enderror
@error('status') {{ $message }} @enderror
@error('application_date') {{ $message }} @enderror
@error('return_date') {{ $message }} @enderror
@error('notes') {{ $message }} @enderror
Loan Calculation Preview
Principal Amount KSh 0.00
Interest Amount KSh 0.00
Total Amount KSh 0.00
Monthly Payment KSh 0.00
Loan Security & Guarantees
@foreach($loan->guarantees as $index => $guarantee)
{{ $guarantee->type_label }} {{ ucfirst($guarantee->status) }}
@if($guarantee->guarantee_type === 'salary' && $guarantee->salaryGuarantee) @php $salary = $guarantee->salaryGuarantee; @endphp
@elseif($guarantee->guarantee_type === 'collateral') @foreach($guarantee->collateral as $item)
@endforeach @elseif($guarantee->guarantee_type === 'guarantor') @foreach($guarantee->guarantors as $guarantor)
@endforeach @endif
@endforeach
@error('guarantee')
{{ $message }}
@enderror
Add at least one form of security/guarantee for the loan application. Salary guarantees require employment documents, collateral requires ownership documents, and guarantors must be registered members with active savings for more than 3 months.
@stop @push('css') @endpush @push('js') @endpush