@extends('layouts.app', ['title' => 'Профиль', 'experience' => $user->experience]) @section('content')
@csrf @include('partials.input', ['name' => 'email', 'title' => 'E-mail', 'disabled' => true, 'value' => $user->email]) @include('partials.input', ['name' => 'name', 'title' => 'Имя', 'required' => true, 'value' => $user->name]) @include('partials.input', ['name' => 'surname', 'title' => 'Фамилия', 'value' => $user->surname]) @include('partials.avatars', ['user' => auth()->user()]) @include('partials.color', ['name' => 'bg_color', 'title' => 'Фон', 'value' => $user->bg_color ?? '#55def7']) @if(auth()->user()->experience > $max_subscribe_experience)
@include('partials.input', ['name' => 'e_mail', 'title' => 'E-mail', 'value' => $user->email])
@include('partials.input', ['name' => 'subscribe', 'title' => 'Подпись', 'value' => $user->subscribe ?? '', 'datalist' => $subscribes->pluck('caption')]) @else @include('partials.select', ['name' => 'subscribe', 'title' => 'Подпись', 'options' => $subscribes->pluck('caption', 'caption')->toArray(), 'value' => $user->subscribe ?? '']) @endif @include('partials.input', ['name' => 'role', 'title' => 'Роли', 'disabled' => true, 'value' => implode(', ', $user->roles->pluck('title')->toArray())])
Уведомления
Выберите типы уведомлений, которые будем присылать вам на E-mail
@foreach($notification_types as $type_id => $t) @include('partials.checkbox', ['name' => 'types[]', 'title' => $t, 'value' => $type_id, 'checked' => in_array($type_id, auth()->user()->notification_types->pluck('id')->toArray())]) @endforeach
@include('partials.input', ['name' => 'current_password', 'type' => 'password', 'title' => 'Текущий пароль']) @include('partials.input', ['name' => 'password', 'type' => 'password', 'title' => 'Новый пароль']) @include('partials.input', ['name' => 'password_confirmation', 'type' => 'password', 'title' => 'Подтверждение пароля'])
@include('partials.submit', ['']) Выход
@endsection @push('scripts') @endpush