تقرير الموازنة

الاسم: {{ $budget->name }}
السنة المالية: {{ $budget->fiscal_year }}
الفترة: {{ $budget->start_date->format('Y-m-d') }} - {{ $budget->end_date->format('Y-m-d') }}
@foreach(($analysis['lines'] ?? []) as $line) @php $isOver = (float) $line['actual'] > (float) $line['planned']; @endphp @if(!empty($line['monthly'])) @endif @endforeach
الحساب مركز التكلفة المخطط الفعلي الانحراف نسبة الانحراف
{{ $line['account_code'] }} - {{ $line['account_name'] }} {{ $line['cost_center'] ?? '—' }} SAR {{ erp_money((float) $line['planned']) }} SAR {{ erp_money((float) $line['actual']) }} SAR {{ erp_money((float) $line['variance']) }} {{ erp_qty((float) $line['variance_percent']) }}%
@foreach($line['monthly'] as $month) @endforeach
الشهر المخطط الفعلي الانحراف
{{ $month['label'] }} SAR {{ erp_money((float) $month['planned']) }} SAR {{ erp_money((float) $month['actual']) }} SAR {{ erp_money((float) $month['variance']) }}
إجمالي المخطط: SAR {{ erp_money((float) ($analysis['totals']['planned'] ?? 0)) }}
إجمالي الفعلي: SAR {{ erp_money((float) ($analysis['totals']['actual'] ?? 0)) }}
إجمالي الانحراف: SAR {{ erp_money((float) ($analysis['totals']['variance'] ?? 0)) }}