@extends('template.layout')

@section('content')
    <h1 class="page-title">
        Justificación de Inasistencia del Profesor
    </h1>

    <div class="portlet light bordered">
        <div class="portlet-title">
            <div class="caption">
                <h1 class="caption-subject font-green sbold uppercase"> Listado de Inasistencias</h1>
            </div>

        </div>
        {{ Form::open(['route' => 'solicitud.justificacion.profesor','class'=>'form-horizontal','id' => 'form-solicitud']) }}

        <div class="portlet-body">
            <div class="row" style="margin-bottom: 1%">
                <div class="col-md-2" style="margin-bottom: 0">
                    <label class="control-label" style="padding-bottom: 5%">Cursos del docente:</label>
                    {!! Form::select('curso[]',$cursos,[],['class'=>'form-control placeholder-no-fix','id' => 'cursos','data-type' => '5','placeholder' => 'Seleccione']) !!}
                </div>
                {!! Form::hidden('list', null, array('id' => 'invisible_list')) !!}
            </div>
            <div class="Forum-ForumTopicList row" style="margin:20px">
                <table class="table table-hover nowrap dataTable dtr-inline collapsed tbPersonal"
                       id="tbHorario"
                       width="100%" role="grid" aria-describedby="tbPersonal_info" style="margin-bottom: 4% !important; text-align: center">
                    <thead class="thead-default">
                    <tr>
                        <th style="text-align: center">Selecione</th>
                        <th style="text-align: center">Estado</th>
                        <th style="text-align: center">C&oacute;digo</th>
                        <th style="text-align: center">Curso</th>
                        <th style="text-align: center">Secci&oacute;n</th>
                        <th style="text-align: center">Aula</th>
                        <th style="text-align: center">Fecha de inasistencia</th>
                        <th style="text-align: center">D&iacute;a</th>
                        <th style="text-align: center">Hora de inicio</th>
                        <th style="text-align: center">Hora de fin</th>
                    </tr>
                    </thead >
                    <tbody  style="text-align: center">
                    </tbody>
                </table>

                <div class="form-group" >
                    {!! Form::label('txt', 'Descripción') !!}
                    <div class="col-xs-12" style="margin-bottom: 20px;">{!! Form::textarea('descripcion', null, ['size' => '30x5','class' => 'form-control', 'style'=>'resize: none','required'=>'true']) !!}</div>
                </div>
                <div class="col-md-12" style="text-align: left">
                    <button type="submit" class="btn green solicitar">Solicitar</button>
                </div>
            </div>
        </div>


        {!! Form::close() !!}
    </div>

@endsection

@section('scripts')
    <script src="{{asset('css/icheck/icheck.min.js')}}" type="text/javascript"></script>
    <script src="{{asset('plugins/datatables/plugins/datatables.celledit.js')}}"></script>
    <script src="{{asset('plugins/datatables/plugins/datatables.sum.min.js')}}"></script>
    <script>
        var urlBase = "{{ url('justificacion/profesor') }}";
        var urlData = "{{route('listado.inasistencia.profesor')}}";
    </script>
    <script src="{{asset('js/pages/profesor.justificacion.js')}}" type="text/javascript"></script>
@endsection

