EVOLUTION-MANAGER
Edit File: index.blade.php
@extends('layouts.backend') @section('titulo') Tipos de Artículos @stop @section('contenido') @include('alerts.success') @include('alerts.errors') <a class="btn btn-primary" href="{{ URL::route('categoria_turismo.create') }}">Nueva</a> <br> @if (count($categorias)) <div class="table-responsive"> <table id="tbbuzon1" class="table table-striped table-bordered table-hover display" > <thead> <tr> <th width="10%">ID:</th> <th>CATEGORÍA:</th> <th width="10%">Opciones</th> </tr> </thead> <tbody> @foreach ($categorias as $categoria) <tr> <td>{{$categoria->id}}</td> <td>{{$categoria->nombre}}</td> <td style="display: inline-flex; float: right;"> {!! Form::open(array('method' => 'GET', 'route' => array('categoria_turismo.edit', $categoria->id))) !!} <button type="submit" class="btn btn-success bnt-lg" data-toggle="tooltip" title="Editar"> <i class="fa fa-pencil-square-o"></i></button> {!! Form::close() !!} <button type="submit" class="btn btn-danger bnt-lg" onclick="SeguroEliminar({{$categoria->id}})" data-toggle="tooltip" title="Eliminar"><i class="fa fa-trash"></i></button> </td> </tr> @endforeach </tbody> </table> </div> @else Aún no hay categorías de turismo en el sistema @endif @stop @section('script') <script> $(document).ready(function(){ $(".inline").colorbox(); // $(".add_usser").colorbox(); }); $(function () { $('[data-toggle="tooltip"]').tooltip('show') }) function SeguroEliminar(id) { $.colorbox({width:"auto",height:"auto", open:true, href:"seguro_eliminar/tipoarticulos/"+id}); } </script> @stop