{{-- The customer-coloured top bar of a job card: the drag handle (wire:sort:handle) and a click target that opens the job editor. The keyboard opens the job from the title button below; the palette button changes the customer's colour for every card and the time sheet. --}} @props(['card', 'canMove' => false, 'canColor' => false]) @php $color = new \App\Modules\Shared\Domain\ValueObjects\HexColor($card->customerHeaderColor ?? '#23476a'); $light = $color->isLight(); @endphp
$canMove, 'cursor-pointer' => ! $canMove]) >
@if ($canMove)
$light, 'bg-white/20' => ! $light])>{{ $card->number }} @if ($canColor) @endif