@extends('cash_books.accounts.includes.accounts_tabs') @section('accounts')

@foreach($accounts as $index=> $account) @endforeach
S/N Name Group Sub Group Type Open Balance Action
{{$index+1}} {{$account->name}} {{$account->group}} {{$account->sub_group}} {{$account->type}} @if(($account->account_group_id == 2) OR ($account->account_group_id == 1) OR ($account->account_group_id == 3) OR ($account->account_group_id == 4)) @if(!empty($account->openBalance)) {{number_format($account->openBalance->amount,2)}} ({{$account->openBalance->currency}}) @endif @else - @endif
@if(($account->account_group_id == 2) OR ($account->account_group_id == 1) OR ($account->account_group_id == 3) OR ($account->account_group_id == 4)) Open balance @endif @if((($account->is_default == 0) AND ($account->account_group_id != 3) AND ($account->account_group_id != 4)) AND ($account->getIsDeleted())) @endif
@stop