@extends('layouts/acc_layout') @section('title', '| OTS Bank Advice Letter') @section('content')

OTS Bank Advice Letter

{{--
kxghixd
--}}
{!! Form::open(['url' => 'otsBankAdviceLetter','method' => 'get']) !!} {!! Form::hidden('firstRequest',1) !!}
{!! Form::label('', 'Branch Location:', ['class' => 'control-label pull-left']) !!}
{!! Form::label('searchInterestPayment', 'Interest Payment Id:', ['class' => 'control-label pull-left']) !!}
{!! Form::select('searchInterestPayment',$searchInterestPayments,$interestPaymentSelected,['id'=>'searchInterestPayment','class'=>'form-control']) !!}
{{--
{!! 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($payments as $key => $payment) {{-- --}} {{-- --}} {{-- --}} @php $totalAmount = $totalAmount + (float) $interestPayment[$key]; @endphp @endforeach
SL# Account ID Account Holder Name Account Number Routing No Bank Name Branch Name Amount (Tk)
{{$key+1}}{{date('d-m-Y',strtotime($payment->paymentDate))}} {{$memberName[$key]}} {{explode('-', $accNo[$key])[0]}} {{$accHolderName[$key]}}  {{$bankAccountNo[$key]}}  {{$routingNo[$key]}} {{$bankName[$key]}} {{$branchName[$key]}}{{$interestRate[$key]}}{{number_format($principalAmount[$key],2,'.',',')}}{{number_format($interestPayment[$key],2,'.',',')}}
Total {{number_format($totalAmount,2,'.',',')}}
@endif
{{-- Filtering --}}