@extends('layouts.adminLayout.backendLayout') @section('content')

Order's Management

@if(Session::has('flash_message_error')) @endif @if(Session::has('flash_message_success')) @endif
Order #{{$orderDetails['id']}} {{ date('d F Y h:ia',strtotime($orderDetails['created_at'])) }}
Order Details
Order #:
{{$orderDetails['id']}}
Order Date & Time:
{{ date('d F Y h:ia',strtotime($orderDetails['created_at'])) }}
Order Status:
{{$orderDetails['order_status']}}
Payment Method:
{{$orderDetails['payment_method']}}
Grand Total:
Rs. {{formatAmt($orderDetails['grand_total'])}}
User Information
Name:
{{$orderDetails['getuser']['name']}}
@if($orderDetails['getuser']['user_type'] =="normal")
Email:
{{$orderDetails['getuser']['email']}}
@endif
State:
{{$orderDetails['getuser']['state']}}
City:
{{$orderDetails['getuser']['city']}}
Mobile Number:
{{$orderDetails['getuser']['mobile']}}
Billing Address
{{$orderDetails['order_address']['billing_name']}}
#{{$orderDetails['order_address']['billing_address']}}
{{$orderDetails['order_address']['billing_address2']}}
{{$orderDetails['order_address']['billing_state']}}
{{$orderDetails['order_address']['billing_city']}}
{{$orderDetails['order_address']['billing_postcode']}}
{{$orderDetails['order_address']['billing_mobile']}}
Shipping Address
{{$orderDetails['order_address']['shipping_name']}}
#{{$orderDetails['order_address']['shipping_address']}}
{{$orderDetails['order_address']['shipping_address2']}}
{{$orderDetails['order_address']['shipping_state']}}
{{$orderDetails['order_address']['shipping_postcode']}}
{{$orderDetails['order_address']['shipping_city']}}
{{$orderDetails['order_address']['shipping_mobile']}}
Update Order Status
@csrf
Order History
@foreach($orderDetails['histories'] as $history)

{{$history['order_status']}}

@if($history['order_status'] =="Successful")
AWB Number:-   {{$history['awb_number']}}
Invoice No:-   {{$history['invoice_no']}}
@endif {{$history['comments']}}
Updated at {{$history['created_at']}}
@endforeach
Order Products
@foreach($orderDetails['order_products'] as $key => $product)
Fatal error: Uncaught Error: Class 'App\CustomFunction' not found in /home/acb20f5/public_html/alp/resources/views/admin/orders/order-view.blade - Copy.php:799 Stack trace: #0 {main} thrown in /home/acb20f5/public_html/alp/resources/views/admin/orders/order-view.blade - Copy.php on line 799
Product Image Product Name Product Size Sku MRP Discount Price(Per Unit) CGST SGST IGST Quantity Sub Total
@if(isset($product['productdetail']['product_image'])) @endif @if(isset($product['productdetail']['seo_url'])) {{$product['product_name']}} @else {{$product['product_name']}} @endif {{$product['product_size']}} {{$product['product_sku']}} Rs. {{formatAmt($product['mrp'])}} {{$product['discount']}} % Rs. {{ abs(formatAmt(CustomFunction::gstunitcalculate($product['product_price'],$product['product_gst'],1)))}} (0%) Rs.0 (0%) Rs.0 {{ round(CustomFunction::igstcalculate($product['product_price'],$product['product_gst'],$product['product_qty']),2)}} ( {{ $product['product_gst'] }}%) {{$product['product_qty']}} Rs. {{formatAmt($product['subtotal']) }}