@extends('website.layouts.master') @section('site_title')تفاصيل الطلب -@endsection @section('content')
تفاصيل الطلب - #{{ $order->id }}
@if ($order->status == 'waiting_for_payment')

تريد تغيير طريقة الدفع؟ اضغط هنا.

@endif
@if (($order->status == 'waiting_for_payment') && (in_array($order->payment_method, ['credit_cards', 'mada_online', 'apple_pay'])))
الدفع للطلب

يرجى عدم اغلاق الصفحة قبل اتمام عملية الدفع

@if ($order->payment_method == 'mada_online')

**** **** **** ****

Card holder

Your name here

Expires

MM/YY

***

@csrf
@elseif ($order->payment_method == 'apple_pay')
@else

**** **** **** ****

Card holder

Your name here

Expires

MM/YY

***

@csrf
@endif
@endif
ملخص الطلب
@foreach($order->order_products()->get() as $product)

{{ $product['name'] }}

{{ $product->pivot['quantity'] }} {{ $product->pivot['price'] }}

{{ $product->pivot['quantity'] * $product->pivot['price'] }} ريال

@endforeach
{{ __('api.orders.products_price') }}

{{ $order['price'] }}ريال

{{ __('api.orders.delivery_price') }}

{{ $order['delivery_price'] }} ريال

{{ __('api.orders.stair_cost') }})

{{ $order['total_stair_cost'] }} ريال

{{ __('api.orders.total_discount') }}

{{ $order['discount'] }} ريال

{{ __('api.orders.vat') }}

{{ $order['vat'] }} ريال

{{ __('api.orders.total_price') }}

{{ $order['total_price'] }} ريال

بيانات الطلب

طريقة الدفع: {{ __('api.payment_methods.' . $order['payment_method']) }}

موعد التوصيل : {{ $order['delivery_date'] . ', ' . 'من ' . $hour_types['ar'][$order->delivery_time] . ' إلى ' . $hour_types['ar'][$order->delivery_time+2] }}

حالة الطلب : {{ __('api.user_order_statuses.' . $order['status']) }}

عنوان التوصيل: {{ $order->user_address['name'] }}

@if ($order->status == 'done')
@endif @if (in_array($order->status, ['waiting_for_payment', 'pending', 'approved', 'driver_accepted']))
@endif طباعة الفاتورة
@endsection @push('page_level_style') @if (!in_array($order->payment_method, ['apple_pay'])) @endif @endpush @push('page_level_script') @if (in_array($order->payment_method, ['credit_cards', 'mada_online'])) @endif @if (($order->status == 'waiting_for_payment') && (in_array($order->payment_method, ['credit_cards', 'mada_online', 'apple_pay']))) @if (in_array($order->payment_method, ['apple_pay'])) @endif @endif @endpush