@php $misJustificaciones = $tarea->justificaciones->where('user_id', auth()->id()); @endphp @if ($misJustificaciones->count() > 0)
{{ Str::limit($justificacion->motivo, 60) }}
@php $justificacionColors = [ 'sin_revisar' => 'bg-yellow-100 text-yellow-800', 'revisada' => 'bg-green-100 text-green-800', ]; $justificacionClass = $justificacionColors[$justificacion->estado] ?? 'bg-gray-100 text-gray-800'; $estadoText = $justificacion->estado === 'sin_revisar' ? 'Pendiente' : 'Revisada'; @endphp {{ $estadoText }}{{ \Carbon\Carbon::parse($justificacion->fecha_justificacion)->timezone('America/Lima')->format('d/m/Y H:i') }}
@if ($justificacion->evidencia)Observación del Admin:
{{ $justificacion->observacion_admin }}
No hay justificaciones registradas
@if (in_array($tarea->estado, ['pendiente', 'reabierto', 'en_revision'])) @endif