@extends('layouts/acc_layout') @section('title', '| OTS Register') @section('content') @php //var_dump($infos); @endphp

OTS ACCOUNT OPENING LIST

@foreach($infos as $index => $info) @php // dd($info); $branchName = DB::table('gnr_branch')->where('id',$info->branchId_fk)->select(DB::raw("CONCAT(LPAD(branchCode, 3, 0), ' - ', name) AS name"))->value('name'); $natureOfPayment = DB::table('acc_ots_period')->where('id',$info->periodId_fk)->value('name'); $bankName = \App\Models\gnr\GnrBank::find($info->bankName)->name ?? ''; @endphp {{-- --}} @endforeach
SL# Opening Date Name of Account Holder Account Number Bank Name Effective Date Branch Location Period Interest Rate (%) Amount (Tk) Status Action
{{$index+1}} {{date('d-m-Y',strtotime($info->openingDate))}} {{$info->name}} {{$info->accNo}} {{$bankName}} {{date('d-m-Y',strtotime($info->effectiveDate))}} {{$branchName}} {{$natureOfPayment}} {{number_format($info->interestRate,2)}} {{number_format($info->amount,2,'.',',')}} @if($info->status==0) @else @endif @if($info->status==0) @else @endif   status==0)style="pointer-events: none;"@endif>   status==0)style="pointer-events: none;"@endif>
{{-- View Modal --}} {{-- End View Modal --}} {{-- Edit Modal --}} {{-- End Edit Modal --}} {{-- Delete Modal --}} {{-- End Delete Modal --}} @include('dataTableScript') @endsection