{{-- Custom styles for the T-form layout --}} {{-- The header slot for x-app-layout. The report title will appear here. --}}

{{ $reportData['title'] }}

{{-- Main content area for the Trading, Profit & Loss (T-Form) report. --}} {{-- This div now takes the place of the old body content, styled for centering and responsiveness. --}}

For the period: {{ $reportData['period'] }}

Debits

@foreach ($reportData['debitSide'] as $account => $amount)
{{ $account }} {{ number_format($amount, 2) }} TZS
@endforeach @if ($reportData['netProfitLoss'] < 0)
Net Loss (transferred to Capital) {{ number_format(abs($reportData['netProfitLoss']), 2) }} TZS
@endif
TOTAL DEBITS {{ number_format($reportData['totalDebits'] + ($reportData['netProfitLoss'] < 0 ? abs($reportData['netProfitLoss']) : 0), 2) }} TZS

Credits

@foreach ($reportData['creditSide'] as $account => $amount)
{{ $account }} {{ number_format($amount, 2) }} TZS
@endforeach @if ($reportData['netProfitLoss'] >= 0)
Net Profit (transferred to Capital) {{ number_format($reportData['netProfitLoss'], 2) }} TZS
@endif
TOTAL CREDITS {{ number_format($reportData['totalCredits'] + ($reportData['netProfitLoss'] >= 0 ? $reportData['netProfitLoss'] : 0), 2) }} TZS
@if ($reportData['netProfitLoss'] >= 0) NET PROFIT: {{ number_format($reportData['netProfitLoss'], 2) }} TZS @else NET LOSS: {{ number_format(abs($reportData['netProfitLoss']), 2) }} TZS @endif