@extends('admin.layouts.container') @section('content')

{{ $head ?? ''}}

{{ __('orders::orders.user_data') }}

{{ __('orders::orders.order_data') }}

@method('PUT') @csrf
  • {{ __('orders::orders.order_id') }} : {{ $order->id }}
  • {{ __('orders::orders.order_date') }} : {{ $order->created_at->format('Y-m-d') }}
  • {{ __('orders::orders.order_time') }} : {{ $order->created_at->format('h:i A') }}
  • {{ __('orders::orders.payment_method') }} : {{ $order->paymentMethod->currentDescription->title ?? "-" }}
  • {{ __('orders::orders.payment_status') }} : {{ __("orders::orders.payment_status_$order->payment_status") }}
  • {{ __('orders::orders.coupon') }} : {{ $order->coupon->name ?? "-" }}
@if($order->orderDetails?->isNotEmpty())

{{ __('orders::orders.products') }}

{{-- --}} {{-- --}} @foreach($order->orderDetails as $orderDetail) {{-- --}} {{-- --}} @endforeach
{{ __('products::products.image') }} {{ __('products::products.title') }} {{ __('products::products.account_number') }} {{ __('products::products.price') }} {{ __('products::products.category_id') }} {{ __('products::products.quantity') }} {{ __('orders::orders.total') }}
{{ $orderDetail->product->currentDescription->title ?? "" }} {{ $product->uuid ?? "" }} {{ format_number($orderDetail->converted_amounts['price'] ?? 0) . ' ' . $order->currency_code }} {{ $product->category->currentDescription->name ?? "" }} {{ $orderDetail->qty }} {{ format_number($orderDetail->converted_amounts['subtotal'] ?? 0) . ' ' . $order->currency_code }}
@endif

{{ __('orders::orders.invoice_details') }}

@if($order->coupon_discount > 0) @endif @if($order->tax_amount > 0) @endif @if($order->shipping_fee > 0) @endif {{-- --}}
{{-- __('orders::orders.subtotal') --}} {{ __('orders::orders.cost') }} {{ format_number($order->converted_amounts['subtotal_before_discount'] ?? 0) ." ".$order->currency_code }}
{{ __('orders::orders.coupon_discount') }} {{ format_number($order->converted_amounts['coupon_discount'] ?? 0) ." ".$order->currency_code }}
{{ __('orders::orders.tax_amount') }} {{ format_number($order->converted_amounts['tax_amount'] ?? 0) ." ".$order->currency_code }}
{{ __('settings.shipping_fee') }} {{ format_number($order->converted_amounts['shipping_fee'] ?? 0) ." ".$order->currency_code }}
{{ __('orders::orders.management_ratio') }} {{ format_number($order->converted_amounts['system_commission'] ?? 0) ." ".$order->currency_code }}
{{ __('orders::orders.teacher_ratio') }} {{ format_number($order->converted_amounts['teacher_commission'] ?? 0) ." ".$order->currency_code }}
{{ __('orders::orders.total') }} {{ format_number($order->converted_amounts['total'] ?? 0) ." ".$order->currency_code }}
@if(is_file(public_path('storage/'.$order->barcode_photo)))
@endif
{{ __('general.export_excel') }} @if(_is_file($order->pdf)) {{ __('orders::orders.download_invoice') }} @endif {{ __('general.print') }} {{-- {{ __('general.print') }} --}}
@endsection @push('stack_scripts') @endpush @section('inner_js') {{-- get regions by country --}} @include('admin.partials._script') @endsection