@extends('backend.partials.master') @section('title') {{ ___('admin.balance_sheet_597f97') }} @endsection @section('maincontent') @include('backend.accounting.partials._filters')
@if($balanced) {{ ___('admin.balanced_2f904b') }} {{ ___('admin.both_sides_total_e916e9') }} {{ currency_symbol() }}{{ number_format($totalAssets, 2) }} @if($to) {{ ___('admin.as_at_1435d8') }} {{ \Illuminate\Support\Carbon::parse($to)->translatedFormat('d M Y') }}@endif. @else {{ ___('admin.out_of_balance_by_16a7b2') }} {{ currency_symbol() }}{{ number_format(abs($difference), 2) }}. {{ ___('admin.assets_20e338') }} {{ currency_symbol() }}{{ number_format($totalAssets, 2) }} {{ ___('admin.vs_liabilities_equity_f8d05e') }} {{ currency_symbol() }}{{ number_format($totalLiabEquity, 2) }}. @endif

{{ ___('admin.assets_20e338') }}

@foreach($assets as $a) @endforeach
{{ $a['name'] }}{{ currency_symbol() }}{{ number_format($a['balance'], 2) }}
{{ ___('admin.total_assets_5d9f9a') }}{{ currency_symbol() }}{{ number_format($totalAssets, 2) }}

{{ ___('admin.liabilities_556a42') }} & {{ ___('admin.equity_0786ff') }}

@foreach($liabilities as $a) @endforeach @foreach($equity as $a) @endforeach {{-- Profit earned but not yet closed into equity. Without this line the two sides can never meet. --}}
{{ $a['name'] }}{{ currency_symbol() }}{{ number_format($a['balance'], 2) }}
{{ $a['name'] }}{{ currency_symbol() }}{{ number_format($a['balance'], 2) }}
{{ ___('admin.current_earnings_5f9867') }} {{ ___('admin.income_expenses_7f04ab') }} {{ currency_symbol() }}{{ number_format($earnings, 2) }}
{{ ___('admin.total_liabilities_34a46c') }} & {{ ___('admin.equity_0786ff') }}{{ currency_symbol() }}{{ number_format($totalLiabEquity, 2) }}
@endsection