Primer carga de contenido a servidor de producción y anexo de claves
This commit is contained in:
@@ -0,0 +1,83 @@
|
||||
@extends('layouts.landing')
|
||||
|
||||
@section('head')
|
||||
@include('layouts._partials.tablaStyle')
|
||||
@endsection
|
||||
@section('title',"Inicio")
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="card shadow mb-4">
|
||||
<div class="card-header py-3">
|
||||
<div class="d-sm-flex align-items-center justify-content-between">
|
||||
<h6 class="m-0 font-weight-bold text-primary">Usuarios</h6>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<div class="container-fluid">
|
||||
|
||||
<table id="tcont" class="table table-striped table-bordered nowrap table-hover" style="width:100%;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Nombre</th>
|
||||
<th>Rol</th>
|
||||
<th>Correo</th>
|
||||
<th>Status</th>
|
||||
<th>Opciones</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@forelse ($users as $user)
|
||||
<tr style="width:100%">
|
||||
<td>{{$user->id}}</td>
|
||||
<td><a href="{{route('user.show',$user->id)}}">{{$user->name}}</a></td>
|
||||
<td>
|
||||
@forelse($user->roles as $rol)
|
||||
<span class="badge bg-primary text-white">
|
||||
{{ $rol->name }}
|
||||
</span>
|
||||
@empty
|
||||
<span class="text-muted">Sin rol</span>
|
||||
@endforelse
|
||||
</td>
|
||||
<td>{{$user->email}}</td>
|
||||
<td>
|
||||
@if ($user->status==1)
|
||||
<i class="fa-solid fa-circle" style="color: #63E6BE;"></i>
|
||||
@else
|
||||
<i class="fa-solid fa-circle" style="color: #e66565;"></i>
|
||||
@endif
|
||||
|
||||
</td>
|
||||
|
||||
<td class="row mx-auto">
|
||||
@can('user.edit')
|
||||
<div class="col-sm-6 col-md-6"><a class="btn btn-primary" href="{{route('mailme',$user->id)}}">Enviar email</a></div>
|
||||
@endcan
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
<p>Sin usuarios.</p>
|
||||
@endforelse
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
|
||||
@section('scripts')
|
||||
@include('layouts._partials.tablaScript')
|
||||
@include('layouts._partials.delete')
|
||||
@endsection
|
||||
Reference in New Issue
Block a user