@extends('reports::layouts.master_pdf') @section('extra_styles') @endsection @section('koolreport')
@isset($data['account'], $data['fiscalYear'])

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

{{ $data['companyName'] ?? '' }}

@if(!empty($data['dates']['from']) || !empty($data['dates']['to']))

@lang('from') {{ $data['dates']['from'] ?? '' }} @lang('to') {{ $data['dates']['to'] ?? '' }}

@endif
@endisset @foreach(($data['rows'] ?? []) as $row) @php $amount = (float) ($row['actual_update'] ?? 0); @endphp @endforeach @if(!empty($data['rows'])) @php $total = (float) ($data['total'] ?? 0); @endphp @endif
@lang('reports::reports.account_summary.month') @lang('reports::reports.account_summary.actual_update')
{{ $row['month'] ?? '' }} @if($amount < 0) ({{ number_format(abs($amount), 2) }}) @else {{ number_format($amount, 2) }} @endif
@lang('reports::reports.total') @if($total < 0) ({{ number_format(abs($total), 2) }}) @else {{ number_format($total, 2) }} @endif
@endsection