@use('App\Services\Date') @extends('reports::layouts.master_pdf') @php $subdomain = request()->route()->parameter('subdomain'); $is_student = app(\Hyn\Tenancy\Repositories\HostnameRepository::class)->findByHostname($subdomain)->website->company->is_student; @endphp @section('koolreport')
@if($is_student) @include('draft_report') @endif

@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