@extends('layouts/acc_layout') @section('title', '| Register Report') @section('content') @php $projectSelected = isset($_GET['searchProject']) ? $_GET['searchProject'] : null; $projectTypeSelected = isset($_GET['searchProjectType']) ? $_GET['searchProjectType'] : null; $donorTypeSelected = isset($_GET['searchDonorType']) ? $_GET['searchDonorType'] : null; $dateSelected = isset($_GET['searchDate']) ? $_GET['searchDate'] : null; $firstRequest = isset($_GET['firstRequest']) ? '1' : '0'; @endphp
| SL# | Bank/Donar | Account No / Phase/ Cycle | Loan Amount | Installment Size | Current Month Loan Installment | Current Month Loan Installment Re-Payment | Current Month Loan Installment Due (Tk) |
|||
|---|---|---|---|---|---|---|---|---|---|---|
| Date | Amount (Tk) | Date | Amount (Tk) | |||||||
| {{$projectType->name}} | ||||||||||
| {{++$index}} | @php $count = 1; $isChanged = 0; if ($key>0) { if ($accounts[$key-1]->bankId_fk!=$account->bankId_fk) { $isChanged = 1; } } if ($key == 0 || $isChanged == 1) { $count = DB::table('acc_loan_register_account')->whereIn('bankId_fk',$bankIds)->whereIn('id',$accountListHavingInstallment); if ($projectSelected!=null) { $count = $count->where('projectId_fk',$projectSelected); } if ($projectTypeSelected!=null) { $count = $count->where('projectTypeId_fk',$projectTypeSelected); } $count = $count->where('bankId_fk',$account->bankId_fk)->count(); } @endphp @if($isChanged==1 || $key==0){{$bankName}} | @endif {{--{{$bankName}} | --}}{{$accNoPhaseCycleValue}} | {{number_format($account->loanAmount,2,'.',',')}} | {{number_format($installmentSize,2,'.',',')}} | {{$installmentDate}} | {{number_format($installmentSize,2,'.',',')}} | {{$paymentDateInThisMonth}} | {{number_format($paymentAmountInThisMonth,2,'.',',')}} | {{number_format($thisMonthDue,2,'.',',')}} |
| Sub Total | {{number_format($sTloanAmount,2,'.',',')}} | {{number_format($sTinstallmentSize,2,'.',',')}} | {{number_format($sTinstallmentSize,2,'.',',')}} | {{number_format($sTcurrentMonthPayment,2,'.',',')}} | {{number_format($sTcurrentMonthDue,2,'.',',')}} | |||||
| Total | {{number_format($gTloanAmount,2,'.',',')}} | {{number_format($gTinstallmentSize,2,'.',',')}} | {{number_format($gTinstallmentSize,2,'.',',')}} | {{number_format($gTcurrentMonthPayment,2,'.',',')}} | {{number_format($gTcurrentMonthDue,2,'.',',')}} | |||||