@extends('layouts.landing') @section('head') @include('layouts._partials.tablaStyle') @endsection @section('title', 'Detalle de Tarea') @section('content')
{{-- Info de la tarea --}}
{{ $tarea->titulo }} — {{ $material->name }} · Grupo: {{ $grupo->clave }}
Regresar
@if (session('info'))
{{ session('info') }}
@endif @if ($tarea->descripcion)

Instrucciones: {{ $tarea->descripcion }}

@endif @if ($tarea->fecha_entrega)

Fecha límite: {{ \Carbon\Carbon::parse($tarea->fecha_entrega)->format('d/m/Y') }} @if (\Carbon\Carbon::parse($tarea->fecha_entrega)->isPast()) Vencida @else Activa @endif

@endif
{{-- Entregas de alumnos --}}
Entregas de alumnos
@hasrole('Docente') @endhasrole @hasrole('Coordinación académica') @endhasrole @foreach ($alumnos as $alumno) @php $entrega = $entregas[$alumno->id] ?? null; @endphp {{-- Docente: puede calificar --}} @hasrole('Docente') @endhasrole {{-- Coordinación: solo lectura de calificación --}} @hasrole('Coordinación académica') @endhasrole @endforeach
Alumno Status EntregaCalificar / CalificaciónCalificación
{{ $alumno->alumnos->first()?->apellidoPaterno }} {{ $alumno->alumnos->first()?->apellidoMaterno }} {{ $alumno->alumnos->first()?->name }} @if (!$entrega || $entrega->status === 'sin_subir') Sin subir @elseif ($entrega->status === 'pendiente') Pendiente @else Calificada @endif @if ($entrega && ($entrega->texto || $entrega->archivo)) @if ($entrega->texto)
{{ $entrega->texto }}
@endif @if ($entrega->archivo) Ver archivo @endif @else Sin entrega @endif
@if ($entrega && in_array($entrega->status, ['pendiente', 'calificada']))
@csrf
@else Sin entrega aún @endif
@if ($entrega?->status === 'calificada') {{ number_format($entrega->calificacion, 1) }} @if ($entrega->comentario)
{{ $entrega->comentario }} @endif @else @endif
@endsection @section('scripts') @include('layouts._partials.tablaScript') @endsection