@extends('layouts.landing') @section('head') @include('layouts._partials.tablaStyle') @endsection @section('title', 'Mis Tareas') @section('content')
| Tarea | Materia | Grupo | Fecha límite | Status | Calificación | Tu entrega / Acción |
|---|---|---|---|---|---|---|
|
{{ $tarea->titulo }}
@if ($tarea->descripcion)
{{ Str::limit($tarea->descripcion, 80) }} @endif |
{{ $tarea->material->name }} | {{ $tarea->grupo->clave }} | @if ($tarea->fecha_entrega) {{ \Carbon\Carbon::parse($tarea->fecha_entrega)->format('d/m/Y') }} @if (\Carbon\Carbon::parse($tarea->fecha_entrega)->isPast()) Vencida @else Activa @endif @else Sin fecha @endif | @if ($status === 'sin_subir') Sin subir @elseif ($status === 'pendiente') Pendiente @else Calificada @endif |
@if ($status === 'calificada' && $entrega)
{{ number_format($entrega->calificacion, 1) }}
@if ($entrega->comentario)
{{ $entrega->comentario }} @endif @else — @endif |
@if ($status === 'sin_subir')
{{-- Formulario de entrega: texto y/o archivo --}}
@elseif ($status === 'pendiente' || $status === 'calificada')
{{-- Mostrar lo que entregó --}}
@if ($entrega?->texto)
{{ $entrega->texto }}
@endif
@if ($entrega?->archivo)
Ver archivo entregado
@endif
@if (!$entrega?->texto && !$entrega?->archivo)
Sin contenido registrado
@endif
@if ($status === 'pendiente')
Esperando calificación @endif @endif |