@extends('layouts.vendor') @section('title', 'Order Details') @section('page-title', 'Order Details') @section('content')

Order #{{ $orderItem->order->order_number }}

{{ $orderItem->created_at->format('M d, Y H:i') }}

{{ ucfirst($orderItem->status) }}
{{-- Product Info --}}

{{ $orderItem->product_name }}

SKU: {{ $orderItem->product_sku ?? 'N/A' }}

Qty: {{ $orderItem->quantity }} × ${{ number_format($orderItem->price, 2) }}

Your earnings: ${{ number_format($orderItem->vendor_earnings, 2) }}

{{-- Customer Info --}}

Customer

{{ $orderItem->order->user->name }}

{{ $orderItem->order->user->email }}

Shipping Address

{{ $orderItem->order->shipping_name }}

{{ $orderItem->order->shipping_address }}

{{ $orderItem->order->shipping_city }}, {{ $orderItem->order->shipping_country }}

{{-- Update Status --}} @if(!in_array($orderItem->status, ['delivered', 'cancelled']))

Update Order Status

@csrf @method('PATCH')
@endif
@endsection