@extends('layouts/microfin_layout') @section('title', '|Member Bank List') @section('content')

Members Bank List

{!! Form::open(array('name' => 'searchForm', 'class' => 'searchForm', 'url' => 'mfn/bank/list', 'method' => 'GET')) !!} {{--
{!! Form::label('keyword', 'Keyword:', ['class' => 'control-label']) !!}
{!! Form::text('keyword', request()->all('keyword')['keyword'] ?? '', ['class' => 'form-control', 'id' => 'keyword', 'type' => 'text']) !!}
--}} @if ( count($data['branches'])>1)
{!! Form::label('branch', 'Branch:', ['class' => 'control-label']) !!}
{!! Form::select('branchId', count($data['branches'])>1 ? array('' => 'Select') + ($data['branches']) : ($data['branches']), request()->all('branchId')['branchId'] ?? '' , array('class'=>'form-control', 'id' => 'branchId')) !!}
@endif
{!! Form::label('samity', 'Samity:', ['class' => 'control-label']) !!}
{!! Form::select('samityId', array('' => 'Select') + ($data['samity']), request()->all('samityId')['samityId'] ?? '', array('class'=>'form-control', 'id' => 'samityId')) !!}
{!! Form::label('', '', ['class' => 'control-label']) !!}
{!! Form::submit('Search ', ['id' => 'submit', 'class' => 'btn btn-search']) !!}
{!! Form::close() !!}
{{-- form start --}} @if (isset($data['members']) && !empty($data['members']))
{!! Form::open(['url' => '','method'=>'post', 'id'=>'bankAddForm']) !!} @php $memberSl = 1; @endphp @foreach ($data['members'] as $member) {{-- {!! Form::hidden('memberId', $member->id) !!} --}}
{{-- --}} @foreach ($data['pendingBankAccounts'] as $bankAccount) @if($loop->iteration ==1) @endif @endforeach {{-- --}}
SL Member Bank Account Form
Name Code Bank Type Bank NameHolder NameAccount Number Routing Number Branch Bank File Action
{{$memberSl++}} {{$member->name}} {{$member->code}} {!! Form::hidden('memberIds[]', $member->id, [ 'class' => 'member_id']) !!} {!! Form::select("bankType[$member->id][]", ['' => 'Select']+$data['BANK_TYPES'], $bankAccount->bankType, [ 'class' => 'form-control bank_type']) !!} {!! Form::select("bankId[$member->id][]", ['' => 'Select']+ (($bankAccount->bankType == 'bank') ? $data['banks'] : $data['mobileBankings']), $bankAccount->bankId, ['class' => 'form-control bank_id']) !!} {!! Form::text("accountNumber[$member->id][]", @$bankAccount->accountNumber, ['class' => 'text-center form-control']) !!} {!! Form::text("routingNumber[$member->id][]", @$bankAccount->routingNumber, ['class' => 'text-center form-control routing_number', ($bankAccount->bankType == 'mobile_banking') ? 'readonly' : null]) !!} {!! Form::text("branchName[$member->id][]", @$bankAccount->branchName, ['class' => 'text-center form-control branch_name', ($bankAccount->bankType == 'mobile_banking') ? 'readonly' : null]) !!} {!! Form::file("bankFile[$member->id][]", ['class' => 'text-left bankFile', 'style' => 'width:150px;', ($bankAccount->bankType == 'mobile_banking') ? 'disabled' : null]) !!} @if (@$bankAccount->bankFile) Show File @endif    
Effective Date  
@endforeach
Effective Date:* {!! Form::text("effectiveDate", (isset($bankAccount->effectiveDate) && $bankAccount->effectiveDate) ? date('d-m-Y', strtotime(@$bankAccount->effectiveDate)) : null, ['class' => 'text-center form-control datepicker', 'readonly' => 'readonly', 'id' => 'effectiveDate']) !!}
{!! Form::close() !!}
@endif {{-- form end --}}
@endsection