@extends('layouts/microfin_layout') @section('title', '| Loan Rebate') @section('content') @php use \App\Http\Controllers\microfin\savings\MfnSavingsDepositTypeController as createForm; $pageNo = isset($_GET['page']) ? (int) $_GET['page']: 1; $branchSelected = isset($_GET['filBranch']) ? $_GET['filBranch'] : null; $samitySelected = isset($_GET['filSamity']) ? $_GET['filSamity'] : null; $memberCodeSelected = isset($_GET['filMemberCode']) ? $_GET['filMemberCode'] : null; $loanProductSelected = isset($_GET['filLoanProduct']) ? $_GET['filLoanProduct'] : null; $dateFromSelected = isset($_GET['filDateFrom']) ? $_GET['filDateFrom'] : null; $dateToSelected = isset($_GET['filDateTo']) ? $_GET['filDateTo'] : null; @endphp

LOAN REBATE LIST

{!! Form::open(array('url' => 'viewMfnLoanRebates', 'role' => 'form', 'class'=>'form-horizontal form-groups', 'id' => 'filterFormId', 'method'=>'get')) !!}
@if(!in_array($userRoleId, Config('services.branch_level_user_roles')))
{!! Form::label('', 'Branch:', ['class' => 'control-label pull-left']) !!}
{!! Form::select('filBranch', [''=>'--All--']+$branchList, $branchSelected ,['id'=>'filBranch','class'=>'form-control input-sm','autocomplete'=>'off']) !!}
@else
{!! Form::label('', 'Branch:', ['class' => 'control-label pull-left']) !!}
{!! Form::select('filBranch', $branchList, $branchSelected ,['id'=>'filBranch','class'=>'form-control input-sm','autocomplete'=>'off']) !!}
@endif
{!! Form::label('', 'Samity:', ['class' => 'control-label pull-left']) !!}
{!! Form::select('filSamity', [''=>'--All--']+$samityList, $samitySelected ,['id'=>'filSamity','class'=>'form-control input-sm','autocomplete'=>'off']) !!}
{!! Form::label('', 'Member Code:', ['class' => 'control-label pull-left']) !!}
{!! Form::text('filMemberCode', $memberCodeSelected ,['id'=>'filMemberCode','class'=>'form-control input-sm','autocomplete'=>'off']) !!}
{!! Form::label('', 'Loan Product:', ['class' => 'control-label pull-left']) !!}
{!! Form::select('filLoanProduct', [''=>'--All--']+$loanProductList, $loanProductSelected ,['id'=>'filLoanProduct','class'=>'form-control input-sm','autocomplete'=>'off']) !!}
{!! Form::label('', 'Date From:', ['class' => 'control-label pull-left']) !!}
{!! Form::text('filDateFrom', $dateFromSelected,['id'=>'filDateFrom','class'=>'form-control input-sm', 'autocomplete'=>'off','readonly','style'=>'cursor:pointer']) !!}
{!! Form::label('', 'Date To:', ['class' => 'control-label pull-left']) !!}
{!! Form::text('filDateTo', $dateToSelected,['id'=>'filDateTo','class'=>'form-control input-sm', 'autocomplete'=>'off','readonly','style'=>'cursor:pointer']) !!}
{!! Form::label('', '', ['class' => 'control-label col-md-12']) !!}
{!! Form::submit('Search', ['id' => 'searchButton', 'class' => 'btn btn-primary btn-xs']); !!}
{!! Form::close() !!} @foreach ($loanRebates as $key => $loanRebate) @endforeach
SL# Member Name Member Code Loan Code Samity Code Transaction Date Rebate Amount Delay Interest Amount Notes Entry By Action
{{ ($pageNo-1)*100+($key+1) }} {{ $members->where('id',$loanRebate->memberIdFk)->max('name') }} {{ $members->where('id',$loanRebate->memberIdFk)->max('code') }} {{ $loans->where('id',$loanRebate->loanIdFk)->max('loanCode') }} {{ $samity->where('id',$loanRebate->samityIdFk)->max('code') }} {{ date('d-m-Y', strtotime($loanRebate->date)) }} {{ number_format( $loanRebate->amount , 2 ) }} {{ number_format( $loanRebate->delayInterestAmount ) }} {{ $loanRebate->notes }} {{ $employee->where('id',$loanRebate->entryByEmpIdFk)->max('name') }} {{-- --}}
{{ $loanRebates->appends(request()->input())->links() }}
{{-- View Modal --}} {{-- End View Modal --}} {{-- Edit Modal --}} {{-- End Edit Modal --}} {{-- Delete Modal --}} {{-- End Delete Modal --}} @endsection