Created
February 5, 2020 18:41
-
-
Save parzibyte/dbdba1f9e4ed073c668cc4287f6e2a01 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@extends("maestra") | |
@section("titulo", "Niveles") | |
@section("contenido") | |
<div class="row"> | |
<div class="col-12"> | |
<a href="{{route("niveles.create")}}" class="btn btn-success mb-2">Agregar</a> | |
@include("notificacion") | |
<table class="table table-bordered"> | |
<thead> | |
<tr> | |
<th>Nombre</th> | |
<th>Editar</th> | |
<th>Eliminar</th></tr> | |
</thead> | |
<tbody> | |
@foreach($niveles as $nivel) | |
<tr> | |
<td>{{$nivel->nombre}}</td> | |
<td> | |
<a class="btn btn-warning" href="{{route("niveles.edit",[$nivel])}}"> | |
<i class="fa fa-edit"></i> | |
</a> | |
</td> | |
<td> | |
<form action="{{route("niveles.destroy", [$nivel])}}" method="post"> | |
@method("delete") | |
@csrf | |
<button type="submit" class="btn btn-danger"> | |
<i class="fa fa-trash"></i> | |
</button> | |
</form> | |
</td> | |
</tr> | |
@endforeach | |
</tbody> | |
</table> | |
</div> | |
</div> | |
@endsection |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment