Files
Sistema-Educativo-Laravel/storage/framework/views/56207aeb9c90a060644c3e261130e1fa.php
T

70 lines
4.3 KiB
PHP

<?php $__env->startSection('head'); ?>
<?php echo $__env->make('layouts._partials.tablaStyle', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('title',"Inicio"); ?>
<?php $__env->startSection('content'); ?>
<div class="container-fluid">
<div class="card shadow mb-4">
<div class="card-header py-3">
<div class="d-sm-flex align-items-center justify-content-between">
<h6 class="m-0 font-weight-bold text-primary">Niveles</h6>
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('nivel.create')): ?>
<a href="<?php echo e(route('nivel.create')); ?>" class="d-sm-inline-block btn btn-sm btn-primary shadow-sm"><i class="fas fa-download fa-sm text-white-50"></i> Crear nivel</a>
<?php endif; ?>
</div>
</div>
<div class="card-body">
<div class="container-fluid">
<table id="tcont" class="table table-striped table-bordered nowrap table-hover" style="width:100%;">
<thead>
<tr>
<th>Id</th>
<th>Titulo</th>
<th>Opciones</th>
</tr>
</thead>
<tbody>
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__empty_1 = true; $__currentLoopData = $nivels; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $nivel): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
<tr style="width:100%">
<td><?php echo e($nivel->id); ?></td>
<td><a href="<?php echo e(route('nivel.show',$nivel->id)); ?>"><?php echo e($nivel->name); ?></a></td>
<td class="row mx-auto">
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('nivel.edit')): ?>
<div class="col-sm-6 col-md-6"><a class="btn btn-primary" href="<?php echo e(route('nivel.edit',$nivel->id)); ?>">Edit</a></div>
<?php endif; ?>
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('nivel.destroy')): ?>
<div class="col-sm-6 col-md-6">
<form class="delete-form" action="<?php echo e(route('nivel.destroy',$nivel->id)); ?>" method="POST">
<?php echo csrf_field(); ?>
<?php echo method_field('DELETE'); ?>
<input type="submit" value="DELETE" class="btn btn-danger">
</form>
</div>
<?php endif; ?>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
<p>Sin niveles.</p>
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
<?php echo $__env->make('layouts._partials.tablaScript', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('layouts._partials.delete', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.landing', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\proyectos\primeros\sistemaEducativo\resources\views/nivel/index.blade.php ENDPATH**/ ?>