@use('App\Services\Date') @extends('reports::layouts.master') @section('title', __('reports::reports.Account Summary')) @section('page-link') @endsection @section('section_title') @lang('reports::reports.Account Summary') @endsection @section('action_buttons')
@if(request('account_id')) @endif
@if(LaravelLocalization::getCurrentLocale() === 'en') @else @endif @if(request()->all()) @can('reports.account-summary.export') @endcan @endif
@endsection @section('form-open-tag')
@lang('Filter')
@error('account_id') @enderror
@error('fiscal_year_id') @enderror
@endsection @section('koolreport')
@if(isset($data['account']) && isset($data['year']))

@lang('reports::reports.Account Summary') - {{ $data['account']->code }} - {{ $data['account']->name }}

{{ $data['companyName'] }}

@lang('from') {{ Date::format($data['year']->year.'-'. $data['year']->month.'-'. $data['year']->day, 'date') }} @lang('to') {{ $data['year']->closing_date ? Date::format($data['year']->closing_date, 'date') : Date::now('date') }}

@endif
@php use \koolreport\widgets\google\ColumnChart; if(request()->all()) { ColumnChart::create([ "title"=>__('reports::reports.account_summary.chart_title'), "dataSource"=>$data['dataSource'], "columns"=>[ "month", "actual update"=>[ "label"=>__("reports::reports.account_summary.actual_update"), "type"=>"number", "prefix"=>$data['currency'], ], ], ]); } @endphp
@if(request()->all())
@foreach ($data['dataSource'] as $month) @endforeach
@lang('reports::reports.account_summary.month') @lang('reports::reports.account_summary.actual_update')
{{$month['month']}} @if($month['actual update']<0) ({{ number_format( (abs($month['actual update'])),2) }}) @else {{ number_format($month['actual update'],2) }} @endif
@endif
@endsection @section('extra_scripts_filter_by_date') @endsection