@use('App\Services\Date') @extends('reports::layouts.master') @section('title', __('reports::reports.Trial Balance')) @section('page-link') @endsection @section('section_title') @lang('reports::reports.Trial Balance') @endsection @section('action_buttons')
@if(LaravelLocalization::getCurrentLocale() === 'en') @else @endif @if(request()->all()) @endif
@endsection @section('form-open-tag')
@lang('Filter')
@error('fiscal_year_id') @enderror @error('from') @enderror @error('to') @enderror
@endsection @section('extra_scripts_filter_by_date') @endsection @if(request()->all()) @section('koolreport')

@lang('reports::reports.Trial Balance')

{{ $data['companyName'] }}

@lang('reports::reports.as_of') {{$data['dates']['to']}}

@foreach($data['accounts'] as $account) @endforeach
@lang('reports::reports.account') @lang('reports::reports.debit') @lang('reports::reports.credit')
{{ $account['name'] }} @isset($account['debit']) {{ number_format($account['debit'],2)}} @endisset @isset($account['credit']) {{ number_format($account['credit'],2)}} @endisset
@lang('reports::reports.trial_balance.total') {{number_format($data['total']['debit'],2)}} {{number_format($data['total']['credit'],2)}}
@lang('reports::reports.accrual_basis') @if(app()->getLocale() == 'ar') {{Date::now('datetime')}} @else {{Date::now('datetime')}} @endif
@endsection @endif