{!! \Illuminate\Support\Facades\Auth::user()->restaurants->name !!}

Order ID: {!! $order->order_ref !!}

اسم الزبون : {!! $order->customer_name !!}
العنوان : @if(isset($order->customers->customer_addresses[0])) {!! ucwords($order->customers->customer_addresses[0]->label) !!} ،{!! $order->customers->customer_addresses[0]->area !!} {!! $order->customers->customer_addresses[0]->address !!} @endif
الموبايل : {!! isset($order->customers)?(str_replace(env('COUNTRY_CODE'),'',$order->customers->users->email)):"" !!}
@if(isset($order->orderItems) && $order->orderItems->count() > 0) @php $extra_price = 0; @endphp @foreach($order->orderItems as $item) @endforeach @endif
اسم المادة الكمية السعر السعر الإجمالي

@php $recipe = $item->recipes; $cate_name = ""; $categories = isset($recipe->categories)?$recipe->categories->pluck('category_id'):NULL; if($categories){ $categories = \App\Categories::whereIn('id',$categories)->pluck('name')->toArray(); $cate_name = $categories[0]; } @endphp @php $extra_options = NULL; $opt = []; if(!empty($item->extra_options)){ $extra_options = json_decode($item->extra_options); //$opt = "

    "; foreach($extra_options as $option){ $itm = \App\ExtraOptionItems::find($option->id); if(isset($itm)){ $opt[] = $itm->name; // $opt.="
  • ".$itm->name.' '.number_format($itm->price,2).''; $extra_price = $extra_price+$itm->price; // dump($extra_price); if(isset($option->sub_items)){ foreach($option->sub_items as $sub){ $itm = \App\ExtraOptionItems::find($sub->sub_item_id); $extra_price = $extra_price+$itm->price; } } //$opt.="
  • "; } } // $opt.="
"; } @endphp {!! isset($item->recipes)?$item->recipes->name:"" !!}

{!! $item->qty !!}

IQD {!! number_format($item->price) !!}

IQD {!! number_format($item->qty*$item->price) !!}

سعر التوصيل IQD {!! $order->delivery_fee !!}
المبلغ الكلي IQD {!! number_format($order->delivery_fee+$order->total_price+$extra_price) !!}

{!! \Illuminate\Support\Facades\Auth::user()->restaurants->name !!} , {!! \Illuminate\Support\Facades\Auth::user()->restaurants->address !!} {!! \Illuminate\Support\Facades\Auth::user()->restaurants->phone_number !!}