@extends('index')
@section('content')
Bank Management
@if($bank->count())
@foreach($bank as $item)
Sr.
Bank Holder
Account Title
Account No
Bank Type
Action
@endforeach
@endif
{{$loop->index + 1}}
@if($item->bank_holder == 'employee')
{{$item->employee_no}} - {{$item->name}}
@elseif($item->bank_holder == 'vendor')
{{$item->vendor_no}} - {{$item->fname}}
@elseif($item->bank_holder == 'contractor')
{{$item->vendor_no}} - {{$item->fname}}
@elseif($item->bank_holder == 'customer')
{{$item->customer_no}} - {{$item->cname}} {{$item->lname}}
@else
Admin / Self
@endif
{{$item->account_title}}
{{$item->account}}
{{$item->hname}}
Sr.
Bank Holder
Account Title
Account No
Bank Type
Action
@if(isset($bankBalance) && $bankBalance->count())
@foreach($bankBalance as $item)
Sr.
Account Title
Account No
Bank Type
Amount
Action
@endforeach
@endif
{{$loop->index + 1}}
{{$item->account_title}}
{{$item->account}}
{{$item->hname}}
{{number_format($item->tdebit - $item->tcredit)}}
Ledger
Sr.
Account Title
Account No
Bank Type
Amount
Action