@if ($organizations) @endif
{{-- Work order KPIs --}}

Key figures

{{-- Master data KPIs --}}
@if ($counts['customers'] !== null) @endif @if ($counts['vendors'] !== null) @endif @if ($counts['sellers'] !== null) @endif @if ($counts['packages'] !== null) @endif
{{-- Live work order tracking (lazy, polls for updates) --}} @can('work-order.view') @endcan {{-- One dense grid: wide screens show tables (2/3) beside lists (1/3); medium screens show the tables full width and the three small cards side by side; phones stack everything. --}}
{{-- Requiring attention --}} View overdue
@forelse ($attention as $order) @empty @endforelse
Work orderCustomerDeadlineStatusAssigned
{{ $order->work_order_number }}

{{ $order->package_name_snapshot }}

{{ $order->customer?->displayName() }} {{ format_date($order->deadline_date) }}
{{ $order->assignedUser?->name ?? 'Unassigned' }}
{{-- Upcoming deadlines --}} All
    @forelse ($upcoming as $order)
  • {{ $order->work_order_number }}

    {{ $order->customer?->displayName() }}

    {{ format_date($order->deadline_date, 'M j') }}

  • @empty
  • @endforelse
{{-- Charts (lazy) --}}
All work orders
@forelse ($recentOrders as $order) @empty @endforelse
Work orderCustomerPackageOrder dateStatus
{{ $order->work_order_number }} {{ $order->customer?->displayName() }}

{{ $order->package_name_snapshot }}

{{ format_date($order->work_order_date) }}
@can('create', \App\Models\WorkOrder::class)Create the first work order@endcan
@php($mixTotal = max(1, array_sum($playMix)))
    @foreach (\App\Enums\PlayType::cases() as $type) @continue(! isset($playMix[$type->value]) && ! in_array($type, \App\Enums\PlayType::primary(), true)) @php($value = $playMix[$type->value] ?? 0)
  • {{ $value }} ({{ round($value / $mixTotal * 100) }}%)
  • @endforeach
@if ($counts['customers'] !== null)
    @forelse ($recentCustomers as $customer)
  • {{ $customer->displayName() }}

    {{ $customer->customer_number }} · {{ $customer->serviceAddress?->cityLine() }} · {{ format_relative($customer->created_at) }}

  • @empty
  • @endforelse
@endif