{{ __('Daily Activity Report') }}

{{ \Illuminate\Support\Carbon::parse($report['from_date'])->format('d M Y') }} – {{ \Illuminate\Support\Carbon::parse($report['to_date'])->format('d M Y') }}
{{ __('Print Report') }}
@error('draft_from_date') {{ $message }} @enderror
@error('draft_to_date') {{ $message }} @enderror
@error('draft_search') {{ $message }} @enderror
@foreach ([ __('Total Sale') => $report['total_sales'], __('Total Sale Return') => $report['total_sale_returns'], __('Total Discount') => $report['total_discount'], __('Total Cash in Hand') => $report['cash_in_hand'], __('Total Profit on Sale') => $report['total_profit'], __('Total Due Sale') => $report['total_due_sale'], ] as $label => $amount)
{{ $label }}
{{ number_format($amount, 2) }}
@endforeach
{{ __('Total Invoices') }}
{{ number_format($report['invoice_count']) }}
{{ __('Total Units') }}
{{ number_format($report['total_units'], 2) }}
{{ __('Purchases List') }}
@forelse ($report['purchases'] as $purchase) @empty @endforelse
{{ __('Date') }} {{ __('Invoice') }} {{ __('Supplier') }} {{ __('Total') }} {{ __('Paid') }} {{ __('Due') }}
{{ \Illuminate\Support\Carbon::parse($purchase->purchase_date)->format('d M Y') }} {{ $purchase->invoice_no ?: '-' }} {{ $purchase->supplier?->display_name ?? __('Supplier') }} {{ number_format((float) $purchase->grand_total, 2) }} {{ number_format((float) ($purchase->received_amount ?? 0), 2) }} {{ number_format((float) $purchase->remaining_amount, 2) }}
{{ __('No purchases found for selected filters.') }}
{{ __('Due Sale Clients List') }}
@forelse ($report['due_clients'] as $client) @empty @endforelse
{{ __('Customer') }} {{ __('Phone') }} {{ __('Invoices') }} {{ __('Due') }}
{{ $client['name'] }} {{ $client['phone'] }} {{ number_format($client['invoice_count']) }} {{ number_format($client['due'], 2) }}
{{ __('No due sale clients found.') }}
{{ __('Sale Product Qty') }}
@forelse ($report['product_sales'] as $product) @empty @endforelse @if ($report['product_sales']->isNotEmpty()) @endif
{{ __('Product') }} {{ __('Quantity') }}
{{ $product['name'] }} {{ number_format($product['quantity'], 2) }}
{{ __('No sold products found.') }}
{{ __('Total Units') }}{{ number_format($report['total_units'], 2) }}