@extends('layout.master') @section('content') @php $userType = \App\Helpers\Helpers::getUserRole()->type_id ?? []; $userAccess = \App\Helpers\Helpers::getUserAccess() ?? []; $access = $userAccess['accesses'] ?? []; $justify_style = 'justify-content-end'; $show_filter = false; if (!empty($filter_estate_id) || !empty($filter_role_id) || !empty($filter_status)) { $justify_style = 'justify-content-between'; $show_filter = true; } $role_name = $estate_name = $status_name = null; if (!empty($estate_name_list) && count($estate_name_list) > 0 && !empty($filter_estate_id)) { foreach ($estate_name_list as $estate) { if ($estate->value == $filter_estate_id) { $estate_name = $estate->label; break; } } } if (!empty($user_roles) && count($user_roles) > 0 && !empty($filter_role_id)) { foreach ($user_roles as $role) { if ($role->value == $filter_role_id) { $role_name = $role->label; break; } } } if (!empty($status_list) && count($status_list) > 0 && !empty($filter_status)) { foreach ($status_list as $status) { if ($status['id'] == $filter_status) { $status_name = $status['name']; break; } } } @endphp
{{-- ❮  BACK --}} {{--

Users

--}}
{{--
--}} @if ($show_filter)
Results filtered by @if (!empty($filter_estate_id))
Estate: {{ $estate_name ?? '-' }}
@endif @if (!empty($filter_role_id))
Role: {{ $role_name ?? '-' }}
@endif @if (!empty($filter_status))
Status: {{ $status_name ?? '-' }}
@endif
@endif
{{-- --}} @if (!empty($users_list) && count($users_list) > 0) @foreach ($users_list as $user) {{-- --}} @endforeach {{-- @else --}} @endif
Sl No. Estate Name Role EmailUser NamePhone Status Actions
{{ str_pad($loop->index + 1, 3, '0', STR_PAD_LEFT) }} {{ $user->type_id == 1 || $user->type_id == 2 ? 'Admin' : (!empty($user->estate_name) ? $user->estate_name : '-') }} {{ $user->full_name }} {{ !empty($user->user_role) ? $user->user_role : (!empty($user->user_type) ? $user->user_type : '-') }} {{ $user->email ?? '-' }}{{ $user->user_name ?? '-' }}{{ $user->contact_number ?? '-' }} {{ $user->is_blocked == 1 ? 'Inactive' : 'Active' }}
No records found
{{-- filter model for Users --}} @push('scripts') @endPush @endsection