@extends('admin.layout.master') @section('css') @endsection @section('content')
{{awtTrans('بيانات الطلب')}}
@if ($order->payment_type == 'wallet') @elseif($order->payment_type == 'cash') @elseif($order->payment_type == 'online') @endif @if ($order->type == 'special_stores') @elseif($order->type == 'google_places') @elseif($order->type == 'parcel_delivery') @else @endif @if($order->payment_status == 'true') @elseif($order->payment_status == 'false') @endif @if($order->status == 'finished') @else @endif
{{awtTrans('سعر المنتجات')}} {{$order->price}}
{{awtTrans('القيمة المضافة')}} {{$order->added_value}}
{{awtTrans('اجمالي الطلب')}} {{$order->total_price}} {{awtTrans('طريقة الدفع ')}} {{awtTrans('من المحفظة')}}{{awtTrans('كاش')}}{{awtTrans('اونلاين')}}
{{awtTrans('الكوبون')}} {{$order->coupon ?? awtTrans('لا يوجد')}} {{awtTrans('قيمة الخصم')}} {{$order->coupon ? $order->discount : awtTrans('لا يوجد')}}
{{awtTrans('نوع الطلب ')}} {{awtTrans('متجر متعاقد')}}{{awtTrans('متجر غير متعاقد')}}{{awtTrans('توصيل باكدج')}}{{awtTrans('طلب خاص')}}{{awtTrans('حالة الدفع')}} {{awtTrans('تم الدفع')}}{{awtTrans('لم يتم الدفع')}}
{{awtTrans('الملاحظات')}} {{$order->description}}
{{awtTrans('فاتورة الطلب')}} {{awtTrans('عرض')}}{{awtTrans('غير موجودة')}}
{{awtTrans('المنتجات')}}
@foreach($products as $order_product) @if($order_product->group) @endif @if($order_product->orderproductadditives()->count() > 0) @endif
{{awtTrans('اسم المنتج')}} {{$order_product->product->name}}
{{awtTrans('الكمية')}} {{$order_product->qty}}
{{awtTrans('سمات المنتج المطلوب')}} @foreach($order_product->group->ProperitiesData as $property) {{$property->feature->name .' : ' .$property->name .' '}}
@endforeach
{{awtTrans('الاضافات')}} {{$order_product->additives_text()}}

@endforeach
{{-- store info --}}
{{awtTrans('بيانات المتجر')}}
@if($order->store != null) @else @endif @if ($order->type == 'special_stores') @endif
{{awtTrans('اسم المتجر')}} {{$order->store?->name}}{{$order->store_name}}
{{awtTrans(' نوع المتجر')}} {{$order->store?->has_contract == 'true' ? awtTrans('متجر متعاقد') : awtTrans('متجر غير متعاقد') }}
{{awtTrans('رقم هاتف المتجر')}} {{$order->store?->user ? $order->store->user->phone : awtTrans('لا يوجد')}}
{{awtTrans('حالة الطلب عند المتجر')}} {{awtTrans('قيد الانتظار')}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{awtTrans('تم القبول')}} {{-- --}} {{-- --}} {{-- --}} {{awtTrans('تم التجهيز')}} {{awtTrans('تم الرفض')}}
{{-- user info --}}
{{awtTrans('بيانات المستخدم')}}
{{awtTrans('اسم المستخدم')}} {{$order->user->name ?? ''}}
{{awtTrans('رقم هاتف المستخدم')}} {{$order->user->phone ?? ''}}
{{awtTrans('حالة الطلب')}} {{trans('order.'.$order->statusForUser())}}
@if($order->status=='closed')
{{awtTrans('اسباب الالغاء')}}
{{awtTrans(' السبب')}} {{$order->close_reason }}
@endif
{{awtTrans(' رجوع ')}}
@endsection @section('js') @endsection