@php use App\Enums\JobPriority; use App\Support\JobIntakeOptions; $input = 'mt-1 block w-full min-h-12 text-base rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500'; $chip = 'flex min-h-12 cursor-pointer select-none items-center gap-2 rounded-lg border border-gray-300 bg-white px-3 text-sm font-medium text-gray-700 has-[:checked]:border-indigo-600 has-[:checked]:bg-indigo-50 has-[:checked]:text-indigo-800'; $section = 'rounded-xl bg-white p-4 shadow-sm sm:p-6 space-y-4'; $original = $warranty->repairJob; @endphp ← Warranty check

New warranty job Warranty

@csrf

{{ $warranty->device->display_name }} · {{ $warranty->customer->name }}

Original repair: job {{ $original?->job_no }}@if ($warranty->invoice?->invoice_no), invoice {{ $warranty->invoice->invoice_no }}@endif.

Covered: {{ $warranty->description }} until {{ $warranty->ends_on->format('d M Y') }} ({{ $warranty->daysLeft() }} days left).

@if ($warranty->claims->isNotEmpty())

Already claimed on: {{ $warranty->claims->pluck('job_no')->join(', ') }}

@endif

The new job has no charge by default.

What is wrong now

Accessories received

@foreach (JobIntakeOptions::ACCESSORIES as $key => $label) @endforeach
@foreach (JobPriority::cases() as $p) @endforeach

After saving, assign the technician from the job page.