Open sidebar
@extends('layouts.layout') @section('content') <div class="row"> <section class="content"> <div class="col-md-12 col-md-offset-0"> <div class="panel panel-default"> <div class="panel-body"> <div class="pull-left"><h3>Usuarios votantes</h3></div> <div class="pull-right"> <div class="btn-group"> <div class="col-md-6"> <select name="usuario_ad" id="usuario_ad" class=" form-control" value="{{ old('usuario_ad') }}" required> @foreach($usuarios as $item) <option value="{{ $item->id }}">{{$item->usuario_ad}}</option> @endforeach </select> <a href="{{ route('usuario.index') }}" class="btn btn-info" >consultar</a> <a href="{{ route('usuario.create') }}" class="btn btn-info" >AƱadir Usuario</a> </div> </div> <div class="table-container"> <table id="mytable" class="table table-bordred table-striped"> <thead> <th>Usuario_ad</th> <th>Nombre</th> <th>Apellido</th> <th>Cedula</th> <th>Telefonos</th> <th>Direccion</th> <th>barrio</th> <th>Lugar_v</th> <th>Mesa_v</th> <th>Email</th> <th>Ciudad</th> <th>Editar</th> <th>Eliminar</th> </thead> <tbody> @if($usuarios->count()) @foreach($usuarios as $usuario) <tr> <td>{{$usuario->usuario_ad}}</td> <td>{{$usuario->nombre}}</td> <td>{{$usuario->apellido}}</td> <td>{{$usuario->cedula}}</td> <td>{{$usuario->telefonos}}</td> <td>{{$usuario->direccion}}</td> <td>{{$usuario->barrio}}</td> <td>{{$usuario->lugar_votacion}}</td> <td>{{$usuario->mesa_votacion}}</td> <td>{{$usuario->email}}</td> <td>{{$usuario->ciudad}}</td> <td><a class="btn btn-primary btn-xs" href="{{action('UsuarioController@edit', $usuario->id)}}" ><span class="glyphicon glyphicon-pencil"></span></a></td> <td> <form action="{{action('UsuarioController@destroy', $usuario->id)}}" method="post"> {{csrf_field()}} <input name="_method" type="hidden" value="DELETE"> <button class="btn btn-danger btn-xs" type="submit"><span class="glyphicon glyphicon-trash"></span></button> </form> </td> </tr> @endforeach @else <tr> <td colspan="8">No hay registro !!</td> </tr> @endif </tbody> </table> </div> </div> {{ $usuarios->links() }} </div> </div> </section> @endsection
Close sidebar
Back
Please note that all pasted data is publicly available.
Twitter
GitHub
Use setting
Back
Please note that all pasted data is publicly available.
Twitter
GitHub
Use setting