@php $TotalAssets=0; @endphp @foreach ($Assets as $Asset) @php $label = App\Models\AccountGroup::find($Asset->GroupID)->title ?? ''; $amount = $Asset->total; if ($Asset->GroupID == PBConst::ACC_GROUP_CASH_IN_HAND) { if ($CashInHandTotal > 0) { $TotalAssets += $CashInHandTotal; } } elseif ($Asset->GroupID == PBConst::ACC_GROUP_BANK_ACCOUNT) { // Skip Bank Account display continue; } else { $TotalAssets += $amount; } @endphp @if ($Asset->GroupID == PBConst::ACC_GROUP_SUNDRY_DEBTORS) @elseif($Asset->GroupID == PBConst::ACC_GROUP_CASH_IN_HAND) @if ($CashInHandTotal > 0) @endif @elseif($Asset->GroupID == PBConst::ACC_GROUP_BANK_ACCOUNT) {{-- NOT SHOW DETAILS --}} @else @endif @endforeach @if ($PLTotal < 0) @php $TotalAssets +=abs($PLTotal); @endphp @endif
{{ __('lng.Assets') }} {{ __('lng.Amount') }}
{{ __('lng.AccountsReceivable') }} @currency($Asset->total)
Cash In Hand @currency($CashInHandTotal)
{{ App\Models\AccountGroup::find($Asset->GroupID)->title ?? '' }} @currency($Asset->total)
{{ __('lng.CurrentLoss') }} @currency(abs($PLTotal))
{{ __('lng.TotalCurrentAssets') }} @currency($TotalAssets)
@php $TotalLiabilities=0; @endphp @if ($CashInHandTotal < 0) @php $TotalLiabilities +=abs($CashInHandTotal); @endphp @endif @foreach ($Liabilities as $Liability) @if ($Liability->GroupID == PBConst::ACC_GROUP_SUNDRY_CREDITORS) @else @endif @php $TotalLiabilities+=$Liability->total; @endphp @endforeach @if ($PLTotal > 0) @php $TotalLiabilities +=abs($PLTotal); @endphp @endif
{{ __('lng.Liabilities') }} {{ __('lng.Amount') }}
{{ __('lng.Expence') }} @currency(abs($CashInHandTotal))
{{ __('lng.AccountsPayable') }} @currency($Liability->total)
{{ App\Models\AccountGroup::find($Liability->GroupID)->title ?? '' }} @currency($Liability->total)
{{ __('lng.CurrentProfit') }} @currency($PLTotal)
{{ __('lng.TotalCurrentLiabilities') }} @currency($TotalLiabilities)