@extends('layouts/acc_layout') @section('title', '| Bank Account Signatory') @section('content') @include('successMsg')
Bank Account Signatory Configuration
{!! Form::open(array('url' => '#', 'role' => 'form', 'class'=>'form-horizontal form-groups')) !!}
@if(!$presentSignatories)
{!! Form::label('effectiveDate', 'Effective Date:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('effectiveDate', null, ['class'=>'form-control input-sm readonly', 'type' => 'text']) !!}

{!! Form::hidden('bankAcId', $bankAcId, ['id'=>'bankAcId']) !!}
SL# Signatory Action
{{ ++$no }}


{!! Form::label('submit', ' ', ['class' => 'col-sm-5 control-label']) !!}
{!! Form::submit('Submit', ['id' => 'submit', 'class' => 'btn btn-info']) !!} Close
@else {{-- ------------------------------------------ Approval pending part ----------------------------------------------------- --}}

Approval Pending:


@foreach ($presentInfos as $presentInfo)
{!! Form::label('previousEffectiveDate', 'Effective Date:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('previousEffectiveDate', date('d-m-Y', strtotime($presentInfo['effectiveDate'])), ['class' => 'form-control input-sm readonly', 'type' => 'text', 'readonly']) !!}
{!! Form::hidden('signatoryId', $presentInfo['signatoryTableId'], ['id'=>'signatoryId']) !!}
@if($previousSignatoryInfo != null)
@endif
@foreach ($presentInfo['signatoryInfo'] as $info) @endforeach
SL# Photo Name ID Designation NID No. Phone No.
{{ ++$slNo }} {{ $info['empName'] }} {{ $info['empId'] }} {{ $info['designation'] }} {{ $info['nidNo'] }} {{ $info['phone'] }}


@endforeach @if(Auth::user()->branchId == 1) @if($approveStatus == 0)
{!! Form::label('submit', ' ', ['class' => 'col-sm-5 control-label']) !!}
{!! Form::submit('Approve', ['id' => 'approve', 'class' => 'btn btn-info', 'style' => 'background-color: green;']) !!} {!! Form::submit('Reject', ['id' => 'reject', 'class' => 'btn btn-danger closeBtn']) !!} {{-- Close --}}
@endif @endif @endif {{-- ------------------------------------------ Histry part ----------------------------------------------------- --}} @if($previousSignatories)

Approved Signatory History:


@foreach ($previousInfos as $key => $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'] }}


@endforeach @endif
{!! Form::close() !!}
@if($previousSignatoryInfo != null) @php $bankName = trim($BankInfo->bankName); if (substr($bankName, -1) === '.'){ $bankName = substr($bankName, 0, -1); } @endphp @endif {{-- @if($previousSignatoryInfo != null) @php function getBanglaNumeral($digits){ $banglaDigits = array('০', '১', '২', '৩', '৪', '৫', '৬', '৭', '৮', '৯'); $englishDigits = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9'); $banglaDigits = str_replace($englishDigits, $banglaDigits, $digits); return $banglaDigits; } function getBanglaDate($date){ $englishMonths = array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'); $banglaMonths = array('জানুয়ারী', 'ফেব্রুয়ারী', 'মার্চ', 'এপ্রিল', 'মে', 'জুন', 'জুলাই', 'আগস্ট', 'সেপ্টেম্বর', 'অক্টোবর', 'নভেম্বর', 'ডিসেম্বর'); $englishNumbers = range(0, 9); $banglaNumbers = array('০', '১', '২', '৩', '৪', '৫', '৬', '৭', '৮', '৯'); $banglaDate = str_replace($englishMonths, $banglaMonths, $date); $banglaDate = str_replace($englishNumbers, $banglaNumbers, $banglaDate); return $banglaDate; } $bankName = trim($BankInfo->bankName); if (substr($bankName, -1) === '.'){ $bankName = substr($bankName, 0, -1); } @endphp @endif --}} @endsection