@extends('layouts.admin') @section('title','Usuarios') @section('styles') @php $i=0; @endphp @endsection @section('options') @endsection @section('preference') @endsection @section('content')
@foreach ($users as $user) @php $i++; @endphp @endforeach @php $i=0; @endphp
Id Nombre Usuario Telefono Cargo Acciones
{{$user->id}} {{$user->grado}} {{$user->nombre}} {{$user->ap_paterno}} {{$user->ap_materno}} {{$user->user}} {{$user->telefono}} {{$cargos[$i]->nombre}} {!! Form::open(['route'=>['users.destroy',$user], 'method'=>'DELETE']) !!} {!! Form::close() !!}
{{-- --}}
@endsection @section('scripts') {!! Html::script('melody/js/data-table.js') !!} @endsection