@extends('layout.master') @section('css') @endsection @section('main_content')

Order's Management manage records...

@php use App\Models\Admin\ProductAttribute; use App\Models\Admin\Order; use Illuminate\Support\Str; @endphp @if(Session::has('flash_message_error')) @endif @if(Session::has('flash_message_success')) @endif
@if(isset($orderDetails['order_id']) && $orderDetails['order_id']!='')
Order #{{$orderDetails['order_id']}} {{ date('d F Y h:ia',strtotime($orderDetails['created_at'])) }}
{{-- Generate Label Button --}}
@csrf
Order Details
Order #:
{{$orderDetails['order_id']}} @if(isset($original_orderid) && $original_orderid!="") (Exchange against #{{$original_orderid}}) @endif
Order Date & Time:
{{ date('d F Y h:ia',strtotime($orderDetails['created_at'])) }}
Order Status:
{{$orderDetails['order_status']}}
@if(isset($orderDetails['cancel_reason']) && $orderDetails['cancel_reason']!='')
Cancel Reason:
{{$orderDetails['cancel_reason']}}
@endif
Payment Method:
{{$orderDetails['payment_method']}}
@if(!empty($orderDetails['delivery_method']))
Shipping Partner:
{{$orderDetails['delivery_method']}}
@endif
Forward Tracking:
{{$orderDetails['awb_number']}}
Backward Tracking:
{{$orderDetails['way_bill']}}
@if($orderDetails['exchange_price']>0)
Exchange Price:
{{$orderDetails['currency_symbol']}} {{formatAmt($orderDetails['exchange_price'])}}
@endif
Grand Total:
{{$orderDetails['currency_symbol']}} {{formatAmt($orderDetails['grand_total']+$orderDetails['express_shipping_charge'])}}
Shipping Address
Name:
{{$orderDetails['name'] ?? ''}}
Email:
{{$orderDetails['email'] ?? ''}}
Mobile Number:
{{$orderDetails['mobile'] ?? ''}}
#{{$orderDetails['address_line_1'] ?? ''}}
{{$orderDetails['address_line_2'] ?? ''}}
Order Products
@php $priceArr = []; @endphp @foreach($orderDetails['order_products'] ?? [] as $product) @php $priceArr[] = $product['subtotal'] ?? 0; @endphp @endforeach
Product Name Product Size SKU MRP Discount Price (Per Unit) Quantity Sub Total
{{ $product['product_name'] ?? '' }} {{ $product['product_size'] ?? '' }} {{ $product['product_sku'] ?? '' }} {{ $orderDetails['currency_symbol'] ?? '' }} {{ formatAmt($product['mrp'] ?? 0) }} {{ $product['discount'] ?? 0 }} % {{ $orderDetails['currency_symbol'] ?? '' }} {{ formatAmt($product['product_price'] ?? 0) }} {{ $product['product_qty'] ?? 0 }} {{ $orderDetails['currency_symbol'] ?? '' }} {{ formatAmt($product['subtotal'] ?? 0) }}
@if(!empty($orderDetails['comments']))
Comments:
{{$orderDetails['comments']}}
@endif
Order Summary
@if(!empty($orderDetails['coupon_code']))
Coupon Code:
{{$orderDetails['coupon_code']}}
@endif
Sub Total:
{{$orderDetails['currency_symbol']}} {{formatAmt(floatval($orderDetails['subtotal']))}}
@if($orderDetails['coupon_discount'] >0)
Coupon Discount:
- {{$orderDetails['currency_symbol']}} {{formatAmt($orderDetails['coupon_discount'])}}
@endif @if($orderDetails['credit_amount'] >0)
Stylestry Credit:
{{$orderDetails['currency_symbol']}} {{formatAmt($orderDetails['credit_amount'])}}
@endif @if($orderDetails['prepaid_discount'] >0)
Prepaid Discount:
- {{$orderDetails['currency_symbol']}} {{formatAmt($orderDetails['prepaid_discount'])}}
@endif @if($orderDetails['offer_discount'] >0)
Offer Discount:
- {{$orderDetails['currency_symbol']}} {{formatAmt($orderDetails['offer_discount'])}}
@endif @if($orderDetails['cod_charges'] >0 && $orderDetails['payment_status'] =='cod')
COD Charges:
+ {{$orderDetails['currency_symbol']}} {{formatAmt($orderDetails['cod_charges'])}}
@endif @if($orderDetails['shipping_charges'] >0)
Shipping Charges:
+ {{$orderDetails['currency_symbol']}} {{formatAmt($orderDetails['shipping_charges'])}}
@endif
Express Shipping:
+ {{$orderDetails['currency_symbol']}} {{formatAmt($orderDetails['express_shipping_charge'])}}
@if($orderDetails['taxes'] >0)
GST (Included):
{{$orderDetails['currency_symbol']}} {{round($orderDetails['taxes'],2)}}
@endif @if($orderDetails['cashback_amount']>0)
Cashback Amount:
{{$orderDetails['currency_symbol']}} {{formatAmt($orderDetails['cashback_amount'])}}
@endif
Grand Total:
{{$orderDetails['currency_symbol']}} {{formatAmt($orderDetails['grand_total']+$orderDetails['express_shipping_charge'])}}
@else

Order detail not found!

@endif
@endsection @section('scripts') @endsection