@extends('admin.layouts.app') @section('title', 'Order №' . $order->order_number) @section('page_name') Order №{{ $order->order_number }} {{ $order->display_date_created }} at {{ $order->display_time_created }} {{ $order->type }} {!! $order->order_status->full_status !!} {!! $order->order_source->icon_view !!} {{ $order->order_source->name }}
@csrf @method('DELETE')
@endsection @section('content')

Customer information:

Name: {{ $order->customer }}

Email: {{ $order->email }}

Phone: {{ $order->phone }}

@if ($order->comment)

Comment: {{ $order->comment }}

@endif

Payment:

{{ $order->payment_method->name }}

Subtotal: {{ $order->display_subtotal }}

@if ($order->coupon)

Coupon: {{ $order->coupon->code }}

{{ $order->coupon->des }}

@endif @if ($order->discount > 0)

Discount: {{ $order->display_discount }}

@endif @if ($order->is_delivery)

Delivery Charge: {{ $order->display_delivery_fee }}

@endif

Total: {{ $order->display_total }}


@if ($order->is_delivery)

Delivery Address:

Area: {{ $order->area->name }}

Address: {{ $order->address }}

Delivery Time: {{ $order->area->view_time }}

@endif

Order Details:

@foreach ($order->order_detail as $item) @endforeach @if ($order->discount > 0) @endif @if ($order->is_delivery) @endif
Item Category Comment Quantity Price Total
img {{ $item->item->name }} {{ $item->item->category->name }} {{ $item->comments }} x{{ $item->qty }} {{ $item->display_subtotal }} {{ $item->display_total }}
Subtotal {{ $order->display_order_details_total }}
Discount {{ $order->display_discount }}
Delivery Charge {{ $order->display_delivery_fee }}
Total {{ $order->display_total }}
@endsection @push('script') @endpush