@extends('layouts.main_docente') @php $usuario = \App\Usuario::find(session('id_usuario')); @endphp @section('header_content')

Tabla

@endsection @section('content')

Clase #{{ $clase->id_clase }}


@foreach ($clase->alumnos() as $alumno) @php $asistio = "button-1"; $no_asistio = "button-2"; $tiene_excusa = false; if ($alumno->asistencia) { if ($alumno->asistencia->asistio == 1) { $asistio = "button-success"; }else{ if ($alumno->asistencia->excusa == 1) $tiene_excusa = true; $no_asistio = "button-danger"; } }else{ $no_asistio = "button-danger"; } @endphp

{{ $alumno->tercero->getNameFull() }}

{{ $alumno->tercero->cedula }}

@endforeach

@php $fecha_actual = date('Y-m-d H:i:s'); $fecha_actual_mas_15 = date('Y-m-d H:i:s', strtotime($clase->fecha_fin." +15 minutes")); @endphp @if ($fecha_actual >= $clase->fecha_inicio and $fecha_actual <= $fecha_actual_mas_15) @else @endif
@csrf @endsection