@extends('seller.layouts.app') @section('main_content')

{{ translate('Order Details') }}

{{ translate('Order') }} - {{ $order->order_id }}
@if ($order->payment_status == App\Models\Order::UNPAID) {{ translate('Unpaid') }} @elseif($order->payment_status == App\Models\Order::PAID) {{ translate('Paid') }} @endif & @php echo order_status_badge($order->status) @endphp @if($order->verification_code) -
{{$order->verification_code}}
@endif
@if($order->deliveryManOrder)
@endif
@php $subtotal = 0; @endphp @foreach ($orderDeatils as $orderDetail) @php $subtotal += $orderDetail->total_price; @endphp @endforeach
{{ translate('Product Name') }} {{ translate('Item Price') }} {{ translate('Qty') }} {{ translate('Total') }} {{ translate('Status') }}
{{ $orderDetail->product->featured_image }}
@php $product = $orderDetail->product; $slug = $product->slug ? $product->slug : make_slug($product->name); @endphp {{ $product->name }}
{{ $orderDetail->attribute }}
{{ short_amount($orderDetail->total_price / $orderDetail->quantity) }} {{ $orderDetail->quantity }} {{ short_amount($orderDetail->total_price) }} @php echo order_status_badge($orderDetail->status) @endphp
{{ translate('Total Amount') }} : {{ short_amount($subtotal) }}
{{ translate('Shipping Cost') }} {{ short_amount($order->shipping_charge) }}
{{ translate('Total') }}: {{ short_amount($order->shipping_charge + $subtotal) }}
{{ translate('Product Status Update') }}
@csrf
@foreach ($orderStatus as $status)
  • {{ translate('Note') }} : {{ $status->payment_note }}

    {{ $status->created_at->format('d-m-Y') }}
    {{ $status->payment_status == 1 || !$status->payment_status ? 'Unpaid' : 'paid' }}
  • {{ translate('Note') }} : {{ $status->delivery_note }}

    {{ $status->created_at->format('d-m-Y') }}
    @php echo order_status_badge($status->delivery_status) @endphp
@endforeach
{{ translate('Customer Details') }}
@if(@$order->customer) @endif
@php $customerName = @$order->customer->name ?? @$order->billing_information->first_name; $email = @$order->customer->email ?? @$order->billing_information->email; $phone = @$order->customer->phone ?? @$order->billing_information->phone ; if(@$order->billingAddress){ $email = @$order->billingAddress->email; $phone = @$order->billingAddress->phone; $customerName = @$order->billingAddress->first_name; } @endphp
  • @if($order->customer)
    {{ @$order->customer->name }}
    @endif
    {{ @$customerName }}

    {{ translate('Customer') }}

  • {{ @$email }}
  • {{ @$phone }}
{{translate('Payment details')}}
  • {{translate('Payment status')}} : @if ($order->payment_status == App\Models\Order::UNPAID) {{ translate('Unpaid') }} @elseif($order->payment_status == App\Models\Order::PAID) {{ translate('Paid') }} @endif
  • {{translate('Payment VIA')}} : @if($order->wallet_payment == App\Models\Order::WALLET_PAYMENT) {{ translate('Payment VIA Wallet')}} @else @if ($order->payment_type == '2') {{ @$order->paymentMethod ? $order->paymentMethod->name : 'N/A' }} @else {{ translate('Cash On Delivary') }} @endif @endif
  • @if($order->payment_details) @foreach ($order->payment_details as $key => $value )
  • {{k2t($key)}} : {{$value}}
  • @endforeach @endif
@if (@$order->billingAddress)
{{ translate('Billing Address') }}
  • {{ translate('First Name') }} : {{ $order->billingAddress->first_name }}
  • {{ translate('Last Name') }} : {{ $order->billingAddress->last_name }}
  • {{ translate('Email') }} : {{ $order->billingAddress->email }}
  • {{ translate('Phone') }} : {{ $order->billingAddress->phone }}
  • {{ translate('Address') }} : {{ $order->billingAddress->address->address }}
  • {{ translate('Zip') }} : {{ $order->billingAddress->zip }}
  • {{ translate('City') }} : {{ $order->billingAddress->city->name }}
  • {{ translate('State') }} : {{ $order->billingAddress->state->name }}
  • {{ translate('Country') }} : {{ $order->billingAddress->country->name }}
@if (@$order->billingAddress->address->latitude && @$order->billingAddress->address->longitude)
@endif
@elseif(@$order->billing_information)
{{ translate('Billing Address') }}
    @foreach (@$order->billing_information as $key => $value)
  • {{ k2t($key) }} : {{ $value }}
  • @endforeach
@endif @if(@$order->shipping)
{{ translate('Shipping Address') }}
  • {{translate("Carrier")}} : {{ @$order->shipping->name }}
  • {{translate("Duration")}} : {{ @$order->shipping->duration }} {{ translate('Days') }}
@endif
{{ translate('Deliveryman details') }}
@php $deliveryData = $order->deliveryManOrder; @endphp @if($deliveryData)
@endif @if(@$deliveryData->time_line)
{{translate("Timeline")}}
@foreach (@$deliveryData->time_line as $key => $timeLine)
{{k2t($key) }}

{{ $timeLine->details }}

{{diff_for_humans($timeLine->time)}}
@endforeach
@endif
@endsection @push('script-push') @endpush