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

OTS Interest Generate Report

{{--
kxghixd
--}}
{!! Form::open(['url' => 'viewOtsInterestGenerateReport','method' => 'get']) !!} {!! Form::hidden('firstRequest',1) !!}
{!! Form::label('', 'Branch Location:', ['class' => 'control-label pull-left']) !!}
{!! Form::label('searchInterestId', 'Interest Id:', ['class' => 'control-label pull-left']) !!}
{!! Form::select('searchInterestId',$searchInterestIds,$interestIdSelected,['searchInterestId','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($interestDetails as $index => $interestDetail) @php $totalAmount = $totalAmount + (float) $interestDueAmount[$index]; @endphp @endforeach
SL# Account Name Account Number Branch Location Account Nature Interest Rate (%) Principal Amount (Tk) Interest Amount (Tk)
{{$index+1}} {{$accName[$index]}} {{$interestDetail->accNo}} {{$branchName[$index]}} {{$accNature[$index]}} {{$interestRate[$index]}} {{number_format($principalAmount[$index],2,'.',',')}} {{number_format($interestDueAmount[$index],2,'.',',')}}
Total {{number_format($totalAmount,2,'.',',')}}
@endif
{{-- Filtering --}}