Ambala Foundation
House # 62, Block # Ka, Piciculture Housing Society, Shyamoli, Dhaka-1207
Advance Register Report
{{--
{{$selectedBranchName}}
--}}
{{date('F d, Y',strtotime($endDate))}}
Project:
@if($projectSelected==null)
{{'All'}}
@else
@php
$project = DB::table('gnr_project')->where('id',$projectSelected)->value('name');
@endphp
{{$project}};
@endif {{--project selected end--}}
Project Type :
@if($projectTypeSelected==null)
{{'All'}}
@else
@php
$projectTypeName = DB::table('gnr_project_type')->where('id',$projectTypeSelected)->value('name');
@endphp
{{$projectTypeName}};
@endif {{--Project Type end php--}}
{{--Register Type start php--}}
Register Type :
@if($regTypeSelected==null)
{{'All'}}
@else
@php
$reTypeName = DB::table('acc_adv_register_type')->where('id',$regTypeSelected)->value('name');
@endphp
{{$reTypeName}};
@endif {{--Register Type end php--}}
Reporting Peroid : {{date('d-m-Y',strtotime($startDate))." to ".date('d-m-Y',strtotime($endDate))}}
{{--Register Category start php--}}
Register Category:
@if($categorySelected==null)
{{'All'}}
@elseif($categorySelected==1)
{{'House Owner'}}
@elseif($categorySelected==2)
{{'Supplier'}}
@elseif($categorySelected==3)
{{'Employee'}}
@endif
{{--Register Category end php--}}
Print Date : {{date('F d,Y')}}
| SL# |
Date |
Name |
Project Name |
Amount (Tk) |
@php
$totalAmount= 0;
@endphp
@foreach ($registerType as $reg)
| {{$reg->name}}: |
@php
$subtotal= 0;
$index=1;
@endphp
@foreach($accAdvRegister as $accAdvReg)
@php
$project= DB::table('gnr_project')->where('id',$accAdvReg->projectId)->value('name');
$projectType= DB::table('gnr_project_type')->where('id',$accAdvReg->projectTypeId)->value('name');
$result='';
if($accAdvReg->houseOwnerId){
$houseOwner= DB::table('gnr_house_Owner')->where('id',$accAdvReg->houseOwnerId)->value('houseOwnerName');
$result=$houseOwner;
}
elseif($accAdvReg->supplierId){
$supplir=DB::table('gnr_supplier')->where('id',$accAdvReg->supplierId)->value('name');
$result =$supplir;
}
elseif($accAdvReg->employeeId){
$employee = DB::table('hr_emp_general_info')->where('id',$accAdvReg->employeeId)->value('emp_name_english');
$result =$employee;
}
@endphp
@if($reg->id==$accAdvReg->advRegType)
| {{$index++}} |
{{date('d-m-Y',strtotime($accAdvReg->advPaymentDate))}} |
{{$result}} |
{{$project}} |
{{number_format($accAdvReg->amount,2)}} |
@php $subtotal=$subtotal+$accAdvReg->amount; @endphp
@endif
@endforeach
| Sub Total | {{number_format($subtotal,2)}} |
@php $totalAmount=$totalAmount+$subtotal; @endphp
@endforeach
| Total | {{number_format($totalAmount,2)}} |
@endif