@extends('layouts.bootstrap') @section('title', 'Edit User') @section('content')

Edit User

Modify user: {{ $user->name }}

View User Back to Users
User Information
@csrf @method('PUT')
@error('name')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
@error('password')
{{ $message }}
@enderror
@if($user->id === auth()->id())
You cannot change your own role
@endif @error('role')
{{ $message }}
@enderror
Current Role: {{ $user->getRoleDisplayName() }}
@switch($user->role) @case('admin') Full system access, user management, all CRUD operations, system configuration @break @case('manager') Manage products, tenders, categories, document types (no user management) @break @case('tender_creator') Create and manage own tenders only @break @case('product_creator') Create and manage products only @break @case('viewer') Read-only access to all content @break @endswitch
Cancel
User Details
ID:
{{ $user->id }}
Status:
@if($user->trashed()) Inactive @else Active @endif
Email Verified:
@if($user->email_verified_at) Yes @else No @endif
Created:
{{ $user->created_at->format('M d, Y') }}
Updated:
{{ $user->updated_at->format('M d, Y') }}
Last Login:
{{ $user->last_login_at ? $user->last_login_at->diffForHumans() : 'Never' }}
Activity Summary
Products Created:
{{ $user->createdProducts()->count() }}
Products Updated:
{{ $user->updatedProducts()->count() }}
Tenders Created:
{{ $user->createdTenders()->count() }}
Tenders Updated:
{{ $user->updatedTenders()->count() }}
@if($user->id !== auth()->id())
Danger Zone
@if(!$user->trashed())

Deactivating this user will prevent them from logging in.

@csrf @method('DELETE')
@else

This user is currently inactive. You can restore their access.

@csrf
@endif
@endif
@endsection