@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())
| @lang('reports::reports.account_summary.month') |
@lang('reports::reports.account_summary.actual_update') |
@foreach ($data['dataSource'] as $month)
| {{$month['month']}} |
@if($month['actual update']<0) ({{ number_format( (abs($month['actual update'])),2) }}) @else {{ number_format($month['actual update'],2) }} @endif |
@endforeach
@endif