@extends('layouts.app') @section('content')

Edit User: {{ $user->name }}

@csrf @method('PUT')
@error('name')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
@error('phone')
{{ $message }}
@enderror
@error('role')
{{ $message }}
@enderror
Leave blank to keep current password @error('password')
{{ $message }}
@enderror
is_active) ? 'checked' : '' }}>
Inactive users cannot log in to the system
Created: {{ $user->created_at->format('M j, Y g:i A') }}
Last Login: {{ $user->last_login_at ? $user->last_login_at->format('M j, Y g:i A') : 'Never' }}
Email Verified: {{ $user->email_verified_at ? 'Yes' : 'No' }}

@if($user->isAdmin() && !auth()->user()->isAdmin())
Limited Access: You cannot modify administrator accounts.
@endif @if($user->id === auth()->id())
Note: You are editing your own account. Some restrictions may apply.
@endif
Role Permissions:
  • Administrator: Full system access, can manage all users and settings
  • Manager: Can manage users and view all data
  • Field Worker: Can update field data and view assigned areas
  • User: Basic access to view data and notifications
@endsection