@extends('admin.layout.layout') @section('content')
@if(Session::has('success_message')) @endif

Order Details

@if(!empty($orderDetails['coupon_code']))
@endif

Customer Details

@if(!empty($userDetails['address']))
@endif @if(!empty($userDetails['city']))
@endif @if(!empty($userDetails['state']))
@endif @if(!empty($userDetails['country']))
@endif @if(!empty($userDetails['pincode']))
@endif

Delivery Address

@if(!empty($orderDetails['address']))
@endif @if(!empty($orderDetails['city']))
@endif @if(!empty($orderDetails['state']))
@endif @if(!empty($orderDetails['country']))
@endif @if(!empty($orderDetails['pincode']))
@endif

Update Order Status

@if(Auth::guard('admin')->user()->type!="vendor")
@csrf

@foreach($orderLog as $key => $log) {{ $log['order_status'] }} @if(isset($log['order_item_id'])&&$log['order_item_id']>0) @php $getItemDetails = OrdersLog::getItemDetails($log['order_item_id']) @endphp - for item {{ $getItemDetails['product_code'] }} @if(!empty($getItemDetails['courier_name']))
Courier Name: {{ $getItemDetails['courier_name'] }} @endif @if(!empty($getItemDetails['tracking_number']))
Tracking Number: {{ $getItemDetails['tracking_number'] }} @endif @endif
{{ date('Y-m-d h:i:s', strtotime($log['created_at'])); }}

@endforeach @else This feature is restricted. @endif

Ordered Products

@if(Auth::guard('admin')->user()->type!="vendor") @endif @foreach($orderDetails['orders_products'] as $product) @if(Auth::guard('admin')->user()->type!="vendor") @if($product['vendor_id']>0) @else @endif @endif @if($product['vendor_id']>0) @else @endif @endforeach
Product Image Code Name Size Color Unit Price Product Qty Total PriceProduct byCommission Final Amount Item Status
@php $getProductImage = Product::getProductImage($product['product_id']) @endphp {{ $product['product_code'] }} {{ $product['product_name'] }} {{ $product['product_size'] }} {{ $product['product_color'] }} {{ $product['product_price'] }} {{ $product['product_qty'] }} @if($product['vendor_id']>0) @if($orderDetails['coupon_amount']>0) @php $couponDetails = Coupon::couponDetails($orderDetails['coupon_code']) @endphp @if($couponDetails['vendor_id']>0) {{ $total_price = $product['product_price']*$product['product_qty']-$item_discount }} @else {{ $total_price = $product['product_price']*$product['product_qty'] }} @endif @else {{ $total_price = $product['product_price']*$product['product_qty'] }} @endif @else {{ $total_price = $product['product_price']*$product['product_qty'] }} @endif Vendor Admin{{ $commission = round($total_price * $product['commission']/100,2) }} {{ $total_price - $commission }}0 {{ $total_price }}
@csrf
@include('admin.layout.footer')
@endsection