តារាងបង់ប្រាក់

លេខអតិថិជន: {{ substr('0000'.$loan->borrower->id, strlen($loan->borrower->id)<=5?-5:-(strlen($loan->borrower->id))) }} អតិថិជន: {{$loan->borrower->first_name}} {{$loan->borrower->last_name}}
ភេទ: {{ $loan->borrower->gender=="Male"?"ប្រុស":"ស្រី" }} លេខទូរស័ព្ទ: {{$loan->borrower->phone}}
របៀបបង់ប្រាក់: @if($loan->interest_method=="interest_only") បង់តែការប្រាក់ @elseif($loan->interest_method=="flat_rate") ការប្រាក់ថេរ @elseif($loan->interest_method=="declining_balance_equal_principal") Declining balance equal principal @elseif($loan->interest_method=="declining_balance_equal_installments") Declining balance equal installments @endif ទឹកប្រាក់យក: {{currency_converter($loan->principal, 2)}}
អត្រាការប្រាក់: {{number_format($loan->interest_rate, 2)}}% ចំនួនកាលវិភាគ: {{$loan->loan_duration}} {{$types[$loan->loan_duration_type] }}
កាលបរិច្ឆេទកម្ចី: {{$loan->release_date}} កាលបរិច្ឆេទបញ្ចប់កម្ចី: {{$loan->schedules->last()->due_date }}
លេខទូរស័ព្ទក្រុមហ៊ុន: {{\App\Models\Setting::where('setting_key','company_phone')->first()->setting_value}}
@foreach($loan->schedules->where("description", "Repayment") as $schedule) @endforeach
ល.រ កាលបរិច្ឆេទ ការប្រាក់ ប្រាក់ដើម សរុប សមតុល្យប្រាក់ដើម
{{$index}} {{$schedule->due_date }} {{currency_converter($schedule->interest, 2) }} {{currency_converter($schedule->principal, 2) }} {{currency_converter($schedule->due, 2) }} ​{{currency_converter($schedule->principal_balance, 2) }}
សរុប {{ currency_converter($loan->schedules->where("description", "Repayment")->sum("interest")) }} {{ currency_converter($loan->schedules->where("description", "Repayment")->sum("principal")) }} {{ currency_converter($loan->schedules->where("description", "Repayment")->sum("due")) }} {{ currency_converter($loan->schedules->where("description", "Repayment")->last()->principal_balance )}}
ស្នាមមេដៃអតិថិជន







.....................................................
ថ្ងៃទី {{date("d")}} ខែ {{$months[date('M')]}} ឆ្នាំ {{date('Y')}}
ត្រាក្រុមហ៊ុន





......................................................