@extends('cash_books.accounts.includes.accounts_tabs') @section('accounts')
S/N | Name | Group | Sub Group | Currency | Closed Balance | Action | ||
---|---|---|---|---|---|---|---|---|
{{$index+1}} | {{$account->name}} | {{$account->group}} | {{$account->sub_group}} | @if($account->currency != 'NOT_AVAILABLE') {{$account->currency}} @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))--}} {{--@if(!empty($account->openBalance))--}} {{--{{number_format($account->openBalance->amount,2)}} ({{$account->openBalance->currency}})--}} {{--@endif--}} {{--@else--}} {{-----}} {{--@endif--}} @if($account->currency == 'NOT_AVAILABLE') {{--*/ $amount = \App\Accounts\Facades\Transactions::getBalanceAsOf($account->id, '', 'USD') /*--}} @else {{--*/ $amount = \App\Accounts\Facades\Transactions::getBalanceAsOf($account->id, '', $account->currency) /*--}} @endif @if($amount >= 0) {{number_format($amount,2)}} @else ( {{number_format(-1*$amount,2)}} ) @endif | {{--{{$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--}} {{-- | --}}
DETAILS
@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
|