@extends('layout.layout') @section('content')

Access

@foreach ($users as $user)
{{-- --}}
Name
Email
Pin Number
Access
dashboard == 'enable' ? 'checked' : '' }} onclick="accesspage({{ $user->id }}, this.name, '{{ $user->access_type }}')" {{ in_array($user->user_type, ['client', 'worker']) ? 'disabled' : '' }} />
access == 'enable' ? 'checked' : '' }} onclick="accesspage({{ $user->id }}, this.name, '{{ $user->access_type }}')" {{ in_array($user->user_type, ['client', 'worker']) ? 'disabled' : '' }} />
client_management == 'enable' ? 'checked' : '' }} onclick="accesspage({{ $user->id }}, this.name, '{{ $user->access_type }}')" {{ in_array($user->user_type, ['client', 'worker']) ? 'disabled' : '' }} />
workout_library == 'enable' ? 'checked' : '' }} onclick="accesspage({{ $user->id }}, this.name, '{{ $user->access_type }}')" {{ in_array($user->user_type, ['client', 'worker']) ? 'disabled' : '' }} />
session == 'enable' ? 'checked' : '' }} onclick="accesspage({{ $user->id }}, this.name, '{{ $user->access_type }}')" {{ in_array($user->user_type, ['client', 'worker']) ? 'disabled' : '' }} />
financial == 'enable' ? 'checked' : '' }} onclick="accesspage({{ $user->id }}, this.name, '{{ $user->access_type }}')" {{ in_array($user->user_type, ['client', 'worker']) ? 'disabled' : '' }} />
communication == 'enable' ? 'checked' : '' }} onclick="accesspage({{ $user->id }}, this.name, '{{ $user->access_type }}')" {{ in_array($user->user_type, ['client', 'worker']) ? 'disabled' : '' }} />
statistics == 'enable' ? 'checked' : '' }} onclick="accesspage({{ $user->id }}, this.name , '{{ $user->access_type }}')" {{ in_array($user->user_type, ['client', 'worker']) ? 'disabled' : '' }} />
user_dashboard == 'enable' ? 'checked' : '' }} onclick="accesspage({{ $user->id }}, this.name, '{{ $user->access_type }}')" {{ in_array($user->user_type, ['admin', 'super admin']) ? 'disabled' : '' }} />
profile == 'enable' ? 'checked' : '' }} onclick="accesspage({{ $user->id }}, this.name, '{{ $user->access_type }}')" {{ in_array($user->user_type, ['admin', 'super admin']) ? 'disabled' : '' }} />
goals == 'enable' ? 'checked' : '' }} onclick="accesspage({{ $user->id }}, this.name, '{{ $user->access_type }}')" {{ in_array($user->user_type, ['admin', 'super admin']) ? 'disabled' : '' }} />
achievements == 'enable' ? 'checked' : '' }} onclick="accesspage({{ $user->id }}, this.name, '{{ $user->access_type }}')" {{ in_array($user->user_type, ['admin', 'super admin']) ? 'disabled' : '' }} />
settings == 'enable' ? 'checked' : '' }} onclick="accesspage({{ $user->id }}, this.name, '{{ $user->access_type }}')" {{ in_array($user->user_type, ['admin', 'super admin']) ? 'disabled' : '' }} />
Access Type access_type == 'read' ? 'checked' : '' }} onclick="updateAccessType(this, {{ $user->id }}, '{{ $user->access_type }}')">
@endforeach @php $maxId = $users->max('id'); $nextId = $maxId + 1; $minId = $users->min('id'); @endphp {{-- Pagination --}}
Previous Next
@endsection