@props([ 'course', 'group', 'cycle', 'time', 'campus' => null, 'status' => 'open', 'statusMessage' => '', 'statusLabel' => null, 'interactive' => true, ]) @php $resolvedLabel = $statusLabel ?? match ($status) { 'recorded' => 'Ya registrada', 'too_early' => 'Aún no disponible', 'expired' => 'Vencida', default => 'Disponible', }; $statusTone = match ($status) { 'recorded' => 'info', 'too_early' => 'warning', 'expired' => 'neutral', default => 'success', }; $tag = $interactive ? 'button' : 'article'; @endphp <{{ $tag }} {{ $attributes->class([ 'kiosk-assignment-card', 'is-'.$status, 'is-static' => ! $interactive, ]) }} @if ($interactive && $status !== 'open') type="button" disabled @elseif ($interactive) type="button" @endif >

{{ $course }}

{{ $resolvedLabel }}
Grupo {{ $group }} Ciclo {{ $cycle }} {{ $time }} @if ($campus) {{ $campus }} @endif
@if ($interactive && ($statusMessage !== '' || $status === 'open'))

@if ($statusMessage !== '') {{ $statusMessage }} @else Toca para registrar @endif

@endif