@extends('layouts.admin') @section('title', 'Edit User - ' . $user->name) @section('content')

Edit User

View User Back to Users
Edit User Information
{{ ucfirst($user->role) }}
@csrf @method('PUT')
@if($user->profile_image) {{ $user->name }} @else @endif
Upload a new image to replace current. Recommended size: 300x300px. Max file size: 2MB @if($user->profile_image)
Current: {{ basename($user->profile_image) }} @endif
@error('profile_image')
{{ $message }}
@enderror
@error('name')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror @if($user->email_verified_at) Email verified on {{ $user->email_verified_at->format('M d, Y') }} @else Email not verified @endif
@error('phone')
{{ $message }}
@enderror
@error('role')
{{ $message }}
@enderror User: Can browse and interact with businesses
Seller: Can manage businesses and products
Admin: Full system access
@error('address')
{{ $message }}
@enderror
Password Information
Leave blank to keep current password
@error('password')
{{ $message }}
@enderror Minimum 8 characters (leave blank to keep current)
Re-enter the new password
email_verified_at ? 'checked' : '' }}>
Account Information
Account Created:
{{ $user->created_at->format('M d, Y H:i') }}
Last Updated:
{{ $user->updated_at->format('M d, Y H:i') }}

Associated Businesses:
{{ $user->businesses->count() }} business(es)
Current Role:
{{ ucfirst($user->role) }}
@if($user->role !== 'admin')
Danger Zone
Delete User Account
This action cannot be undone. This will permanently delete the user account @if($user->businesses->count() > 0) and may affect {{ $user->businesses->count() }} associated business(es). @endif
@endif
@if($user->role !== 'admin') @endif @endsection