@extends('layouts.back-end.app-seller') @section('title','Order Details') @push('css_or_js') @endpush @section('content')

Order details {{$order->details->count()}}

Payment Method : {{str_replace('_',' ',$order['payment_method'])}}

{{trans('messages.image')}}

{{trans('messages.Name')}}

{{trans('messages.price')}}

Q

{{trans('messages.TAX')}}

{{trans('messages.Discount')}}

{{trans('messages.Status')}}

{{trans('messages.Subtotal')}}

@php($subtotal=0) @php($total=0) @php($shipping=0) @php($discount=0) @php($tax=0) @foreach($order->details as $detail) @if($detail->product)
Image Description

{{substr($detail->product['name'],0,10)}}{{strlen($detail->product['name'])>10?'...':''}}

Variation :
{{$detail['variant']}}
{{\App\CPU\BackEndHelper::usd_to_currency($detail['price'])}}
{{$detail->qty}}
{{\App\CPU\BackEndHelper::usd_to_currency($detail['tax'])}}
- {{\App\CPU\BackEndHelper::usd_to_currency($detail['discount'])}}
@php($subtotal=$detail['price']*$detail->qty+$detail['tax']-$detail['discount'])
{{\App\CPU\BackEndHelper::usd_to_currency($subtotal).' '.\App\CPU\BackEndHelper::currency_symbol()}}
@php($discount+=$detail['discount']) @php($tax+=$detail['tax']) @php($shipping+=$detail->shipping ? $detail->shipping->cost :0) @php($total+=$subtotal)
@endif @endforeach
{{trans('messages.Shipping')}}
{{\App\CPU\BackEndHelper::usd_to_currency($shipping).' '.\App\CPU\BackEndHelper::currency_symbol()}}
{{trans('messages.Total')}}
{{\App\CPU\BackEndHelper::usd_to_currency($total+$shipping).' '.\App\CPU\BackEndHelper::currency_symbol()}}

Customer

@if($order->customer)
Image Description
{{$order->customer['f_name'].' '.$order->customer['l_name']}}
{{----}}

{{\App\Models\Order::where('customer_id',$order['customer_id'])->count()}} orders
{{----}}

Contact info
  • {{$order->customer['email']}}
  • {{$order->customer['phone']}}

{{trans('messages.shipping_address')}}
{{trans('messages.Name')}} : {{$order->shipping ? $order->shipping['contact_person_name'] : "empty"}}
{{trans('messages.City')}}: {{$order->shipping ? $order->shipping['city'] : "Empty"}}
{{trans('messages.zip_code')}} : {{$order->shipping ? $order->shipping['zip'] : "Empty"}}
{{trans('messages.Phone')}}: {{$order->shipping ? $order->shipping['phone'] : "Empty"}}
@endif
@endsection @push('script') @endpush