public function actareunion_delete1($codcampeonato, $id, $id2) { //$category = DB::select('select * from tasistente where idasistente=?',array($id)); $category = Asistente::find($id2); $category->delete(); return Redirect::to('campeonato/detail/' . $codcampeonato . '/abriracta/' . $id); }
<table class="table"> <thead> <tr> <td>idreunion</td> <td>fecha</td> <td>nroAsistentes</td> </tr> </thead> <tbody> @foreach($todoConclusion as $cat) <tr class="no-records-found"> <td>{{$cat->codReunion}}</td> <td>{{$cat->fecha}}</td> <td> <?php $count = Asistente::where('codReunion', '=', $cat->codReunion)->count(); ?> {{$count}} </td> <td> <a href= "{{ URL::to( 'campeonato/detail/'.$codcampeonato.'/actaedit/'.$cat->codReunion)}}" class="btn btn-default"> <span class="glyphicon glyphicon-edit"></span> Editar </a> <a href= "{{ URL::to( 'campeonato/detail/'.$codcampeonato.'/actadelete/'.$cat->codReunion)}}" class="btn btn-default"> <span class="glyphicon glyphicon-remove"></span> Eliminar </a>