{{-- Filters --}} {{ $this->form }} {{-- Report Header --}} @php $data = $this->profitLossData; @endphp Profit & Loss Report - From {{ \Carbon\Carbon::parse($data['date_from'])->format('M d, Y') }} to {{ \Carbon\Carbon::parse($data['date_to'])->format('M d, Y') }} {{-- Profit & Loss Table --}}
@foreach($data['sections'] as $sectionIndex => $section) {{-- Section Header --}} {{-- Accounts --}} @if(count($section['accounts']) > 0) @foreach($section['accounts'] as $account) @endforeach {{-- Section Total --}} @else @endif @endforeach {{-- NET INCOME/LOSS --}}
Account Amount
{{ $section['title'] }}
{{ $account['code'] ? $account['code'] . ' - ' : '' }}{{ $account['name'] }} {{ number_format($account['balance'], 2) }}
{{ $section['total_label'] }} {{ number_format($section['total'], 2) }}
{{ $section['empty_message'] }}
{{ $data['is_profit'] ? 'Net Profit' : 'Net Loss' }} {{ number_format(abs($data['net_income']), 2) }}