@extends('layouts.app') @section('content')
{{ $project?->name }} › Schemes › {{ $scheme?'Edit':'Create' }}
@if ($errors->any())
@endif
@csrf @if($scheme) @method('PUT') @endif
@php $dp = (float) old('down_payment_pct', $scheme->down_payment_pct ?? 0); $tp = (float) old('token_pct', $scheme->token_pct ?? 0); $base = 10000000; $down = $base * $dp / 100; $token = $base * $tp / 100; $months = (int) old('duration_months', $scheme->duration_months ?? 0); $monthly = $months>0 ? number_format(($base - $down - $token)/$months, 2) : '0.00'; @endphp Example: For a 10M property, Down Payment: {{ number_format($down,2) }}, Token: {{ number_format($token,2) }}, Monthly Installment: {{ $monthly }}
Cancel
@endsection