{{-- A customer job card (docs/ui-kanban-board.md 4.1): customer bar, title that opens the job editor, responsible person, service unit, priority, due date, hours and the job's tasks, which open inside the card and can be marked done. Compact cards have three rows. --}} @props(['card', 'expanded' => false, 'compact' => false, 'canMove' => false, 'canColor' => false, 'canCheck' => false]) @use('App\Modules\Jobs\Presentation\Support\BoardFormat') @php $total = count($card->tasks); $done = $card->doneTaskCount(); @endphp
$compact, 'space-y-2 p-2.5' => ! $compact])>

@if ($compact)
@if ($total > 0) @endif
@else
@if ($card->serviceUnitName !== null) {{ $card->serviceUnitName }} @endif

@if ($card->isLate) @else {{ __('jobs.board.due', ['date' => BoardFormat::shortDate($card->dueOn)]) }} @endif {{ BoardFormat::cardHours($card) }}

@if ($total > 0)
@endif @endif @if ($total > 0)
$compact, 'mt-1.5' => ! $compact])>
@endif