@php $days = ['1' => 'اليوم الأول', '2' => 'اليوم الثاني', '3' => 'اليوم الثالث', '4' => 'اليوم الرابع']; $totz = 0; @endphp @foreach ($topEmiratesOrdersDetails[0] as $kday => $day) @foreach ($day as $kemirate => $emirate) @php $span1 = 0; @endphp @foreach ($topEmiratesOrdersDetails[1][$kday][$kemirate] as $kp => $p) @endforeach @foreach ($topEmiratesOrdersDetails[2][$kday][$kemirate] as $kr => $r) @php $span2 = 0; @endphp @foreach ($topEmiratesOrdersDetails[2][$kday][$kemirate][$kr] as $kt => $t) @if ($topEmiratesOrdersDetails[4][$kday][$kemirate]['num'] > 0 && $span1 == 0) @php $span1++; @endphp @endif @if ($topEmiratesOrdersDetails[4][$kday][$kemirate][$kr]['num'] > 0 && $span2 == 0) @php $span2++; @endphp @endif @foreach ($topEmiratesOrdersDetails[1][$kday][$kemirate] as $kp => $p) @php $totz += $topEmiratesOrdersDetails[2][$kday][$kemirate][$kr][$kt][$kp] ?? 0; @endphp @endforeach @php $totz = 0; @endphp @endforeach @endforeach @php if(isset($topEmiratesOrdersDetails[3][$kday]) && isset($topEmiratesOrdersDetails[3][$kday][$kemirate])) { @endphp @foreach ($topEmiratesOrdersDetails[3][$kday][$kemirate] as $kd => $r) @php $span2 = 0; @endphp @foreach ($topEmiratesOrdersDetails[3][$kday][$kemirate][$kd] as $kt => $t) @if ($topEmiratesOrdersDetails[5][$kday]['num'] > 0 && $span1 == 0) @php $span1++; @endphp @endif @if ($topEmiratesOrdersDetails[5][$kday][$kemirate][$kd]['num'] > 0 && $span2 == 0) @php $span2++; @endphp @endif @foreach ($topEmiratesOrdersDetails[1][$kday][$kemirate] as $kp => $p) @php $totz += $topEmiratesOrdersDetails[3][$kday][$kemirate][$kd][$kt][$kp] ?? 0; @endphp @endforeach @php $totz = 0; @endphp @endforeach @endforeach @php } @endphp @foreach ($topEmiratesOrdersDetails[1][$kday][$kemirate] as $kp => $p) @endforeach @foreach ($topEmiratesOrdersDetails[1][$kday][$kemirate] as $kp => $p) @endforeach @endforeach

{{ $days[$kday] ?? '' }}

{{ $kemirate }}

اجمالي الطلبات

الفترة

عدد الطلبات

{{ $p }}

اجمالي الاضاحي

{{ $days[$kday] ?? '' }}

التوصيل

{{ ($kemirate=='أبوظبي'? ($kr == 'in' ? 'جزيرة أبو ظبي' : 'خارج أبو ظبي'):'') }}

{{ $topEmiratesOrdersDetails['totals'][1][$kday][$kemirate][$kr] }}

{{ $kt }}

{{ $topEmiratesOrdersDetails['totals'][0][$kday][$kemirate][$kr][$kt] }}

{{ $topEmiratesOrdersDetails[2][$kday][$kemirate][$kr][$kt][$kp] ?? '' }}

{{ $totz }}

{{ $days[$kday] ?? '' }}

نقاط الاستلام

{{ $kd }}

{{ $topEmiratesOrdersDetails['totals'][4][$kday][$kemirate][$kd] }}

{{ $kt }}

{{ $topEmiratesOrdersDetails['totals'][3][$kday][$kemirate][$kd][$kt] }}

{{ $topEmiratesOrdersDetails[3][$kday][$kemirate][$kd][$kt][$kp] ?? '' }}

{{ $totz }}

اجمالي الطلبات {{ ($topEmiratesOrdersDetails['totals'][2][$kday][$kemirate] ?? 0) + ($topEmiratesOrdersDetails['totals'][5][$kday][$kemirate] ?? 0) }}

{{ $topEmiratesOrdersDetails['totals'][6][$kday][$kemirate][$kp] }}

اجمالي الذبائح

{{ $topEmiratesOrdersDetails['totals'][7][$kday][$kemirate] }}

@endforeach