@php $total = [] ; $total['orders_sum_total'] = 0 ; $total['total_without_delivery'] = 0 ; $total['cooking_price'] = 0 ; $total['rest_total'] = 0 ; $total['zabehaty_percentage_value'] = 0 ; $total['tamara_percentage'] = 0 ; @endphp

{{__('back.total')}} : {{ $count }}

@if ($data->isNotEmpty()) @foreach ($data as $row) @php $tamara_percentage = ($row->tamara_total)? $row->tamara_total * 0.05 : 0 ; $rest_total = $row->orders_sum_total ; if($row->shipping_by_zabehaty ==1) $rest_total += (float) $row->delivery + ($row->delivery * 0.05); $rest_total = $rest_total + $row->vip_discount ; $zabehaty_percentage = request('percentage')??$row->zabehaty_percentage??0; $total_without_delivery = $row->orders_sum_total - $row->delivery - ($row->delivery * 0.05); $zabehaty_percentage_value = ($row->orders_sum_total * $zabehaty_percentage ) / 100 ; $total['orders_sum_total'] += $row->orders_sum_total ; $total['total_without_delivery'] += $row->total_without_delivery ; $total['cooking_price'] += $row->cooking_price ; $total['rest_total'] += $rest_total ; $total['zabehaty_percentage_value'] += $zabehaty_percentage_value ; $total['tamara_percentage'] += $tamara_percentage ; @endphp @endforeach @else @endif
ID {{__('back.shop')}} الطلبات المكتملة الطلبات الملغية VIP خصم التوصيل بالضريبة التوصيل عن طريق {{__('back.totalSales')}} المبيعات بدون توصيل الطبخ صافي المبيعات {{__('back.emirate')}} {{__('back.section')}} {{__('back.dateCreated')}} نسبة ذبيحتي نسبة تمارا المحفظة {{__('back.details')}}
{{ $row->id }} {{ $row->name }} {{ $row->orders_count }} {{ $row->canceled_orders_count }} {{ $row->vip_discount }} {{ $row->delivery + ($row->delivery * 0.05) }} {{ ($row->shipping_by_zabehaty == 1)? 'ذبيحتي' : 'المتجر' }} {{ number_format($row->orders_sum_total , 2) }} {{ number_format($total_without_delivery , 2) }} {{ number_format($row->cooking_price , 2) }} {{ number_format($rest_total , 2) }} {{ @$row->branch->name }} {{ @$row->department()->name}} {{ $row->created_at }} {{ number_format ( $zabehaty_percentage_value , 2) }}
({{$zabehaty_percentage}} %)
{{ number_format ( $tamara_percentage , 2) }}
({{$row->tamara_count}} طلب)
{{ $row->balance ?? 0 }}
التفاصيل
الاجــــمـــالـــي {{$total['orders_sum_total']}} {{$total['total_without_delivery']}} {{$total['cooking_price']}} {{$total['rest_total']}} {{$total['zabehaty_percentage_value']}} {{$total['tamara_percentage']}}
No Data Available