@php($data = $report)
{{ __('Operational Snapshot') }}

{{ __('Day End Report') }}

{{ $data['period_label'] }}

@error('from_date') {{ $message }} @enderror
@error('to_date') {{ $message }} @enderror
{{ __('Cash In') }}
Rs. {{ number_format((float) $data['cash_in'], 2) }}
{{ __('Bank In') }}
Rs. {{ number_format((float) $data['bank_in'], 2) }}
{{ __('Total Outflow') }}
Rs. {{ number_format((float) $data['total_outflow'], 2) }}
{{ __('Net Balance') }}
Rs. {{ number_format((float) $data['net_balance'], 2) }}
{{ __('Day End Overview') }}

{{ $data['period_label'] }}

{{ $data['period_label'] }}
{{ __('Quick Summary') }}
{{ __('Total Sales') }}
Rs. {{ number_format((float) $data['sales']['total_sales'], 2) }}
{{ __('Sales Received') }}
Rs. {{ number_format((float) $data['sales']['sales_received'], 2) }}
{{ __('Purchase Paid') }}
Rs. {{ number_format((float) $data['purchases']['purchase_paid'], 2) }}
{{ __('Purchase Due') }}
Rs. {{ number_format((float) $data['purchases']['purchase_due'], 2) }}
{{ __('Sale Returns') }}
Rs. {{ number_format((float) $data['returns']['sale_return'], 2) }}
{{ __('Purchase Returns') }}
Rs. {{ number_format((float) $data['returns']['purchase_return'], 2) }}
{{ __('Estimated Payroll') }}
Rs. {{ number_format((float) $data['payroll']['estimated_payroll'], 2) }}
{{ __('Staff') }}: {{ number_format($data['payroll']['staff_count']) }} | {{ __('Days') }}: {{ number_format($data['payroll']['report_days']) }}
{{ __('Staff Salaries Paid') }}: Rs. {{ number_format($data['payroll']['salary_paid'], 2) }}
{{ __('Staff Advances Paid') }}: Rs. {{ number_format($data['staff_payments']['advances'], 2) }}
{{ __('Staff Expenses Paid') }}: Rs. {{ number_format($data['staff_payments']['expenses'], 2) }}
{{ __('Cash Flow Rows') }}
{{ $data['period_label'] }}
{{ __('Label') }}
{{ __('In') }}
{{ __('Out') }}
{{ __('Net') }}
@foreach ($data['cash_flow_rows'] as $row)
{{ $row['label'] }}
{{ number_format((float) $row['in'], 2) }}
{{ number_format((float) $row['out'], 2) }}
{{ number_format((float) $row['net'], 2) }}
@endforeach