@extends('layouts.vendor') @section('page-title', 'Orders') @push('styles') @endpush @section('content')
| Order # | Customer | Date | Items | Earnings | Status | Actions |
|---|---|---|---|---|---|---|
| {{ $order->order_number }} | {{ $order->customer->name }} | {{ $order->created_at->format('M d, Y') }} | {{ $order->items->where('vendor_id', auth()->user()->vendor->id)->sum('quantity') }} | {{ price($order->items->where('vendor_id', auth()->user()->vendor->id)->sum('vendor_earnings')) }} | {{ ucfirst($order->status) }} |
View
@if($order->status === 'pending')
@elseif($order->status === 'processing')
@elseif($order->status === 'shipped')
@endif
|
|
No orders yet |
||||||