@extends('layouts.app') @section('content')
{{ _lang('View Order Details') }}
@if($order->payment_status == $order::PAID)
{{ _lang('Order ID') }}: {{ $order->id }}
{{ _lang('Order Date') }}: {{ $order->created_at }}
{{ _lang('Delivery Status') }}: {!! xss_clean($order->getDeliveryStatus()) !!}
{{ _lang('Delivery Type') }}: {{ strtoupper($order->delivery_type) }}
{{ _lang('Delivery Time') }}: {{ $order->delivery_time }}
{{ _lang('Payment Method') }} {{ strtoupper(str_replace('_',' ',$order->payment_method)) }} {{ _lang('Transaction ID') }} {{ $order->transaction->transaction_id }} {{ _lang('Payment Date') }} {{ $order->transaction->created_at }}
@else
{{ _lang('Order ID') }}: {{ $order->id }}
{{ _lang('Order Date') }}: {{ $order->created_at }}
{{ _lang('Delivery Status') }}: {!! xss_clean($order->getDeliveryStatus()) !!}
{{ _lang('Delivery Type') }}: {{ strtoupper($order->delivery_type) }}
{{ _lang('Delivery Time') }}: {{ $order->delivery_time }}
{{ _lang('Payment Method') }} {{ strtoupper(str_replace('_',' ',$order->payment_method)) }} {{ _lang('Payment Status') }} {!! xss_clean($order->getPaymentStatus()) !!}
@endif
{{ _lang('Billing Details') }} {{ $order->customer_name }}

{{ $order->customer_email }}
{{ $order->customer_phone }}

{{ _lang('Shipping Address') }}

{{ $order->shipping_address }}

{{ _lang('Payment To') }} {{ get_option('company_name') }}

{{ get_option('email') }}
{{ get_option('phone') }}
{!! xss_clean(get_option('address')) !!}

{{ _lang('Description') }}
{{ _lang('Unit Price') }}
{{ _lang('Quantity') }}
{{ _lang('Amount') }}
@foreach($order->products as $product)
{{ $product->product->translation->name }}
{!! xss_clean(decimalPlace($product->unit_price, currency($order->currency))) !!}
{{ $product->qty }}
{!! xss_clean(decimalPlace($product->line_total, currency($order->currency))) !!}
@endforeach
@if($order->note != '')

{{ _lang('Extra Notes') }} {{ $order->note }}

@endif
{{ _lang('Sub Total') }} {!! xss_clean(decimalPlace($order->sub_total, currency($order->currency))) !!}
{{ _lang('Shipping') }} + {!! xss_clean(decimalPlace($order->shipping_cost, currency($order->currency))) !!}
{{ _lang('Discount') }} - {!! xss_clean(decimalPlace($order->discount, currency($order->currency))) !!}
{{ _lang('Total') }} {!! xss_clean(decimalPlace($order->total, currency($order->currency))) !!}
{{ _lang('Order Actions') }}
@csrf
@if($order->payment_status == $order::PENDING)
@endif
@endsection