@extends('admin.layout') @section('content')
@if (count($orders) == 0)

{{ __('NO ORDER FOUND') . '!' }}

@else
@foreach ($orders as $order) @endforeach
{{ __('Order No.') }} {{ __('Billing Name') }} {{ __('Billing Email') }} {{ __('Billing Phone') }} {{ __('Billing Address') }} {{ __('Billing City') }} {{ __('Billing State') }} {{ __('Billing Country') }} {{ __('Shipping Name') }} {{ __('Shipping Email') }} {{ __('Shipping Phone') }} {{ __('Shipping Address') }} {{ __('Shipping City') }} {{ __('Shipping State') }} {{ __('Shipping Country') }} {{ __('Price') }} {{ __('Discount') }} {{ __('Shipping Method') }} {{ __('Shipping Cost') }} {{ __('Tax') }} {{ __('Grand Total') }} {{ __('Paid via') }} {{ __('Payment Status') }} {{ __('Order Status') }} {{ __('Order Date') }}
{{ '#' . $order->order_number }} {{ $order->billing_name }} {{ $order->billing_email }} {{ $order->billing_phone }} {{ $order->billing_address }} {{ $order->billing_city }} {{ is_null($order->billing_state) ? '-' : $order->billing_state }} {{ $order->billing_country }} {{ $order->shipping_name }} {{ $order->shipping_email }} {{ $order->shipping_phone }} {{ $order->shipping_address }} {{ $order->shipping_city }} {{ is_null($order->shipping_state) ? '-' : $order->shipping_state }} {{ $order->shipping_country }} {{ $order->currency_text_position == 'left' ? $order->currency_text . ' ' : '' }}{{ $order->total }}{{ $order->currency_text_position == 'right' ? ' ' . $order->currency_text : '' }} @if (is_null($order->discount)) - @else {{ $order->currency_text_position == 'left' ? $order->currency_text . ' ' : '' }}{{ $order->discount }}{{ $order->currency_text_position == 'right' ? ' ' . $order->currency_text : '' }} @endif @if (is_null($order->product_shipping_charge_id)) - @else {{ $order->shippingMethod }} @endif @if (is_null($order->shipping_cost)) - @else {{ $order->currency_text_position == 'left' ? $order->currency_text . ' ' : '' }}{{ $order->shipping_cost }}{{ $order->currency_text_position == 'right' ? ' ' . $order->currency_text : '' }} @endif {{ $order->currency_text_position == 'left' ? $order->currency_text . ' ' : '' }}{{ $order->tax }}{{ $order->currency_text_position == 'right' ? ' ' . $order->currency_text : '' }} {{ $order->currency_text_position == 'left' ? $order->currency_text . ' ' : '' }}{{ $order->grand_total }}{{ $order->currency_text_position == 'right' ? ' ' . $order->currency_text : '' }} {{ $order->payment_method }} @if ($order->payment_status == 'completed') {{ __('Completed') }} @elseif ($order->payment_status == 'pending') {{ __('Pending') }} @else {{ __('Rejected') }} @endif @if ($order->order_status == 'pending') {{ __('Pending') }} @elseif ($order->order_status == 'processing') {{ __('Processing') }} @elseif ($order->order_status == 'completed') {{ __('Completed') }} @else {{ __('Rejected') }} @endif {{ $order->createdAt }}
@endif
@endsection