@switch($settlement->status) @case(3) Declined @break @case(1) Pending Admin Approval @break @case(2) Confirmed @break @default Declined - Admin @endswitch
Reference : {{$settlement->reference}}

@php($loan = $settlement->loan)
Principal Amount {{number_format($loan->amount,2)}} Loan Released Date {{$loan->created_at}}
EMI {{$loan->repaymentPlans->first()->is_new ? number_format($loan->emi,2) : number_format($loan->repaymentPlans->first()->emi + $loan->repaymentPlans->first()->management_fee,2)}} Payment Closed {{$loan->closedPayments()->count()}}
Loan Tenor {{$loan->duration}} Penalty @php($cur_month = $loan->created_at->diffInMonths(now())) @if($cur_month <= 3) {{10}}% @elseif($cur_month <=6) {{7.5}}% @elseif($cur_month <=9) {{5}}% @else {{0}}% @endif

Loan Fulfilment
Released Amount {{number_format($loan->amount,2)}}
Interest and Fees to Date {{number_format($loan->accrued_amount,2)}}
Current Value of Loan {{number_format($loan->current_value,2)}}
Less : Repayments {{number_format($loan->deductions,2)}}
      Repayment Wallet Balance {{number_format($loan->repayment_wallet,2)}}
Value on Closure {{number_format($loan->closing_value)}}
Preliquidation Charge {{number_format($loan->penal_charge,2)}}
Total Due @ {{now()}} {{number_format($loan->closing_value + $loan->penal_charge,2)}}