Phase 1, item 5: - New page /jobs/quick (Pikavastaanotto): customer (search or quick add), name, short description, service unit, responsible person and starting status (Alustava or Prospekti) in one column. The job is created with CreateCustomerJob, so numbering, reference checks and history are the same as on the full form. - After saving, the form clears for the next job (responsible person and status stay), and a status message with the job number and links to the job and its edit page takes focus. - The customer search of the job form moves to a PicksCustomer trait and an <x-jobs.customer-picker> component shared by both pages. - Menu link and a list button for users who may open jobs; nav items accept several route patterns. - PHPStan ignores unused-trait only for Livewire Concerns, which are used from excluded single-file components. - Spec and CLAUDE.md updated. Co-Authored-By: Claude Opus 5.5 <[email protected]>
16 lines
681 B
PHP
16 lines
681 B
PHP
{{-- Main menu link. The current page is marked with aria-current and an underline, not colour alone. --}}
|
|
@php($current = request()->routeIs(...(array) $pattern))
|
|
|
|
<a
|
|
href="{{ route($route) }}"
|
|
wire:navigate
|
|
@if ($current) aria-current="page" @endif
|
|
@class([
|
|
'rounded-md px-3 py-2 text-sm font-medium focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700',
|
|
'text-zinc-900 underline decoration-2 underline-offset-8 dark:text-white' => $current,
|
|
'text-zinc-600 hover:bg-zinc-100 hover:text-zinc-900 dark:text-zinc-300 dark:hover:bg-zinc-700 dark:hover:text-white' => ! $current,
|
|
])
|
|
>
|
|
{{ $label }}
|
|
</a>
|