@php($data = $report)
{{ __('Financial Summary') }}

{{ __('Loss & Profit Report') }}

{{ $data['period_label'] }}

@error('from_date') {{ $message }} @enderror
@error('to_date') {{ $message }} @enderror
@foreach ($data['overview_cards'] as $card)
{{ __($card['label']) }}
Rs. {{ number_format((float) $card['value'], 2) }}
{{ __($card['note']) }}
@endforeach
{{ __('Summary Rows') }}
{{ $data['period_label'] }}
{{ __('Label') }}
{{ __('Value') }}
@foreach ($data['summary_rows'] as $row)
{{ __($row['label']) }}
{{ number_format((float) $row['value'], 2) }}
@endforeach
{{ __('Profit Snapshot') }}
{{ __('Net Profit') }}
Rs. {{ number_format((float) $data['net_profit'], 2) }}
{{ __('Profit Margin') }}
{{ number_format((float) $data['profit_margin'], 2) }}%
{{ __('Sales Count') }}
{{ number_format($data['sales_count']) }}
{{ __('Purchase Count') }}
{{ number_format($data['purchase_count']) }}
{{ __('Sale Return Count') }}
{{ number_format($data['sale_return_count']) }}
{{ __('Purchase Return Count') }}
{{ number_format($data['purchase_return_count']) }}