@extends('layouts.dashboard') @section('title', 'Admin Limits') @section('page-title', 'Admin Limits') @section('content')
Limits for: {{ $adminToEdit->name }}

Configure resource limits and capabilities for this admin

Admin Role
{{ $adminToEdit->getManagedUserCount() }} / {{ $limits->max_users }}
Users Created
@php $usagePercent = $limits->max_users > 0 ? ($adminToEdit->getManagedUserCount() / $limits->max_users) * 100 : 0; @endphp
{{ $adminToEdit->getRemainingUserSlots() }}
Remaining Slots
@csrf @method('PUT')
User Management Limits
Maximum number of users this admin can create (0 = unlimited)
@error('max_users')
{{ $message }}
@enderror
can_create_users ? 'checked' : '' }}>
can_edit_users ? 'checked' : '' }}>
can_disable_users ? 'checked' : '' }}>
can_delete_users ? 'checked' : '' }}>
Template Capabilities
can_view_templates ? 'checked' : '' }}>
can_assign_templates ? 'checked' : '' }}>
can_edit_templates ? 'checked' : '' }}>
Reports & Data Access
can_view_reports ? 'checked' : '' }}>
can_export_reports ? 'checked' : '' }}>

Sensitive Data Access - These options expose private user data
can_view_full_phone ? 'checked' : '' }}>
can_view_raw_logs ? 'checked' : '' }}>
Cancel
@endsection