@extends('layouts.app') @section('title','লোন ডিটেইলস') @section('content')
{{-- টপ অ্যাকসেন্ট --}}

লোন #{{ $loan->id }}

{{ __('status.'. $loan->status) ?? ucfirst($loan->status) }}
@if(session('success'))
{{ session('success') }}
@endif {{-- সারসংক্ষেপ --}}
লোনের পরিমাণ
৳{{ number_format($loan->loan_amount) }}
মেয়াদ
{{ $loan->loan_period }} মাস
সুদের হার
{{ number_format($loan->interest_rate,2) }}%
আনুমানিক মোট পরিশোধ
৳{{ number_format($loan->estimated_total,2) }}
{{-- ক্যালকুলেশন (যদি সেভ করা থাকে) --}} @if(isset($loan->calc_emi) || isset($loan->calc_total_interest) || isset($loan->calc_net_disbursed))
ক্যালকুলেশন সারসংক্ষেপ
@isset($loan->calc_emi)
মাসিক কিস্তি (EMI)
৳{{ number_format($loan->calc_emi,2) }}
@endisset @isset($loan->calc_total_interest)
মোট সুদ
৳{{ number_format($loan->calc_total_interest,2) }}
@endisset @isset($loan->calc_total_payment)
মোট পরিশোধ
৳{{ number_format($loan->calc_total_payment,2) }}
@endisset @isset($loan->calc_net_disbursed)
হাতে পাওয়া টাকা
৳{{ number_format($loan->calc_net_disbursed,2) }}
@endisset
@endif {{-- ডকুমেন্ট --}} @if($loan->image_path)
ডকুমেন্ট
Loan Document
@endif {{-- রিপেমেন্ট সিডিউল --}} @if($loan->repayments->count())
রিপেমেন্ট সিডিউল
@foreach($loan->repayments as $r)
{{ $r->due_date->format('d M Y') }}
৳{{ number_format($r->amount,2) }}
{{ __('status.'.$r->status) ?? ucfirst($r->status) }}
@endforeach
@endif
@endsection