@extends('layouts/acc_layout') @section('title', '| Bank Account Register') @section('content') @include('successMsg')
Bank Account Information
{!! Form::open(array('url' => '','id'=>'entryForm', 'role' => 'form', 'class'=>'form-horizontal form-groups')) !!}
{{-- 1st coloum --}}
{!! Form::label('projectId', 'Project:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('projectId', $BankAcRegisters->projectIdwithName, ['class' => 'form-control', 'id' => 'projectId', 'readonly' => 'readonly']) !!}
{!! Form::label('projectTypeId', 'Project Type:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('projectTypeId', $BankAcRegisters->projectType, ['class' => 'form-control', 'id' => 'projectTypeId', 'readonly' => 'readonly']) !!}
{!! Form::label('branchId', 'Branch:', ['class' => 'col-sm-3 control-label']) !!}
@php $branch = ($BankAcRegisters->branchId == 0) ? 'All (with HO)' : (($BankAcRegisters->branchId == -1) ? 'All (without HO)' : $BankAcRegisters->branchIdwithName); @endphp {!! Form::text('branchId', $branch, ['class' => 'form-control', 'id' => 'acTitle', 'readonly' => 'readonly']) !!}
{!! Form::label('ledgerId', 'Ledger Account:', ['class' => 'col-sm-3 control-label']) !!} @php $ledgerAccount = DB::table('acc_account_ledger') ->where('id', $BankAcRegisters->ledgerIdFk) ->where('accountTypeId', 5) ->orderBy('code', 'asc') ->select(DB::raw("CONCAT(code, ' - ', name) AS nameWithCode")) ->value('nameWithCode'); @endphp
{!! Form::text('ledgerId', $ledgerAccount, ['class' => 'form-control', 'id' => 'acTitle', 'readonly' => 'readonly']) !!}
{!! Form::label('acTypeId', 'Account Type:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('acTypeId', $BankAcRegisters->accountType, ['class' => 'form-control', 'id' => 'acTypeId', 'readonly' => 'readonly']) !!}
{!! Form::label('acTitle', 'Account Title:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('acTitle', $BankAcRegisters->acTitle, ['class' => 'form-control', 'id' => 'acTitle', 'readonly' => 'readonly']) !!}
{!! Form::label('acOpeningDate', 'Opening Date:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('acOpeningDate', date('d-m-Y', strtotime($BankAcRegisters->acOpeningDate)), ['class' => 'form-control', 'id' => 'acOpeningDate', 'readonly' => 'readonly'])!!}
@if($BankAcRegisters->acClosingDate > 0 )
{!! Form::label('acClosingDate', 'Closing Date:', ['class' => 'col-sm-3 control-label'])!!}
{!! Form::text('acClosingDate', date('d-m-Y', strtotime($BankAcRegisters->acClosingDate)), ['color' => 'red', 'class' => 'form-control', 'id' => 'acClosingDate', 'readonly' => 'readonly'])!!}
@endif

{{-- End of 1st coloum --}}
{{-- 2nd coloum --}}
{!! Form::label('bankNameId', 'Bank Name:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('bankNameId', $BankAcRegisters->bankName, ['class' => 'form-control ', 'id' => 'bankNameId', 'readonly' => 'readonly'])!!}
{!! Form::label('bankBranchName', 'Branch Name:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('bankBranchName', $BankAcRegisters->bankBranchName, ['class' => 'form-control ', 'id' => 'bankBranchName', 'readonly' => 'readonly'])!!}
{!! Form::label('bankBranchAddress', 'Branch Address:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('bankDistrictId', $BankAcRegisters->district, ['class' => 'form-control ', 'id' => 'bankDistrictId', 'readonly' => 'readonly'])!!}
{!! Form::text('bankBranchAddress', $BankAcRegisters->bankBranchAddress, ['class' => 'form-control ', 'id' => 'bankBranchAddress', 'readonly' => 'readonly'])!!}
{!! Form::label('bankBranchPhone', 'Contact Number:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('bankBranchPhone', $BankAcRegisters->bankBranchPhone, ['class' => 'form-control ', 'id' => 'bankBranchAddress', 'readonly' => 'readonly'])!!}
{!! Form::label('bankAcNumber', 'Account Number:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('bankAcNumber', $BankAcRegisters->bankAcNumber, ['class' => 'form-control ', 'id' => 'bankAcNumber', 'readonly' => 'readonly'])!!}
{!! Form::label('acRoutingNumber', 'Routing Number:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::text('acRoutingNumber', $BankAcRegisters->acRoutingNumber, ['class' => 'form-control ', 'id' => 'acRoutingNumber', 'readonly' => 'readonly'])!!}
{!! Form::label('ftEligible', 'F.T Eligible:', ['class' => 'col-sm-3 control-label']) !!}
@if($BankAcRegisters->ftEligible == 1) @else @endif
{!! Form::label('ddiEligible', 'DDI Eligible:', ['class' => 'col-sm-3 control-label']) !!}
@if($BankAcRegisters->ddiEligible == 0) @elseif($BankAcRegisters->ddiEligible == 1) @elseif($BankAcRegisters->ddiEligible == 2) @endif
{{--
{!! Form::label('ftEligible', 'F.T Eligible:', ['class' => 'col-sm-3 control-label']) !!}
@if($BankAcRegisters->ftEligible == 1) {!! Form::text('acRoutingNumber', '', ['class' => 'form-control ', 'placeholder' => 'Yes', 'id' => 'acRoutingNumber', 'readonly' => 'readonly'])!!} @else {!! Form::text('acRoutingNumber', '', ['class' => 'form-control ', 'placeholder' => 'No', 'id' => 'acRoutingNumber', 'readonly' => 'readonly'])!!} @endif
--}}
{{-- End of 2nd coloum --}}
@if($previousSignatories)
Bank Account Signatory Information:

@foreach ($previousInfos as $previousInfo)
{!! Form::label('previousEffectiveDate', 'Effective Date:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('previousEffectiveDate', date('d-m-Y', strtotime ($previousInfo['effectiveDate']) ), ['class'=>'form-control input-sm readonly', 'type' => 'text', 'readonly']) !!}

@foreach ($previousInfo['signatoryInfo'] as $info) @endforeach
SL# Photo Name ID Designation NID No. Phone No.
{{ ++$slNo }} {{ $info['empName'] }} {{ $info['empId'] }} {{ $info['designation'] }} {{ $info['nidNo'] }} {{ $info['phone'] }}


@break @endforeach @endif
{!! Form::label('submit', ' ', ['class' => 'col-sm-5 control-label']) !!}
@if(Auth::user()->branchId == 1) @if($BankAcRegisters->approveStatus == 0) {!! Form::submit('Approve', ['id' => 'add', 'class' => 'btn btn-info']) !!} @endif @endif Close
{!! Form::close() !!}
@endsection