@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 name : {{ $sale->customer->name }}
Address : {{ $sale->customer->landmark }}
{{ $sale->customer->city }}
{{ $sale->customer->province->province_name }}
Mobile : {{ $sale->customer->mobile }}
Mobile 2 : {{ $sale->customer->mobile_2 }}
Landline : {{ $sale->customer->landline }}
Email : {{ $sale->customer->email }}
Invoice No : {{ $sale->invoice_no }}
Waybill No : {{ $sale->waybill->waybill_no }}
Delivery Status : {{ Str::title($sale->status) }}
Payment Status : {{ Str::title($sale->payment_status) }}
Created By : {{ $sale->user->full_name }}
@foreach ($sale_items as $item) @if (!empty($item->product->product_name)) @else @endif @endforeach
Product Name SKU Attribute Quantity Unit Price Line Total
{{ $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) }}
@if (!empty($call_status)) @foreach ($call_status as $status) @if (!empty($status->next_call_date)) @else @endif @endforeach @endif
Date Status Next Call Date Remark
{{ $status->call_date }} {{ $status->call_status }}{{ \Carbon\Carbon::parse($status->next_call_date)->format('Y-m-d') }}N/A{{ $status->remark }}
Order Total: ₨ {{ $sale->invoice_total }}
Discount: (-) ₨ {{ $sale->invoice_discount }}
Order Sub Total: ₨ {{ $sale->invoice_subtotal }}
Delivery Fee: (+) {{ $sale->delivery_fee == 0 ? 'Free of Charge' : '₨ ' . $sale->delivery_fee }}
Order Net Total: ₨ {{ $sale->invoice_nettotal }}
@endsection @section('scripts') @endsection