@extends('layouts.app') @section('content')
@csrf @if($user) @endif @include('partials.input', ['name' => 'email', 'type' => 'text', 'title' => 'Логин/email', 'required' => true, 'value' => $user->email ?? '', 'disabled' => ($user && $user->email_verified_at), ]) @include('partials.input', ['name' => 'name', 'title' => 'Имя', 'required' => true, 'value' => $user->name ?? '']) @include('partials.input', ['name' => 'phone', 'title' => 'Телефон', 'value' => $user->phone ?? '']) {{-- @include('partials.avatars', ['user' => $user])--}} @include('partials.input', ['name' => 'password', 'type' => 'password', 'title' => 'Пароль']) @include('partials.select', ['name' => 'role', 'title' => 'Роль', 'options' => getRoles(), 'value' => $user->role ?? \App\Models\Role::MANAGER]) @include('partials.input', ['name' => 'color', 'title' => 'Цвет', 'value' => $user->color ?? '#FFFFFF', 'type' => 'color']) @if(!is_null($user->deleted_at))
ПОЛЬЗОВАТЕЛЬ УДАЛЁН!!!
Восстановить
@else @include('partials.submit') @endif
@csrf
@endsection @push('scripts') @endpush