@include('parts.loading') @include('parts.alerts') @if ($mode == 'list')
{{--
--}}
@if ($users->count())
@if ($search_type == 'user') @endif @if ($search_type == 'user') @endif @if ($search_type == 'security') @endif @foreach($users as $key => $value) @if ($search_type == 'user') @endif @if ($search_type == 'user') @endif @if ($search_type == 'security') @endif @endforeach
Fecha de creación @include('parts.sortby', ['field' => 'created_at'])
Cédula / Documento @include('parts.sortby', ['field' => 'document'])
Cliente @include('parts.sortby', ['field' => 'fullname'])
Condo(s)
Puerta @include('parts.sortby', ['field' => 'entry_type'])
Estatus @include('parts.sortby', ['field' => 'status']) Acciones
{{ $value->created_at->format('d/m/Y') }}
{{ $value->created_at->format('h:iA') }}
{{ $value->document }} {{ $value->fullname }} {{ $value->email }} @if ($search_type == 'user') Documento: {{ $value->document }} Empresa: {{ $value->company }} @endif
{{ config('const.user-status')[$value->status] }}
@foreach($value->condos_user as $keyCondo => $item) {{ $item->condo->name }} @if (!empty($item->number)) ({{ $item->number }}) @endif
@if ($keyCondo == 0 && $item->condo->id == 7) @php break; @endphp @endif @endforeach
@if (!empty($value->entry_type)) {{ config('const.user-entry-type')[$value->entry_type] }} @else No asignada @endif {{ config('const.user-status')[$value->status] }} @if (in_array($value->type, ['user', 'rental', 'promoter', 'security'])) @endif
{{ $users->links() }}
@else @endif
@else @include('livewire.users.form') @endif
@section('js') @include('parts.js-destroy') @include('parts.js-search') @endsection @push('styles') @endpush