{{-- Admin edit of one user (DESIGN.md Page patterns 3, simple kind; admin group Kunder; #2957 slice 12, card #3098). Rendered by admin.user.edit (UserController@edit picks this view on that route): $user. The form (user/partials/editAdminForm) PUTs the same fields as before to user.update with admin=1; the comments card (user/partials/comments) posts, pins and deletes user comments as before; the scripts are in user/partials/jscript. The company statistics box beside the form is gone (DESIGN.md: no stats box on pages that are not about statistics). --}} @extends('layouts.nuhet') @php $nhUserName = trim($user->first_name.' '.$user->last_name) ?: $user->username; @endphp @section('_pageTitle', __('user.editAdmin.pageTitle')) @section('pagename', __('user.editAdmin.editTitle')) @section('page')

{{ $nhUserName }}

{{ $user->company ? __('user.nh.adminEditLead', ['company' => $user->company->name]) : __('user.nh.adminEditLeadNoCompany') }}

@if ($user->company)
{{ __('user.nh.openCompany') }}
@endif
@include('user.partials.editAdminForm', ['user' => $user]) @include('user.partials.comments', [ 'user' => $user, 'data' => $user->comments()->with(['author' => fn ($query) => $query->withTrashed()])->orderBy('sticky', 'desc')->get(), ])
@include('user.partials.jscript') @endsection