@extends('layouts.landing') @section('head') @include('layouts._partials.tablaStyle') @endsection @section('title', 'Detalle de Tarea') @section('content')
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| Alumno | Status | Entrega | @hasrole('Docente')Calificar / Calificación | @endhasrole @hasrole('Coordinación académica')Calificación | @endhasrole
|---|---|---|---|---|
| {{ $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
|
{{-- Docente: puede calificar --}}
@hasrole('Docente')
@if ($entrega && in_array($entrega->status, ['pendiente', 'calificada'])) @else Sin entrega aún @endif | @endhasrole {{-- Coordinación: solo lectura de calificación --}} @hasrole('Coordinación académica')
@if ($entrega?->status === 'calificada')
{{ number_format($entrega->calificacion, 1) }}
@if ($entrega->comentario)
{{ $entrega->comentario }} @endif @else — @endif |
@endhasrole