@extends('layouts.adminapp')
@section('title') {{ __('lng.BalanceSheet') }} - {{ __('lng.Print') }} @endsection
@section('active_report', 'active')
@section('open_report', 'open')
@section('open_account', 'open')
@section('active_account', 'active')
@section('balance_sheet', 'active')
@section('content')
@include('PrintHeader.header')
{{ __('lng.BalanceSheet') }}
{{ __('lng.Assets') }} |
{{ __('lng.Amount') }} |
@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)
{{ __('lng.AccountsReceivable') }} |
@currency($Asset->total) |
@elseif($Asset->GroupID == PBConst::ACC_GROUP_CASH_IN_HAND)
@if ($CashInHandTotal > 0)
Cash In Hand |
@currency($CashInHandTotal) |
@endif
@elseif($Asset->GroupID == PBConst::ACC_GROUP_BANK_ACCOUNT)
{{-- NOT SHOW DETAILS --}}
@else
{{ App\Models\AccountGroup::find($Asset->GroupID)->title ?? '' }}
|
@currency($Asset->total) |
@endif
@endforeach
@if ($PLTotal < 0)
{{ __('lng.CurrentLoss') }} |
@currency(abs($PLTotal)) |
@php $TotalAssets +=abs($PLTotal); @endphp
@endif
{{ __('lng.TotalCurrentAssets') }} |
@currency($TotalAssets) |
{{ __('lng.Liabilities') }} |
{{ __('lng.Amount') }} |
@php $TotalLiabilities=0; @endphp
@if ($CashInHandTotal < 0)
{{ __('lng.Expence') }} |
@currency(abs($CashInHandTotal)) |
@php $TotalLiabilities +=abs($CashInHandTotal); @endphp
@endif
@foreach ($Liabilities as $Liability)
@if ($Liability->GroupID == PBConst::ACC_GROUP_SUNDRY_CREDITORS)
{{ __('lng.AccountsPayable') }} |
@currency($Liability->total) |
@else
{{ App\Models\AccountGroup::find($Liability->GroupID)->title ?? '' }}
|
@currency($Liability->total) |
@endif
@php $TotalLiabilities+=$Liability->total; @endphp
@endforeach
@if ($PLTotal > 0)
{{ __('lng.CurrentProfit') }} |
@currency($PLTotal) |
@php $TotalLiabilities +=abs($PLTotal); @endphp
@endif
{{ __('lng.TotalCurrentLiabilities') }} |
@currency($TotalLiabilities) |
@endsection