@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; use App\Service\UserUtility; $hasAccessToViewAllProjects = UserUtility::hasAccessToViewAllProjects(); @endphp

Loan Register Report

{{--
kxghixd
--}}
{!! Form::open(['url' => 'viewLoanRegisterReport','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('searchLoanType', 'LoanType Type:', ['class' => 'control-label pull-left']) !!}
@php $loanTypes = array(''=>'All') + $fdrTypes; @endphp {!! Form::select('searchFdrType',$fdrTypes,$fdrTypeSelected,['id'=>'searchFdrType','class'=>'form-control input-sm']) !!}
--}}
{!! Form::label('searchBank', 'Bank Name:', ['class' => 'control-label pull-left']) !!}
@php $banks = array(''=>'All') + $banks; @endphp
{!! Form::select('searchBank',$banks,$bankSelected,['id'=>'searchBank','class'=>'form-control input-sm']) !!}
{!! Form::label('searchBankBranch', 'B.Branch:', ['class' => 'control-label pull-left']) !!}
@php //$bankBranches = array(''=>'All') + $bankBranches; @endphp
{{-- {!! Form::select('searchBankBranch',$bankBranches,$bankBranchSelected,['id'=>'searchBankBranch','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 = UserUtility::getUserAccessibleProjects()->where('id',$projectSelected)->value('name'); @endphp