@extends('layouts.app') @section('title', 'Supplier Orders') @section('content')
Manage orders for your products
| Order # | Customer | Products | Amount | Status | Date | Actions |
|---|---|---|---|---|---|---|
| {{ $orderItem->order->order_number }} |
{{ $orderItem->order->user->name }} {{ $orderItem->order->company?->company_name }} |
{{ $orderItem->product_name }} Qty: {{ $orderItem->quantity }} |
R {{ number_format($orderItem->total_price, 2) }} | @php $statusColors = [ 'pending' => 'bg-yellow-100 text-yellow-800', 'confirmed' => 'bg-blue-100 text-blue-800', 'processing' => 'bg-purple-100 text-purple-800', 'shipped' => 'bg-indigo-100 text-indigo-800', 'delivered' => 'bg-green-100 text-green-800', 'cancelled' => 'bg-red-100 text-red-800', ]; @endphp {{ ucfirst($orderItem->order->status) }} | {{ $orderItem->created_at->format('d M Y') }} | @if(in_array($orderItem->order->status, ['pending', 'confirmed', 'processing'])) @endif |
Orders for your products will appear here.