@extends('layouts/microfin_layout') @section('title', '| Add Loan Rebate') @section('content') @php use \App\Http\Controllers\microfin\savings\MfnSavingsDepositTypeController as createForm; @endphp
New Loan Rebate
{!! Form::open(array('url' => '', 'role' => 'forl', 'id' => 'rootwizard', 'class' => 'form-horizontal form-groups', 'novalidate' => '')) !!}
{!! Form::hidden('memberId',null,['id'=>'memberId']) !!} {!! Form::hidden('branchId',null,['id'=>'branchId']) !!} {!! Form::hidden('samityId',null,['id'=>'samityId']) !!} {!! Form::hidden('workingAreaId',null,['id'=>'workingAreaId']) !!} @if(!in_array($userRoleId, Config('services.branch_level_user_roles'))) {!! createForm::select('filBranch',$branchList,null,'Branch:',['id'=>'filBranch','autocomplete'=>'off']) !!} @endif {!! createForm::select('filSamity',$samityList,null,'Samity:',['id'=>'filSamity','autocomplete'=>'off']) !!} {!! createForm::text('member','','Member:',['id'=>'member','autocomplete'=>'off']) !!} {!! createForm::select('loanId',[''=>'Select'],null,'Loan Id:',['id'=>'loanId','autocomplete'=>'off']) !!} {!! createForm::text('rebateDate',null,'Rebate Date:',['id'=>'rebateDate','autocomplete'=>'off','readonly'=>'readonly','style'=>'cursor:pointer']) !!} {!! createForm::text('principalAmount','','Principal Amount:',['id'=>'principalAmount','autocomplete'=>'off','readonly'=>'readonly']) !!} {!! createForm::text('interestAmount','','Interest Amount:',['id'=>'interestAmount','autocomplete'=>'off','readonly'=>'readonly']) !!} {!! createForm::text('rebateAmount','','Rebate Amount:',['id'=>'rebateAmount','autocomplete'=>'off','amountLimit'=>0]) !!}
{!! Form::label('notes', 'Notes:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::textarea('notes','',['class'=>'form-control','rows'=>4]) !!}
{{-- End First Column --}} {{-- Second Coloum --}}
@php $tableRows = ['Payable','Transaction','Outstanding','Installment','Advance','Due','Rebateable','Payable After Rebate']; @endphp

Loan Information

@foreach ($tableRows as $tableRow) @endforeach
Loan Total Principal Interest
{{$tableRow}}
{{-- End Second Coloum --}}
    {!! Form::submit('Submit', ['id' => 'submit', 'class' => 'btn btn-info']) !!}
{!! Form::close() !!}
@php // if (Auth::user()->branchId==1) { // $memberIdsFromLoan = DB::table('mfn_loan')->where('softDel',0)->pluck('memberIdFk')->toArray(); // dd($memberIdsFromLoan); // $members = DB::table('mfn_member_information')->where('softDel',0)->whereIn('id',$memberIdsFromLoan)->where('status',1)->orderBy('code')->select('id','name','code','branchId','samityId')->get(); // } // else{ // $memberIdsFromLoan = DB::table('mfn_loan')->where('softDel',0)->where('branchIdFk',Auth::user()->branchId)->pluck('memberIdFk')->toArray(); // dd($memberIdsFromLoan); // $members = DB::table('mfn_member_information')->where('softDel',0)->whereIn('id',$memberIdsFromLoan)->where('status',1)->where('branchId',Auth::user()->branchId)->where('admissionDate','<=',$softDate)->select('id','name','code','branchId','samityId')->get(); // } $members = []; @endphp {{-- --}} @endsection