@extends('layouts.admin')
@section('contenido')


<div class="row">
	
<div class="col-lg-8 col-md-8 col-sm-8 col-xs-12">

	<h3>Listado de Temas <a href="temas/create"><button class="btn btn-success">Nuevo</button></a></h3>

	@include('pagina.temas.search')
	
</div>
</div>

<div class="row">
	
<div class="col-lg-12 col-md-12 col-sm-12 col xs-12">
	<div class="table-responsive">
		
      <table class="table table-striped table-bordered table-condensed table-hover">
      	
      	<thead>
      		 
      		  <th>Id</th>
      		  <th>Temas</th>
            <th>Acciones</th>

      	</thead>


 
       @foreach ($temas as $te)

      	<tr>
      		<td>{{$te->idtemas}}</td>
      		<td>{{$te->descripcion}}</td>
           
            <td>
            <!-- 	<a href="{{URL::action('TemasController@show',$te->idtemas)}}"><button class="btn btn-info">Comentarios</button></a>-->
              <a href="/comentar?idTema={{$te->idtemas}}"><button class="btn btn-info">Comentarios</button></a>
               <a href="" data-target="#modal-delete-{{$te->idtemas}}" data-toggle="modal"> <button class="btn btn-danger">Eliminar</button> </a>
             </td>

      	</tr>
        @include('pagina.temas.modaltem')
      	@endforeach

      	
      
	

      </table>

	</div>

	{{$temas->render()}}

 
	
</div>
</div>





@endsection