{{-- Componente: recent-orders Uso: --}} @props(['orders' => []])

Recent Orders

{{-- Toggle Search --}} {{-- Filters Dropdown --}}
{{-- Search Form (hidden by default) --}}
@forelse($orders as $order) @empty {{-- Filas de muestra cuando no hay datos --}} @endforelse
Order ID Customer Status Profit Created Value
{{ $order->order_number }}

{{ $order->plan ?? 'Standard' }}

{{ $order->customer->name ?? 'N/A' }}

{{ $order->customer->role ?? '' }}

@php $statusClasses = [ 'active' => 'bg-info-light text-info', 'pending' => 'bg-warning-light text-warning', 'completed' => 'bg-success-light text-success', 'cancelled' => 'bg-danger-light text-danger', ]; $statusClass = $statusClasses[$order->status] ?? 'bg-secondary-light text-secondary'; @endphp {{ ucfirst($order->status) }}

{{ $order->profit_percent ?? 0 }}%

{{ $order->created_at->diffForHumans() }} ${{ number_format($order->total, 2) }}
ORD.00925

Premium

Adam McCoy

Web developer

Active

13%

3 min ago $238,70
ORD.00924

Premium

Carol Ray

Digital Nomad

Pending

9%

9 min ago $1736,50
{{-- Pagination --}}
@if($orders instanceof \Illuminate\Pagination\LengthAwarePaginator) {{ $orders->links() }} @else @endif