{{-- Print-optimised sales comparison report (company portal; the station portal has its own copy). The browser's print dialog is the PDF engine ("حفظ كـ PDF"); no PDF library needed. Expects: $title, $entityName, $showStation (bool), $comparison (array of rows), $summary, $currentPeriod, $previousPeriod, $statusLabels, $backUrl --}} {{ $title }} - {{ $entityName }}
العودة للتقرير

{{ $title }}

{{ $entityName }}
تاريخ الإصدار: {{ \App\Support\Format\Fmt::datetime(now()) }}
الفترة الحالية {{ $currentPeriod['label'] }} ({{ \App\Support\Format\Fmt::date($currentPeriod['start']) }} إلى {{ \App\Support\Format\Fmt::date($currentPeriod['end']) }})
فترة المقارنة {{ $previousPeriod['label'] }} ({{ \App\Support\Format\Fmt::date($previousPeriod['start']) }} إلى {{ \App\Support\Format\Fmt::date($previousPeriod['end']) }})
التغيير الإجمالي{{ $summary['overall_change_percentage'] ?? 0 }}%
مبيعات الفترة الحالية (ر.س){{ number_format($summary['total_current_sales'] ?? 0, 2) }}
مبيعات فترة المقارنة (ر.س){{ number_format($summary['total_previous_sales'] ?? 0, 2) }}
بزيادة / بنقصان{{ $summary['increased_count'] ?? 0 }} / {{ $summary['decreased_count'] ?? 0 }}
تغييرات حرجة{{ $summary['critical_count'] ?? 0 }}
@if($showStation)@endif @forelse($comparison as $item) @if($showStation)@endif @empty @endforelse
المحطةنوع الوقود المبيعات الحالية (ر.س) الكمية الحالية (لتر) المبيعات السابقة (ر.س) الكمية السابقة (لتر) تغيير المبلغ (ر.س) نسبة التغيير الحالة
{{ $item['station_name'] ?? '-' }}{{ $item['fuel_type_name'] }} {{ number_format($item['current_sales'], 2) }} {{ number_format($item['current_quantity'], 0) }} {{ number_format($item['previous_sales'], 2) }} {{ number_format($item['previous_quantity'], 0) }} {{ number_format($item['change_amount'], 2) }} {{ $item['change_percentage'] }}% {{ $statusLabels[$item['change_status']] ?? 'طبيعي' }}
لا توجد مبيعات في الفترتين المحددتين