@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; $datefrom = isset($_GET['formDate']) ? $_GET['formDate'] : null; $dateto = isset($_GET['toDate']) ? $_GET['toDate'] : null; $firstRequest = isset($_GET['firstRequest']) ? '1' : '0'; use App\Service\UserUtility; $hasAccessToViewAllProjects = UserUtility::hasAccessToViewAllProjects(); @endphp

Loan Register Installment Report

{{--
kxghixd
--}}
{!! Form::open(['url' => 'loanRegisterInstallmentReport','method' => 'get']) !!} {!! Form::hidden('firstRequest',1) !!}
{!! Form::label('', 'Project:', ['class' => 'control-label pull-left']) !!}
@php $acticeProjectforSearch = DB::table('acc_loan_register_account')->pluck('projectId_fk')->toArray(); // $searchProjects = UserUtility::getUserAccessibleProjects()->whereIn('id',$acticeProjectforSearch)->select('id','name','projectCode')->get(); @endphp
{!! Form::label('', 'Project Type:', ['class' => 'control-label pull-left']) !!}
@php $acticeProjectTypesforSearch = DB::table('acc_loan_register_account')->distinct()->pluck('projectTypeId_fk')->toArray(); $searchProjectTypes = DB::table('gnr_project_type')->whereIn('id',$acticeProjectTypesforSearch); if($projectSelected!=null){ $searchProjectTypes = $searchProjectTypes->where('projectId',$projectSelected); } $searchProjectTypes = $searchProjectTypes->select('id','name','projectTypeCode')->get(); @endphp
{!! Form::label('', 'Donor Type:', ['class' => 'control-label pull-left']) !!}
{!! Form::select('searchDonorType',[''=>'All','0'=>'Bank','1'=>'Donor'],$donorTypeSelected,['class'=>'form-control']) !!}
{!! Form::label('', 'Form Date:', ['class' => 'control-label pull-left']) !!}
{!! Form::text('formDate',null,['id'=>'from','placeholder'=>'From','class'=>'form-control input-sm searchDateReplica','readonly','style'=>'cursor:pointer']) !!} {!! Form::hidden('searchDate',null,['id'=>'searchDate']) !!}
{!! Form::label('', 'To Date:', ['class' => 'control-label pull-left']) !!}
{!! Form::text('toDate',null,['id'=>'to','placeholder'=>'To','class'=>'form-control input-sm searchDateReplica','readonly','style'=>'cursor:pointer']) !!} {!! Form::hidden('searchDate',null,['id'=>'searchDate']) !!}
{!! Form::submit('Search',['id'=>'search','class'=>'btn btn-primary btn-xs','style'=>'font-size:15px;']) !!}
{!! Form::close() !!}
{{-- End Filtering Group --}} @if($firstRequest)
{{-- div for Company --}}
Fatal error: Uncaught Error: Class "DB" not found in /home/shikkhaplus/public_html/demo_bk/resources/views/accounting/registerReport/loanRegister/installmentReport.blade.php:157 Stack trace: #0 {main} thrown in /home/shikkhaplus/public_html/demo_bk/resources/views/accounting/registerReport/loanRegister/installmentReport.blade.php on line 157