@extends('layouts/acc_layout') @section('title', '| FDR Report') @section('content') @php $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; $bankNameSelected = isset($_GET['searchBankName']) ? $_GET['searchBankName'] : null; $bankBranchLocationSelected = isset($_GET['searchBankBranchLocation']) ? $_GET['searchBankBranchLocation'] : null; $dateFromSelected = isset($_GET['dateFrom']) ? $_GET['dateFrom'] : null; $dateToSelected = isset($_GET['dateTo']) ? $_GET['dateTo'] : null; $firstRequest = isset($_GET['firstRequest']) ? '1' : null; $userBranchId = Auth::user()->branchId; var_dump($branchSelected); @endphp

FDR Account Opening Report

{{--
kxghixd
--}}
{!! Form::open(['url' => 'viewFdrAccountOpeningReport','method' => 'get']) !!} {!! Form::hidden('firstRequest',0) !!}
{!! Form::label('', 'Project:', ['class' => 'control-label pull-left']) !!}
{!! Form::label('', 'Project Type:', ['class' => 'control-label pull-left']) !!}
{!! Form::label('searchBranch', 'Branch:', ['class' => 'control-label pull-left']) !!}
{!! Form::label('searchFdrType', 'FDR Type:', ['class' => 'control-label pull-left']) !!}
@php $fdrTypes = array(''=>'All') + $fdrTypes; @endphp {!! Form::select('searchFdrType',$fdrTypes,$fdrTypeSelected,['id'=>'searchFdrType','class'=>'form-control input-sm']) !!}
{!! Form::label('searchBankName', 'Bank Name:', ['class' => 'control-label pull-left']) !!}
@php $bankNames = array(''=>'All') + $bankNames; @endphp
{!! Form::select('searchBankName',$bankNames,$bankNameSelected,['id'=>'searchBankName','class'=>'form-control input-sm']) !!}
{!! Form::label('searchBankBranchLocation', 'Location:', ['class' => 'control-label pull-left']) !!}
@php $bankBranchLocations = array(''=>'All') + $bankBranchLocations; @endphp
{!! Form::select('searchBankBranchLocation',$bankBranchLocations,$bankBranchLocationSelected,['id'=>'searchBankBranchLocation','class'=>'form-control input-sm']) !!}
{!! Form::label('', ' ', ['class' => 'control-label']) !!}
{!! Form::text('dateFrom',$dateFromSelected,['id'=>'dateFrom','placeholder'=>'From','class'=>'form-control input-sm','readonly','style'=>'cursor:pointer']) !!}
{!! Form::text('dateTo',$dateToSelected,['id'=>'dateTo','placeholder'=>'To','class'=>'form-control input-sm','readonly','style'=>'cursor:pointer']) !!}
{!! Form::submit('Search',['id'=>'search','class'=>'btn btn-primary btn-xs','style'=>'font-size:15px;']) !!}
{!! Form::close() !!}
{{-- End Filtering Group --}} @if($firstRequest!=null) @php if($branchSelected=='0'){ $selectedBranchName = "All Branches"; } else{ $selectedBranchName = DB::table('gnr_branch')->where('id',$branchSelected)->value('name'); } $selectedProjectName = DB::table('gnr_project')->where('id',$projectSelected)->value('name'); @endphp

@php $totalAmount = 0; @endphp @foreach($fdrAccounts as $index => $fdrAccount) @php $totalAmount = $totalAmount + $fdrAccount->principalAmount; @endphp @endforeach
SL# Opening Date Account No Account Name Bank Name Bank Branch Location Interest Rate (%) Principal Amount (Tk)
{{$index+1}} {{date('d-m-Y',strtotime($fdrAccount->openingDate))}} {{$fdrAccount->accNo}} {{$fdrAccount->accName}} {{$fdrAccount->bankName}} {{$fdrAccount->bankBranchLocation}} {{number_format($fdrAccount->interestRate,2)}} {{number_format($fdrAccount->principalAmount,2,'.',',')}}
Total {{number_format($totalAmount,2,'.',',')}}
@endif
{{-- Filtering --}}