@extends('layouts.master') @section('page_title', 'View Order') @section('title', 'Order Details') @section('main_item', 'Orders') @section('sub_item', 'Order Details') @section('content')

Order Details : (Invoice Number : #{{ $sale->invoice_no }})

Customer: {{ $sale->customer->name }}
Mobile: {{ $sale->customer->mobile }} / @if (!empty($sale->customer->mobile_2)) {{ $sale->customer->mobile_2 }} @else N/A @endif
Address: {{ $sale->customer->landmark }}
@if ($sale->customer->city_id) @if ($sale->customer->city_id->name_en != 'Other')

{{ $sale->customer->city_id->name_en }}

@else

{{ $sale->customer->other_city }}

@endif @else

{{ $sale->customer->other_city }}

@endif {{ !empty($sale->customer->district) ? $sale->customer->district->name_en : 'N/A' }}
{{ $sale->customer->state }} @if ($sale->customer->country) {{ $sale->customer->country->nicename }} @endif
Order Date: {{ $sale->sale_date }}
Order out for Delivery Date: {{ !empty($sale->out_for_delivery) ? Carbon\Carbon::parse($sale->out_for_delivery)->format('Y-m-d H:i:s') : '_' }}
Dispatch Date: {{ !empty($sale->dispacth_date) ? $sale->dispacth_date : '_' }}
Delivery Date: {{ !empty($sale->delivery_date) ? $sale->delivery_date : '_' }}
@if (!empty($sell_return->return_date)) Returned Date: {{ !empty($sell_return->return_date) ? Carbon\Carbon::parse($sell_return->return_date)->format('Y-m-d H:i:s') : '_' }}
@endif Created By: {{ !empty($sale->users->username) ? $sale->users->username : '_' }}
Invoice No: {{ $sale->invoice_no }}
Waybill No: @if (!empty($sale->waybill_no)) {{ $sale->waybill_no }} @else N/A @endif
Delivery Status: @if ($sale->status == 'in_transit') Out for Delivery @else {{ Str::title($sale->status) }} @endif
Payment Status: {{ Str::title($sale->payment_status) }}
@if (!empty($sale->user->full_name)) Created By: {{ $sale->user->full_name }}
@endif
@foreach ($sale_items as $item) @if (!empty($item->product->product_name)) @else @endif @endforeach
Image Product Name SKU Attribute Quantity Unit Price Line Total
@php $product = App\Product::find($item->product_id); if (!empty($product->parent_product_id)) { $product = App\Product::find($product->parent_product_id); } @endphp @if (!empty($product->image)) @else @endif {{ $item->product->product_name }} {{ $item->product->sku }} @if (!empty($item->product->attribute->attribute_name)) {{ $item->product->attribute->attribute_name }} {{ $item->attribute_value }} @else Single @endif {{ $item->qty }} {{ $item->product->unit->short_name }} {{ number_format($item->sale_unit_price, 2) }} {{ number_format($item->sale_line_total, 2) }}

Sale Note:

{{ $sale->sale_note }}
@can('order_discount') @endcan @can('order_commission_agent') woocommerce_user_wise_report != '1') style="display: none" @endif> @endcan
Order Sub Total: {{-- {{ !empty($sale->currency_type) ? App\PaymentAccount::CURRENCIES[$sale->currency_type] : '$' }} --}} Rs. {{ number_format($sale->invoice_total, 2) }}
Discount: (-) Rs. {{ number_format($sale->invoice_discount, 2) }}
Delivery Fee: (+) @if ($sale->fake_delivery == 0) Free of Charge @else Rs. {{ number_format($sale->fake_delivery, 2) }} @endif
Agent Commission: (+) @if ($sale->agent_commission == 0) Free of Charge @else Rs. {{ number_format($sale->agent_commission, 2) }} @endif
Order Net Total: Rs. {{ number_format($sale->invoice_nettotal, 2) }}
@endsection @section('scripts') @endsection