@extends('admin.layouts.main') @php $page_name = 'Order Details'; @endphp @section('style') @endsection @section('content')
Shipment Actions
{{-- Shiprocket Buttons: Create AWB, Pickup, Manifest, Labels --}} @if ($order->active != 0) {{-- Cancel Order --}}
@csrf
{{-- Edit Pickup Address --}} {{-- Edit Pickup Address --}} {{-- Edit Shipping Address --}} {{-- Edit Shipping Address --}} {{-- Create AWB if not generated --}} @if (is_null($order->awb_code) || $order->awb_code == '')
@csrf
@endif {{-- Generate Pickup --}} @if ((is_null($order->pickup_scheduled_date) || $order->pickup_scheduled_date == '') && $order->awb_code != '')
@csrf
@endif {{-- Generate Manifest --}} {{-- @if ((is_null($order->manifest_generated) || $order->manifest_generated == '') && $order->pickup_scheduled_date != '') Generate Manifest @endif --}} {{-- Generate Labels --}} @if ((is_null($order->label_url) || $order->label_url == '') && $order->awb_code != '')
@csrf
@endif @else {{-- Clone Button for Inactive Orders --}}
@csrf
@endif @if ($order->awb_code != '')
@csrf
Track Shipment @endif {{-- --}}

Order Details

Shiprocket Order ID: #{{ $order->order_id }}
Order ID: #{{ $order->checkout->payment_order_id }}

Customer Name: {{ $order->checkout->user->name ?? 'N/A' }}

Contact: {{ $order->checkout->user->mobile ?? 'N/A' }}

Shipping Address:
  • Line 1: {{ $order->checkout->shippingAddress->line1 ?? 'N/A' }}
  • Line 2: {{ $order->checkout->shippingAddress->line2 ?? 'N/A' }}
  • City: {{ $order->checkout->shippingAddress->city ?? 'N/A' }}
  • District: {{ $order->checkout->shippingAddress->district ?? 'N/A' }}
  • State: {{ $order->checkout->shippingAddress->state ?? 'N/A' }}
  • Pincode: {{ $order->checkout->shippingAddress->pincode ?? 'N/A' }}
  • Country: {{ $order->checkout->shippingAddress->country ?? 'N/A' }}
Product Details
@php $grandTotal = 0; @endphp @foreach ($order->checkout->checkoutProducts as $index => $item) @php $quantity = $item->quantity; $baseAmount = $item->sales_price * $quantity - $item->discount + $item->branding_cost * $quantity + $item->shipping_cost; $cgst = ($baseAmount * $item->cgst_percent) / 100; $sgst = ($baseAmount * $item->sgst_percent) / 100; $total = $baseAmount + $cgst + $sgst; $grandTotal += $total; @endphp @endforeach
# Product Name Quantity Sales Price Discount Branding Cost Shipping Cost Total
{{ $index + 1 }} {{ $item->product_name }} {{ $quantity }} ₹{{ number_format($item->sales_price, 2) }} ₹{{ number_format($item->discount, 2) }} ₹{{ number_format($item->branding_cost * $quantity, 2) }} ₹{{ number_format($item->shipping_cost, 2) }} ₹{{ number_format($total, 2) }}
(CGST: ₹{{ number_format($cgst, 2) }}, SGST: ₹{{ number_format($sgst, 2) }})
Grand Total (with GST) ₹{{ number_format($grandTotal, 2) }}
@endsection @section('script') @endsection