@extends('layouts.app') @section('title', __('dashboard.sales_focus.recent_embroidery_orders')) @section('page_heading', __('dashboard.sales_focus.recent_embroidery_orders')) @section('content')
{{ __('dashboard.sales_focus.title') }}

{{ __('dashboard.sales_focus.recent_embroidery_orders') }}

{{ __('dashboard.sales_focus.current_user') }}: {{ $user->name }}
{{ __('dashboard.sales_focus.last_x_minutes', ['minutes' => $minutes]) }} {{ $orders->count() }} {{ __('dashboard.sales_focus.records') }}
{{ __('dashboard.sales_focus.total_estimated') }}
{{ number_format($orders->sum('estimated_price'), 2) }}
{{ $orders->count() }} {{ __('dashboard.sales_focus.order') }}
{{ __('dashboard.sales_focus.recent_embroidery_orders') }}
{{ __('dashboard.sales_focus.last_x_minutes', ['minutes' => $minutes]) }}
@forelse($orders as $order) @php $status = $order->status ?? ''; [$sBg, $sColor] = match($status) { 'completed' => ['#f0fdf4','#16a34a'], 'in_progress' => ['#eff6ff','#2563eb'], 'cancelled' => ['#f1f5f9','#475569'], default => ['#fffbeb','#d97706'], }; $sLabel = match($status) { 'completed' => __('dashboard.Completed'), 'in_progress' => __('dashboard.In Progress'), 'cancelled' => __('dashboard.Cancelled'), default => ($status ?: __('dashboard.Pending')), }; @endphp @empty @endforelse
# {{ __('dashboard.Reference') }} {{ __('dashboard.Customer') }} {{ __('dashboard.Title') }} {{ __('dashboard.Status') }} {{ __('dashboard.Estimated Price') }} {{ __('dashboard.Time') }}
{{ $order->id }} {{ $order->reference_code ?? '-' }} @if($order->customer_id) {{ $order->customer?->name ?? '-' }} @else - @endif {{ $order->title ?? '-' }} {{ $sLabel }} {{ number_format((float)$order->estimated_price, 2) }} {{ $order->created_at?->format('H:i:s') }} @canany(['view products', 'create products']) @endcanany
{{ __('dashboard.sales_focus.no_records_in_window') }}
@endsection @section('scripts') @endsection