@extends('layouts.app') @section('title', __('messages.edit_user')) @section('styles') @endsection @section('content')
{{ __('messages.back_to_list') }}

{{ __('messages.edit_user') }}: {{ $user->name }}

@csrf @method('PUT')
@php $avatarPath = trim((string) ($user->avatar ?? '')); $avatarUrl = null; if ($avatarPath !== '') { if (preg_match('/^https?:\\/\\//', $avatarPath)) { $avatarUrl = $avatarPath; } else { $avatarPath = ltrim($avatarPath, '/'); if (!str_contains($avatarPath, '/')) { $avatarPath = 'avatars/' . $avatarPath; } $avatarUrl = asset($avatarPath); } } @endphp
@if ($avatarUrl)
Avatar
@endif {{ __('messages.profile_photo_help') }}
{{ __('messages.assign_groups_help') }}

@endsection @section('scripts') @endsection