@extends('layouts.app') @section('title', 'Work orders') @section('content')
{{ $workOrders->total() }} job(s) in this view.
| Job | Customer | Type | Priority | Technician | Scheduled | Status | Materials | |
|---|---|---|---|---|---|---|---|---|
|
{{ $wo->work_order_number }}
{{ $wo->description }}
|
@if ($wo->customer)
{{ $wo->customer->display_name }}
@else
No customer
@endif
{{ $wo->site_address }}
|
{{ title_case_words($wo->type) }} | {{ $wo->priority }} | {{ $wo->technician?->name ?: 'Unassigned' }}
@if ($wo->technician)
{{ $wo->technician->jobs_today_count }} job(s) today
@endif |
{{ $wo->scheduled_start?->format('d M H:i') ?? '—' }} | {{ title_case_words($wo->status) }} | {{ money($wo->material_cost) }} | Open |
| @include('components.empty-state', ['icon' => '🔧', 'title' => 'No work orders found', 'message' => 'Create a job to dispatch a technician.', 'action' => '+ New work order']) | ||||||||