{% extends 'inc/base.html.twig' %}
{% block body %}
<div class="container-fluid">
<div class="row">
<div class="col-lg-12 col-md-6">
<h3>Educador: {{ datos_educa.id_ed }}&nbsp;-&nbsp;{{ datos_educa.ape_ed}}&nbsp;{{ datos_educa.nom_ed }}</h3>
<strong style="font-size: larger">Curso:&nbsp;{{ datos_educa.id_curso }} </strong>
<a href="{{ constant('URLROOT2') }}/educadores/" class="btn btn-danger pull-right"><i class="fa fa-backward"></i> Regresar</a>
</div>
</div>

<div class="row">
<div class="col-lg-12 col-md-6">
<hr style="width: 100%; height: 4px; background-color: #006699">
</div>
</div>

<div class="row">
<div class="col-lg-9 col-md-6">
<h1 class="text-primary">ESCRITORIO</h1>
<div class="col-md-12 mt-3">

    <form action="{{ constant('URLROOT2') }}/lms/EduAnuncioCrear" method="post">
    <input id="id_Educa" type="hidden" name="id_idd" value="{{ datos_educa.id_asiste }}">
    <input id="id_Educa" type="hidden" name="id_Educa" value="{{ datos_educa.id_ed }}">
    <input id="id_Curso" type="hidden" name="id_Curso" value="{{ datos_educa.id_curso }}">
    <input class="form-control" tabindex="3" type="text" id="id_Anun" name="id_Anun" placeholder="Enviar anuncio a toda la clase" required />
    <input class="btn btn-primary btn-sm" tabindex="11" id="btnguardar" type="submit" value="Enviar el Anuncio">
    </form>

<table class="table table-striped table-hover table-sm">
<tbody>

{% for anuncio in anuncios %}
        <tr class="d-flex">
            <td class='col-sm-7 text-left'>{{ anuncio.anuncio }}</td>
            <td class='col-sm-3 text-center'>{{ anuncio.created_at | date('d/m/Y') }}</td>
            <td class='col-sm-2 text-center'>
            <a href="" class="button btn btn-danger btn-sm" data-id="{{ anuncio.id }}" data-token="" data-ruta="{{ constant('URLROOT2') }}/lms/EduAnuncioDel/{{ anuncio.id }}${{ datos_educa.id_asiste }}"  data-toggle="tooltip" data-placement="top" title="Eliminar Registro"><i class="fa fa-trash"></i></a>
            </td>
        </tr>
{% endfor %}

</tbody>
</table>



</div>
</div>
<div class="col-lg-3 col-md-6">

    <div class="col-lg-12 col-md-6">
    <div class="card">
    <h5 class="card-header text-white text-center" style="background-color: #007A00" >Actividades</h5>
    <div class="card-body text-center" style="background-color: #004C00">
    <i class="fas fa-chalkboard-teacher fa-2x text-white"></i>
    </div>
    <a onclick="procesando();" style="background-color: #007A00;color:#FFFFFF;" href="{{ constant('URLROOT2') }}/lms/instrumentos/{{ datos_educa.id_curso }}" data-toggle="tooltip" data-placement="top" >
    <div class="card-footer text-white text-center" style="background-color: #007A00">
                                <span class="pull-left"><b>Detalles</b></span>
                                <span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span>
                                <div class="clearfix"></div>
                            </div>
    </a>
    </div>
    </div>

    <div class="col-lg-12 col-md-6">
    <div class="card">
    <h5 class="card-header text-white text-center" style="background-color: #005CB8" >Estudiantes</h5>
    <div class="card-body text-center" style="background-color: #004E75">
    <i class="fas fa-address-card fa-2x text-white"></i>
    </div>
    <a onclick="procesando();" style="background-color: #007A00;color:#FFFFFF;" href="{{ constant('URLROOT2') }}/lms/estudiantes/{{ datos_educa.id_curso }}" data-toggle="tooltip" data-placement="top" >

                            <div class="card-footer text-white text-center" style="background-color: #005CB8">
                                <span class="pull-left"><b>Detalles</b></span>
                                <span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span>
                                <div class="clearfix"></div>
                            </div>
    </a>
    </div>
    </div>

    <div class="col-lg-12 col-md-6">
    <div class="card">
    <h5 class="card-header text-white text-center" style="background-color: #5E5E8D" >Calificaciones</h5>
    <div class="card-body text-center" style="background-color: #3D3D5C">
    <i class="fas fa-user-edit fa-2x text-white"></i>
    </div>
                            <div class="card-footer text-white text-center" style="background-color: #5E5E8D">
                                <span class="pull-left"><b>Detalles</b></span>
                                <span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span>
                                <div class="clearfix"></div>
                            </div>
    </div>
    </div>



</div>
</div>

</div>
{% endblock %}
