EVOLUTION-MANAGER
Edit File: index.blade.php
@extends('layouts.backend') @section('titulo') pregunta y respuesta @stop @section('contenido') @include('alerts.success') @include('alerts.errors') @if (count($chatbots)) <a class="btn btn-primary" href="{{ URL::route('chatbot.create') }}">Nuevo</a> <div class="table-responsive"> <table id="tbbuzon1" class="table table-striped table-bordered table-hover display" > <thead> <tr> <th>ID:</th> <th>pregunta:</th> <th>respuesta:</th> <th width="10%">Opciones</th> </tr> </thead> <tbody> @foreach ($chatbots as $chatbot) <tr> <td>{{$chatbot->id}}</td> <td>{{$chatbot->pregunta}}</td> <td>{{$chatbot->respuesta}}</td> <td style="display: inline-flex; float: right;"> {!! Form::open(array('method' => 'GET', 'route' => array('chatbot.edit', $chatbot->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({{$chatbot->id}})" data-toggle="tooltip" title="Eliminar"><i class="fa fa-trash"></i></button> </td> </tr> @endforeach </tbody> </table> </div> @else <a class="btn btn-primary" href="{{ URL::route('chatbot.create') }}">Nuevo</a><br> Aún no hay pregunta y respuesta 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/chatbot/"+id}); } </script> @stop