@php $shareBaseQuery = request()->except(['export', 'share_action', 'email_to']); $emailShareUrl = request()->url().'?'.http_build_query(array_merge($shareBaseQuery, ['share_action' => 'email', 'email_to' => '__EMAIL__'])); @endphp

Analytics

{{ $reportType }} Report

@if(session('report_share_notice') || session('report_share_error') || session('shared_public_url'))
@if(session('report_share_error'))

{{ session('report_share_error') }}

@else

{{ session('report_share_notice') }}

@endif @if(session('shared_public_url'))
Public report URL:
{{ session('shared_public_url') }}
@endif
@endif

Date: {{ $date }} | Connected branches: {{ $connectedBranchCount }}/{{ $totalBranchCount }}

@if($needsBranchSelection ?? false)

Select a branch to show {{ $reportType }} report.

@else @if($reportType === 'Z') @php($zClose = $zClosures[0] ?? null) @if($zClose)

Z report closed at {{ $zClose['closed_at'] }}.

@else

Z report not closed.

@endif @endif

Net Sales

£{{ number_format((float) ($summary['total'] ?? 0), 2) }}

{{ (int) ($summary['orders'] ?? 0) }} transactions

Card Total

£{{ number_format((float) ($summary['card'] ?? 0), 2) }}

{{ (float) ($summary['total'] ?? 0) > 0 ? number_format((((float) ($summary['card'] ?? 0) / (float) ($summary['total'] ?? 0)) * 100), 1) : '0.0' }}%

Cash Total

£{{ number_format((float) ($summary['cash'] ?? 0), 2) }}

{{ (float) ($summary['total'] ?? 0) > 0 ? number_format((((float) ($summary['cash'] ?? 0) / (float) ($summary['total'] ?? 0)) * 100), 1) : '0.0' }}%

Average Order

£{{ number_format((float) ($summary['avg_order'] ?? 0), 2) }}

Order Time: {{ number_format((float) ($summary['avg_order_time'] ?? 0), 1) }} min

Type Total
Till Orders {{ (int) ($tkStats['tillOrders'] ?? 0) }}
Till Total £{{ number_format((float) ($tkStats['tillTotal'] ?? 0), 2) }}
Till Cash £{{ number_format((float) ($tkStats['tillCash'] ?? 0), 2) }}
Till Card £{{ number_format((float) ($tkStats['tillCard'] ?? 0), 2) }}
Kiosk Orders {{ (int) ($tkStats['kioskOrders'] ?? 0) }}
Kiosk Total £{{ number_format((float) ($tkStats['kioskTotal'] ?? 0), 2) }}
Refunds Paid £{{ number_format((float) ($summary['refunds'] ?? 0), 2) }} ({{ (int) ($summary['refund_count'] ?? 0) }})
@forelse($categories as $row) @empty @endforelse
Categories Qty Value (£)
{{ $row['catname'] }} {{ number_format((float) ($row['total_qty'] ?? 0), 2) }} £{{ number_format((float) ($row['total_val'] ?? 0), 2) }}
No category data available for selected date.
@forelse($xzProducts as $row) @if(isset($row['regular_qty'])) @endif @empty @endforelse
Products Qty Value (£)
{{ $row['prodname'] }} {{ number_format((float) ($row['total_qty'] ?? 0), 2) }} £{{ number_format((float) ($row['total_val'] ?? 0), 2) }}
Regular: {{ number_format((float) ($row['regular_qty'] ?? 0), 2) }} (£{{ number_format((float) ($row['regular_total'] ?? 0), 2) }}) | Large: {{ number_format((float) ($row['large_qty'] ?? 0), 2) }} (£{{ number_format((float) ($row['large_total'] ?? 0), 2) }})
No product data available for selected date.
@endif