@extends('layouts/acc_layout') @section('title', '| Register Report') @section('content')

OTS Account Opening Report

{{--
kxghixd
--}}
{!! Form::open(['url' => 'viewOtsAccountOpeningReport','method' => 'get']) !!} {!! Form::hidden('firstRequest',1) !!}
{!! Form::label('', 'Branch Location:', ['class' => 'control-label pull-left']) !!}
{!! 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) @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($infos as $index => $info) @php $branchName = DB::table('gnr_branch')->where('id',$info->branchId_fk)->value('name'); $natureOfPayment = DB::table('acc_ots_period')->where('id',$info->periodId_fk)->value('name'); @endphp @php $totalAmount = $totalAmount + (float) $info->amount; @endphp @endforeach
SL# Opening Date Name of Account Holder Account Number Branch Location Period Interest Rate (%) Amount (Tk)
{{$index+1}} {{date('d-m-Y',strtotime($info->openingDate))}} {{$info->name}} {{$info->accNo}} {{$branchName}} {{$natureOfPayment}} {{number_format($info->interestRate,2)}} {{number_format($info->amount,2,'.',',')}}
Total {{number_format($totalAmount,2,'.',',')}}
@endif
{{-- Filtering --}}