@php $salesCurrent = (float) ($this->salesTotals['current'] ?? 0); $salesYtd = (float) ($this->salesTotals['ytd'] ?? 0); @endphp @if ($salesYtd > 0) @endif @forelse (($this->tableData ?? []) as $section) {{-- Section header --}} @foreach (($section['subAccounts'] ?? []) as $row) @php $current = (float) ($row['current'] ?? 0); $currentPct = (float) ($row['current_percent'] ?? 0); $ytd = (float) ($row['ytd'] ?? 0); $pct = (float) ($row['ytd_percent'] ?? 0); @endphp @endforeach {{-- Section totals --}} @php $tCurrent = (float) ($section['totals']['current'] ?? 0); $tCurrentPct = (float) ($section['totals']['current_percent'] ?? 0); $tYtd = (float) ($section['totals']['ytd'] ?? 0); $tPct = (float) ($section['totals']['ytd_percent'] ?? 0); @endphp @empty @endforelse
البيان الشهر الحالي الشهر الحالي % العام حتى تاريخه العام حتى تاريخه %
إجمالي المبيعات (للـ %) @if (abs($salesCurrent) > 0) {{ number_format($salesCurrent, 2) }} @else {{ number_format($salesCurrent, 2) }} @endif 100% {{ number_format($salesYtd, 2) }} 100%
{{ $section['account_name'] ?? '-' }}
{{ $row['account_name'] ?? '-' }} @if (abs($current) > 0) {{ number_format($current, 2) }} @else {{ number_format($current, 2) }} @endif @if (abs($currentPct) > 0) {{ number_format($currentPct, 2) }}% @else 0% @endif @if (abs($ytd) > 0) {{ number_format($ytd, 2) }} @else {{ number_format($ytd, 2) }} @endif @if (abs($pct) > 0) {{ number_format($pct, 2) }}% @else 0% @endif
إجمالي {{ $section['account_name'] ?? '' }} @if (abs($tCurrent) > 0) {{ number_format($tCurrent, 2) }} @else {{ number_format($tCurrent, 2) }} @endif @if (abs($tCurrentPct) > 0) {{ number_format($tCurrentPct, 2) }}% @else 0% @endif @if (abs($tYtd) > 0) {{ number_format($tYtd, 2) }} @else {{ number_format($tYtd, 2) }} @endif @if (abs($tPct) > 0) {{ number_format($tPct, 2) }}% @else 0% @endif
لا توجد بيانات لعرضها.