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

OTS LIST

@foreach($infos as $index => $info) @php $branchName = DB::table('gnr_branch')->where('id',$info->branchId_fk)->value('name'); $natureOfPayment = DB::table('acc_ots_period')->where('id',$info->periodId_fk)->value('name'); @endphp {{-- --}} @endforeach
SL# Opening Date Name of Account Holder Account Number Effective Date Branch Location Period Interest Rate (%) Amount (Tk) Status Action
{{$index+1}} {{date('d-m-Y',strtotime($info->openingDate))}} {{$info->name}} {{$info->accNo}} {{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