| ID |
Account |
A/C No |
Group |
Balance |
Action |
@if(isset($bank_accounts))
@foreach($bank_accounts as $key => $bank_account)
| {{ ++$key }} |
{{ $bank_account->bank_name }} |
{{ $bank_account->bank_account }} |
{{ $bank_account->group_name }} |
@php $balance = $bank_account->op_bal_dr - $bank_account->op_bal_cr + $bank_account->debit - $bank_account->credit; @endphp
@if($balance>=0) {{ number_format($balance,2) }} @else {{ '('.number_format(abs($balance),2).')' }} @endif
|
@if(Auth::user()->role == 'admin')
@if($bank_account->bank_account_id != 1 and $bank_account->bank_account_id != 2 )
@if($bank_account->bank_account_id != 4)
@endif
@endif
@endif
|
@endforeach
@endif
@if(Session::has('success'))
{{Session::get('success')}}
@php
Session::forget('success');
@endphp
@endif
@if(Session::has('update'))
{{Session::get('update')}}
@php
Session::forget('update');
@endphp
@endif
@if(Session::has('delete'))
{{Session::get('delete')}}
@php
Session::forget('delete');
@endphp
@endif