@extends('adminlte::page') @section('plugins.Datatables', true) @section('plugins.Sweetalert2', true) @section('plugins.Select1', true) @section('title', 'Registros de Usuarios') @section('content_header')
@stop @section('content')

Registros de Usuarios

@foreach ($usuarios as $usuario) @if ($usuario->admin_maestro == false) @endif @endforeach
Acción Rut Nombre Correo Teléfono Rol Fecha de Creación Estado
@if (auth()->user()->id != $usuario->id) @if (Gate::check('usuario.destroy') || Gate::check('usuario.edit'))
@endif @endif
{{ $usuario->rut }} {{ $usuario->name }} {{ $usuario->email }} {{ $usuario->telefono }} {{ implode(', ', $usuario->roles->pluck('name')->toArray()) }} {{ fechaConFormatoDeChile($usuario->created_at) }} @if ($usuario->estado == 'Operativo') {{ $usuario->estado }} @else {{ $usuario->estado }} @endif
@stop @section('footer')
OTS MEL
Copyright © {{ fechaYHoraActual()->year }} GuiñezIngeniería.cl. @stop @section('css') @stop @section('js') @if (Gate::check('usuario.create')) @else @endif @stop