@extends('layouts/acc_layout') @section('title', '| Loan Register Report') @section('content') @php use Carbon\Carbon; $projectSelected = isset($_GET['searchProject']) ? $_GET['searchProject'] : null; $projectTypeSelected = isset($_GET['searchProjectType']) ? $_GET['searchProjectType'] : null; $branchSelected = isset($_GET['searchBranch']) ? $_GET['searchBranch'] : null; //$fdrTypeSelected = isset($_GET['searchFdrType']) ? $_GET['searchFdrType'] : null; $bankSelected = isset($_GET['searchBank']) ? $_GET['searchBank'] : null; $bankBranchSelected = isset($_GET['searchBankBranch']) ? $_GET['searchBankBranch'] : null; $dateFromSelected = isset($_GET['dateFrom']) ? $_GET['dateFrom'] : $softwareStartDate; $dateToSelected = isset($_GET['dateTo']) ? $_GET['dateTo'] : $softwareDate; $firstRequest = isset($_GET['firstRequest']) ? '1' : null; /*var_dump($bankBranchSelected); exit();*/ $userBranchId = Auth::user()->branchId; @endphp
| SL# | Loan Received Date |
Account No | Account Name | Loan Duration |
Interest Rate (%) |
Loan Amount (Tk) | Opening Balance | Addition | Payment | Closing Balance | {{--Interest | Bank Charge | Tax | Net Interest | Receiveable Amount | Closing Date | Closing Amount | Balance | --}}||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Principal | Interest | Bank Charge | Principal | Interest | Bank Charge | |||||||||||||||||
| {{$bankName.', '.$branch->name}} | ||||||||||||||||||||||
| {{$index}} | {{date('d-m-Y',strtotime($loanAccount->loanDate))}} | {{$loanAccount->accNo}} | {{$loanAccount->loanDuration}} | {{$loanAccount->interestRate}} | {{number_format($loanAccount->loanAmount,2)}} | {{number_format($loanInterest,2,'.',',')}} | {{number_format($aditionPrincipleAmount,2)}} | {{number_format($aditionInterestAmount,2,'.',',')}} | {{number_format($paymentPrincipalAmount,2,'.',',')}} | {{number_format($paymentInterestAmount,2,'.',',')}} | {{number_format($loan,2,'.',',')}} | {{--{{number_format($bankChange,2,'.',',')}} | @if($closingDate==null) {{"-"}} @else {{date('d-m-Y',strtotime($closingDate))}} @endif | @if($closingDate==null) {{"-"}} @else {{number_format($closingAmount,2,'.',',')}} @endif | {{number_format($balance,2,'.',',')}} | --}}|||||||
| Sub Total | {{number_format($sLoanAmount,2,'.',',')}} | {{number_format($sOpeingBalance,2,'.',',')}} | {{number_format($sAditionPrincipal,2,'.',',')}} | {{number_format($sAditionInterest,2,'.',',')}} | {{number_format($sPaymentPrincipal,2,'.',',')}} | {{number_format($sPaymentInterest,2,'.',',')}} | {{number_format($sClosingBalance,2,'.',',')}} | |||||||||||||||
| Total {{'('.$rowNumbers.')'}} | {{number_format($gtLoanAmount,2,'.',',')}} | {{number_format($gtLoanOpeningBalance,2,'.',',')}} | {{number_format($gtLoanAditionPrincipal,2,'.',',')}} | {{number_format($gtLoanAditionInterest,2,'.',',')}} | {{number_format($gtLoanPaymentPrincipal,2,'.',',')}} | {{number_format($gtLoanPaymentInterest,2,'.',',')}} | {{number_format($gtClosingBalance,2,'.',',')}} | |||||||||||||||