@extends('layouts.tables') @section('tables-head') PbxHosting | Usuarios @endsection @section('tables-title') Mis Usuarios @endsection @section('tables-btn') @endsection @section('tables-content') Nombre Usuario Admin Roles Estatus Acción @foreach($consulta as $cons) {{$cons->name}} {{$cons->username}} @if($cons->admin == 1) Si @else No @endif @empty(!$cons->user_type) @foreach(json_decode($cons->user_type) as $element) {{$consulta2[$element-1]->type_name}}
@endforeach @endempty @if($cons->deleted_at == null) Activo @else Desactivado @endif @if($cons->admin != '1') Editar Restablecer contraseña @if($cons->deleted_at == null) Inhabilitar usuario @else Eliminar usuario Restablecer usuario @endif @endif @endforeach Nombre Usuario Admin Roles Estatus Acción @endsection @section('tables-modal') @endsection @section('tables-scripts') @endsection