{{ __('app.accounts.trial_balance.title') }}

{{ __('app.accounts.trial_balance.desc') }}

@if ($report)
@can('account_reports.print') {{ __('app.accounts.trial_balance.print') }} @endcan @can('account_reports.export') {{ __('app.accounts.trial_balance.export') }} @endcan
@endif
@if ($errors->any())
    @foreach ($errors->all() as $message)
  • {{ $message }}
  • @endforeach
@endif @if ($years->isEmpty()) @else
@foreach ($years as $option) @endforeach
@if ($report)
{{ __('app.accounts.trial_balance.total_debit') }} {{ number_format((float) $report['total_debit'], 2) }} {{ __('app.accounts.trial_balance.total_credit') }} {{ number_format((float) $report['total_credit'], 2) }} {{ __('app.accounts.fields.status') }} @if ($report['balanced']) {{ __('app.accounts.trial_balance.balanced') }} @else {{ __('app.accounts.trial_balance.unbalanced') }} @endif
@forelse ($report['rows'] as $row) @empty @endforelse @if ($report['rows'] !== []) @endif
{{ __('app.accounts.trial_balance.columns.code') }} {{ __('app.accounts.trial_balance.columns.account') }} {{ __('app.accounts.trial_balance.columns.type') }} {{ __('app.accounts.trial_balance.columns.debit') }} {{ __('app.accounts.trial_balance.columns.credit') }}
{{ $row['account']->code }} {{ $row['account']->localizedName() }} @if ($row['account']->category) {{ $row['account']->category->localizedName() }} @endif {{ $row['account']->type->label() }} {{ (float) $row['debit_balance'] > 0 ? number_format((float) $row['debit_balance'], 2) : '—' }} {{ (float) $row['credit_balance'] > 0 ? number_format((float) $row['credit_balance'], 2) : '—' }}
{{ __('app.accounts.vouchers.form.totals') }} {{ number_format((float) $report['total_debit'], 2) }} {{ number_format((float) $report['total_credit'], 2) }}
@endif @endif