@extends('layouts.app') @section('js') @endsection @section('content')
@include('layouts.components.admin.navbar')

بيانات الطلب

توصيل الطلب

رقم الطلب

#{{$order->id}}

  • في المخزن

    {{$order->created_at}}

  • جاري التوصيل

    {{$order->Shipping_company}}

  • @php $color = ''; $text = ""; switch ($order->Shipping_status) { case "awaiting": $color = "bg-soft-warning text-warning"; $text = "لا يوجد شركة شحن"; break; case "delivery": $color = "bg-soft-warning text-warning"; $text = "قيد التوصيل "; break; case "delivered": $color = "bg-soft-success text-success"; $text = "تم التسليم "; break; case "Partially delivered": $color = "bg-soft-warning text-warning"; $text = "مسلم جزئي "; break; case "Refused to receive": $color = "bg-soft-danger text-danger"; $text = "رفض الاستلام "; break; case "Delayed": $color = "bg-soft-warning text-warning"; $text = "مؤجل "; break; case "returned product": $color = "bg-soft-danger text-danger"; $text = "مرتجع "; break; } echo $text; @endphp

@if($order->Shipping_note) @endif
@foreach ($order->items as $item) @endforeach @php $benefits = 0; $total_without_fees = 0; $total = 0; foreach ($order->items as $key => $_item) { $benefits += $_item->benefits; $total_without_fees += $_item->needed * $_item->needed_price; $total += ($_item->needed * $_item->needed_price) ; } $total += $order->Shipping_fees; if (+$order->discount) { $total -= $order->discount; } @endphp
المنتج الصورة السعر الكمية المقاس اللون الاجمالي المكسب
{{($item->product_name) }} @if ((Auth::user()->id == $order->created_by && $order->status == "new") || Auth::user()->role == "admin" || Auth::user()->role == "support") @if(App\Models\colors::find($item->color_id)) @endif @endif product-img {{$item->needed_price}} {{$item->needed}} {{($item->size) }} {{($item->color)}} {{$item->needed * $item->needed_price }} {{$item->needed * $item->needed_price - $item->needed *$item->min_price }}
المكسب الاجمالي
{{$benefits}}
سعر الشحن {{$order->Shipping_fees}}
الخصم {{$order->discount}}
السعر الاجمالي بدون الشحن والخصم {{$total_without_fees}}
السعر الاجمالي
{{$total}}
الملاحظات
@if ( Auth::user()->role == "admin" || Auth::user()->role == "support" )
طباعة
تغير الحالة
تغير حالة الشحن
@endif @if ((Auth::user()->id == $order->created_by && $order->status == "new") || Auth::user()->role == "admin" || Auth::user()->role == "support") اضافة منتج @endif
@foreach ($order->notes as $key => $note) @if ($key % 2)

{{$note->sender}}

{{$note->created_at}}

{{$note->note}}

@else

{{$note->sender}}

{{$note->created_at}}

{{$note->note}}

@endif @endforeach
@foreach (json_decode($order->address) as $index => $address)
@if($index != 0) @endif
@endforeach
@foreach (json_decode($order->phone) as $index => $phone)
@if($index != 0) @endif
@endforeach @if (Auth::user()->role == "admin" || Auth::user()->role == "support" )
@endif
@php use App\Http\Classes\OrderHelper; @endphp @if (OrderHelper::isCreatorAndOrderInPossibleStatus($order) || Auth::user()->role == "admin" || Auth::user()->role == "support" || Auth::user()->id == App\Models\User::find($order->created_by)->leader_id) @endif
© Powered by {{env('website_name')}}
@endsection