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

{{ $head ?? ''}}

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

@if($order->broker)

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

@endif @if($order->ratings?->count())

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

@foreach($order->ratings as $rating) @endforeach
{{ __('ratings::ratings.type') }} {{ __('ratings::ratings.rating') }} {{ __('ratings::ratings.comment_2') }}
{{ __("ratings::ratings.type_$rating->type") }} @for($f=1; $f<=5; $f++) @if($f <= ($rating->rating ?? 0)) @else @endif @endfor {{ $rating->comment }}
@endif @if($order->paymentDetail?->exists())

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

  • {{ __('orders::orders.beneficiary_name') }} : {{ $order->paymentDetail->beneficiary_name ?? "" }}
  • {{ __('orders::orders.bank_account_number') }} : {{ $order->paymentDetail->bank_account_number ?? "" }}
  • {{ __('orders::orders.country_id') }} : {{ $order->paymentDetail->country->currentDescription->title ?? "" }}
  • {{ __('orders::orders.account_code') }} : {{ $order->paymentDetail->account_code ?? "" }}
@endif

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

{{-- --}} {{-- --}} @if($order->notes) @endif
{{ __('orders::orders.order_id') }} : {{ $order->id }} {{ __('orders::orders.customer_name') }} : {{ $order->user->name ?? $order->user->username ?? "-" }}
{{ __('orders::orders.customer_email') }} : {{ $order->user->email ?? "-" }} {{ __('orders::orders.customer_phone') }} : {{ $order->user->phone ?? "-" }} {{ __('orders::orders.coupon') }} : {{ $order->coupon->name ?? "-" }}
{{ __('orders::orders.order_date') }} : {{ $order->created_at }} {{ __('orders::orders.payment_method') }} : {{ $order->paymentMethod->currentDescription->title ?? "-" }}
{{ __('orders::orders.payment_status') }} : {{ __("general.payment_status_$order->payment_status") }} {{ __('orders::orders.app_commission_from_provider') }} : {{ $order->app_commission_from_provider ." ".$currency_code }}
{{ __('orders::orders.provider_commission') }} : {{ $order->provider_commission ." ".$currency_code }} {{ __('orders::orders.app_commission_from_rep') }} : {{ $order->app_commission_from_rep ." ".$currency_code }}
{{ __('orders::orders.rep_commission') }} : {{ $order->rep_commission ." ".$currency_code }} {{ __('orders::orders.app_commission') }} : {{ $order->app_commission ." ".$currency_code }}
{{ __('orders::orders.coupon') }} : {{ $order->coupon->name ?? "-" }} {{ __('orders::orders.rep_name') }} : {{ $order->rep->name ?? "-" }}
{{ __('orders::orders.provider_name') }} : {{ $order->provider->name ?? "-" }} {{ __('orders::orders.status') }} : {{ getOrderStatusName($order->status) }}
{{ __('orders::orders.notes') }} : {{ $order->notes ?? "-" }}
@if($order->products()->count())

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

@foreach($order->products()->get() as $product) @endforeach
{{ __('orders::orders.product_name') }} {{ __('orders::orders.price') }} {{ __('orders::orders.addons_price') }} {{ __('orders::orders.quantity') }} {{ __('orders::orders.total') }} {{ __('orders::orders.details') }}
{{ $product->currentDescription->title ?? "" }} {{ $product->pivot->price." ".$currency_name }} {{ $product->pivot->addons_price ? $product->pivot->addons_price." ".$currency_name : '-' }} {{ $product->pivot->qty }} {{ $product->pivot->total." ".$currency_name }} @if($product->orderProductAddonsByOrderId($order->id)->count()) @else {{ __('general.not_exist') }} @endif
@endif @if($order->sources()->count())

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

@foreach($order->sources()->get() as $source) @endforeach
{{ __('orders::orders.source_image') }} {{ __('orders::orders.source_name') }} {{ __('orders::orders.price') }} {{ __('orders::orders.quantity') }} {{ __('orders::orders.total') }} {{ __('orders::orders.details') }}
{{ $source->currentDescription->title ?? "" }} {{ $source->pivot->price." ".$currency_name }} {{-- $source->pivot->unit_price." ".$currency_name --}} {{ $source->pivot->qty }} {{ $source->pivot->total." ".$currency_name }}
@endif

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

@if($order->delivery_charges) @endif @if($order->tax_amount) @endif @if($order->coupon_discount > 0) @endif
{{ __('orders::orders.subtotal') }} {{ $order->subtotal ." ".$currency_name }}
{{ __('orders::orders.delivery_charges') }} {{ $order->delivery_charges ." ".$currency_name }}
{{ __('orders::orders.tax_amount') }} {{ $order->tax_amount ." ".$currency_name }}
{{ __('orders::orders.coupon_discount') }} {{ $order->coupon_discount ." ".$currency_name }}
{{ __('orders::orders.total_amount') }} {{ $order->total ." ".$currency_name }}
@if(isset($order->address) && $order->address->exists())

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

{{ __('orders::orders.city') }} {{ __('orders::orders.address_on_map') }} {{ __('orders::orders.street_name') }} {{ __('orders::orders.building_name') }} {{ __('orders::orders.building_number') }} {{ __('orders::orders.distinct_mark') }}
{{ $order->address->city->currentDescription->title ?? "" }} {{ $order->address->street_name ?? "" }} {{ $order->address->building_name ?? "" }} {{ $order->address->building_number ?? "" }} {{ $order->address->distinct_mark ?? "-" }}
@endif
@if(is_file(public_path($order->barcode_photo)))
@endif
{{ __('general.export_excel') }} @if($order->pdf && file_exists(public_path($order->pdf))) {{ __('orders::orders.download_invoice') }} @endif {{ __('general.print') }}
{{--
@method('PUT') @csrf
--}} @if($order->products()->count()) @foreach($order->products()->get() as $product) @if($product->orderProductAddonsByOrderId($order->id)->count()) @include('admin.orders.product_modal', ['orderProductAddons'=>$product->orderProductAddonsByOrderId($order->id)->get(), 'product_id'=>$product->id]) @endif @endforeach @endif @if($order->sources()->count()) @foreach($order->sources()->get() as $source) @include('admin.orders.source_modal', ['source_id'=>$source->id, 'source' => $source]) @endforeach @endif @endsection @push('stack_scripts') {{-- @include('admin.partials._map') --}} @endpush @section('inner_js') {{-- get regions by country --}} @include('admin.partials._script') @endsection @push('stack_scripts') @endpush