@extends('layouts/microfin_layout') @section('title', '| Member Bank') @section('content')
{{-- Title --}} {{-- Panel start --}}
Member Bank Information
{{-- form start --}}
{!! Form::open(['url' => '']) !!} @include('microfin.member.member.navtabs') @include('microfin.member.member.introduction')
@if ($bankAccountFormShow == true) {!! Form::hidden('memberId', $memberId) !!} @foreach ($pendingBankAccounts as $bankAccount) {{-- --}} {{-- --}} {{-- --}} @endforeach {{-- --}}
Bank Account Form
Bank Type Bank Name Holder Name Account Number Routing Number Branch Bank File Effective Date Action
{!! Form::hidden('bankAccountId[]', $bankAccount->id) !!} {!! Form::select('bankType[]', ['' => 'Select'] + $BANK_TYPES, $bankAccount->bankType, [ 'class' => 'form-control bankType', ]) !!} {!! Form::select( 'bankId[]', ['' => 'Select'] + ($bankAccount->bankType == 'bank' ? $banks : $mobileBankings), $bankAccount->bankId, ['class' => 'form-control bankList'], ) !!} {{ $member->name }} {!! Form::text('accountNumber[]', @$bankAccount->accountNumber, ['class' => 'text-center form-control']) !!} {!! Form::text('routingNumber[]', @$bankAccount->routingNumber, [ 'class' => 'text-center form-control routingNo routingNumber', $bankAccount->bankType == 'mobile_banking' ? 'readonly' : null, ]) !!}{!! Form::select('routingNumber[]', (@$bankAccount->bankRoutings)? @$bankAccount->bankRoutings : [],@$bankAccount->routingNumber , ['class' => 'text-center form-control routingNo routingNumber select2', ($bankAccount->bankType == 'mobile_banking') ? 'disabled' : null]) !!} {{ @$bankAccount->branchName }} {!! Form::hidden('branchName[]', @$bankAccount->branchName, [ 'class' => 'text-center form-control branchName', 'readonly', ]) !!} {!! Form::text('branchName[]', @$bankAccount->branchName, ['class' => 'text-center form-control branchName', ($bankAccount->bankType == 'mobile_banking') ? 'readonly' : null]) !!} {!! Form::file('bankFile[]', [ 'class' => 'text-left', 'style' => 'width:150px;', $bankAccount->bankType == 'mobile_banking' ? 'disabled' : null, ]) !!} @if (@$bankAccount->bankFile) Show File @endif {!! Form::text( 'effectiveDate[]', isset($bankAccount->effectiveDate) && $bankAccount->effectiveDate ? date('d-m-Y', strtotime(@$bankAccount->effectiveDate)) : null, ['class' => 'text-center form-control datepicker effectiveDate', 'readonly' => 'readonly'], ) !!}    
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']) !!}
{{-- Close --}}
{!! Form::close() !!} @endif @if (count($approvedBankAccounts) > 0)
{{-- --}} @if ($showActionColumn == true) @endif @foreach ($approvedBankAccounts as $bankAccount) {{-- --}} @if ($showActionColumn == true) @endif @endforeach
Bank Type Bank NameHolder NameAccount Number Routing Number Branch Effective Date Create At Approved By Approved At Cheque Details StatusAction
{{ $BANK_TYPES[$bankAccount->bankType]}} {{$bankAccount->bankName }}{{$member->name}}{{$bankAccount->accountNumber}} {{$bankAccount->routingNumber}} {{$bankAccount->branchName}} {{date('d-m-Y', strtotime(@$bankAccount->effectiveDate))}} {{date('d-m-Y H:i', strtotime(@$bankAccount->createdAt))}} {{date('d-m-Y H:i', strtotime(@$bankAccount->approvedAt))}} {{isset($users[$bankAccount->approvedBy]) ? $users[$bankAccount->approvedBy]->approve_by : null}} @if ($bankAccount->bankFile) @else N/A @endif @if(auth::user()->branchId == 1) status == 1) checked @endif data-toggle="toggle" data-on="Active" data-off="Inactive" data-onstyle="success" data-offstyle="danger" data-size="mini"> @else @if ($bankAccount->status == 1) @else Inactive @endif @endif  

@endif
{{-- form end --}}
{{-- Panel end --}}
@endsection