@extends('layouts.vendor') @section('page-title', 'Order #' . $order->order_number) @push('styles') @endpush @section('content')
{{-- Page Header --}}
{{-- Main Content --}}
{{-- Items Table --}}
Your Items
{{ $order->items->where('vendor_id', auth()->user()->vendor->id)->count() }} item(s)
@php $vendorTotal = 0; @endphp @foreach($order->items->where('vendor_id', auth()->user()->vendor->id) as $item) @php $vendorTotal += $item->total; @endphp @endforeach
Product Qty Price Subtotal
{{ $item->product->name ?? 'Deleted' }} {{ $item->quantity }} {{ price($item->unit_price) }} {{ price($item->total) }}
Your Earnings {{ price($vendorTotal) }}
{{-- Sidebar --}}
{{-- Order Info --}}
Order Info
Status {{ ucfirst($order->status) }}
Payment {{ ucfirst($order->payment_status) }}
Date {{ $order->created_at->format('M d, Y') }}
{{-- Customer --}}
Customer

{{ $order->customer->name }}

{{ $order->customer->email }}

{{-- Shipping Address --}}
Shipping Address

{{ $order->shipping_address }}

{{ $order->shipping_city }}, {{ $order->shipping_state }} {{ $order->shipping_zip }}

{{-- Update Status --}}
Update Status
@csrf @method('PATCH')
@endsection