EVOLUTION-MANAGER
Edit File: index.blade.php
@extends('layouts.backend') @section('titulo') Artículos @stop @section('contenido') @include('alerts.success') @include('alerts.errors') <a class="btn btn-primary" href="{{ URL::route('articulos.create') }}">Nuevo</a> @if (count($articulos)) <div class="table-responsive"> <table id="tbbuzon1" class="table table-striped table-bordered table-hover display" > <thead> <tr> <th>ID:</th> <th>TITULO:</th> <th>TIPO DE ARTICULO:</th> <th>Nº DE DESTACADO:</th> <th>URL:</th> <th width="10%">Opciones</th> </tr> </thead> <tbody> @foreach ($articulos as $tipo) <tr> <td>{{$tipo->id}}</td> <td>{{$tipo->titulo}}</td> <td>{{ $tipo->tipo }}</td> <td>{{ $tipo->destacado }}</td> <td>{{$tipo->url_direccion}}</td> <td style="display: inline-flex; float: right;"> {!! Form::open(array('method' => 'GET', 'route' => array('articulos.edit', $tipo->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() !!} @if($tipo->tipo_articulo_id!=12&&$tipo->tipo_articulo_id!=50&&$tipo->tipo_articulo_id!=11&&$tipo->tipo_articulo_id!=13) <button type="submit" class="btn btn-danger bnt-lg" onclick="SeguroEliminar({{$tipo->id}})" data-toggle="tooltip" title="Eliminar"><i class="fa fa-trash"></i></button> @endif </td> </tr> @endforeach </tbody> </table> </div> @else Aún no hay articulos 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/articulos/"+id}); } </script> @stop