<?php $__env->startSection('content'); ?>

    <div class="row margin-bottom-40 about-header" style="background-image: url(<?php echo e(asset('img/iniciobg.png')); ?>); background-position: center;">
        <div class="col-md-12">
            <h1><?php echo e(config('constants.SISTEMAS')[config('constants.GENERAL.SISTEMA')]); ?></h1>
            <h2><?php echo e(config('constants.INSTITUCIONES')[config('constants.GENERAL.INSTITUCION')]); ?></h2>
        </div>
    </div>

    <h1 class="page-title">
        Accesos R&aacute;pidos
    </h1>
    <div class="row">
        <?php if(Auth::user()->hasRole('Administrador')): ?>
            <div class="col-lg-3 col-md-6 col-sm-6 col-xs-12 foro-responsive">
                <a class="dashboard-stat dashboard-stat-v2 green" href="<?php echo e(url('asistencia/personal')); ?>">
                    <div class="visual">
                        <i class="fa fa-comments"></i>
                    </div>
                    <div class="details">
                        <div class="number">
                            <span> Asistencia </span>
                        </div>
                        <div class="desc"> Asistencia del Personal </div>
                    </div>
                </a>
            </div>
        <?php endif; ?>
            <?php if(Auth::user()->hasRole('Alumno')): ?>
                <div class="col-lg-3 col-md-6 col-sm-6 col-xs-12 foro-responsive">
                    <a class="dashboard-stat dashboard-stat-v2 green" href="<?php echo e(url('misnotas')); ?>">
                        <div class="visual">
                            <i class="fa fa-comments"></i>
                        </div>
                        <div class="details">
                            <div class="number">
                                <span> Notas Actuales </span>
                            </div>
                            <div class="desc"> Notas del Periodo Actual </div>
                        </div>
                    </a>
                </div>
            <?php endif; ?>
            <?php if(Auth::user()->hasRole('Profesor')): ?>
                <div class="col-lg-3 col-md-6 col-sm-6 col-xs-12 foro-responsive">
                    <a class="dashboard-stat dashboard-stat-v2 green" href="<?php echo e(url('registro/secciones')); ?>">
                        <div class="visual">
                            <i class="fa fa-comments"></i>
                        </div>
                        <div class="details">
                            <div class="number">
                                <span> Registro de Notas </span>
                            </div>
                            <div class="desc"> Registro de Notas de los Alumnos </div>
                        </div>
                    </a>
                </div>
            <?php endif; ?>
            <?php if(Auth::user()->hasRole('Tesorero')): ?>
                <div class="col-lg-3 col-md-6 col-sm-6 col-xs-12 foro-responsive">
                    <a class="dashboard-stat dashboard-stat-v2 green" href="<?php echo e(url('tesoreria/pagos')); ?>">
                        <div class="visual">
                            <i class="fa fa-comments"></i>
                        </div>
                        <div class="details">
                            <div class="number">
                                <span> Registrar Pagos </span>
                            </div>
                            <div class="desc"> Generar Nuevos Pagos en Tesorer&iacute;a </div>
                        </div>
                    </a>
                </div>
            <?php endif; ?>
        <div class="col-lg-3 col-md-6 col-sm-6 col-xs-12 foro-responsive">
            <a class="dashboard-stat dashboard-stat-v2 red" href="<?php echo e(url('foro')); ?>">
                <div class="visual">
                    <i class="fa fa-bar-chart-o"></i>
                </div>
                <div class="details">
                    <div class="number">
                        <span> Foro </span>
                    </div>
                    <div class="desc"> Foro de la Comunidad Acad&eacute;mica </div>
                </div>
            </a>
        </div>
        <div class="col-lg-3 col-md-6 col-sm-6 col-xs-12 foro-responsive">
            <a class="dashboard-stat dashboard-stat-v2 yellow" href="<?php echo e(url('messages')); ?>">
                <div class="visual">
                    <i class="fa fa-bar-chart-o"></i>
                </div>
                <div class="details">
                    <div class="number">
                        <span> Chat </span>
                    </div>
                    <div class="desc"> Comun&iacute;cate con Otros Usuarios </div>
                </div>
            </a>
        </div>
    </div>
    <h4 class="page-title">Noticias</h4>
    <div class="portlet light">
        <div class="portlet-body">
            <?php if(empty($news) || count($news)==0): ?>
                <h4 class="text-center">No hay noticias disponibles</h4>
            <?php else: ?>
                <div class="owl-carousel owl-theme">
                    <?php $__currentLoopData = $news; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $new): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="item">
                            <img src="<?php echo e(asset($new->urlimagen)); ?>" />
                            <h4><?php echo e($new->nombre); ?></h4>
                        </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>
            <?php endif; ?>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>
    <script>
        $('.owl-carousel').owlCarousel({
            loop:false,
            center: true,
            margin:10,
            responsiveClass:true,
            responsive:{
                0:{
                    items:1,
                    nav:true
                },
                600:{
                    items:3,
                    nav:false
                },
                1000:{
                    items:5,
                    nav:true,
                    loop:false
                }
            }
        });
    </script>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('template.layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>