@extends('layouts.layout')

@section('title')Налаштування @endsection

@section('content')

<section>
    <div class='container'>

        <h4>Налаштування</h4>
        
        <form method="post" action="{{ route('settings.edit') }}">

            @csrf

            <div class="form-group">
                <label for='name'>Ваше имя</label>
                <input class="form-control" type="text" id="name" name="name" value="{{ auth()->user()->name }}">
            </div>

            <div class="form-group">
                <label for='email'>Email address</label>
                <input class="form-control" type="email" id="email" name="email" value="{{ auth()->user()->email }}">
            </div>
            
            <div class="form-group">
                <label for='password'>Password</label>
                <input class="form-control" type="password" id="password" name="password">
            </div>
            
            <div class="form-group">
                <label for='password_confirmation'>Confirm password</label>
                <input class="form-control" type="password" id="password_confirmation" name="password_confirmation">
            </div>
            
            <div class="form-group">
                <button type="submit" class="btn btn-primary">Зберiгти</button>
            </div>

        </form>

    </div>
</section>


@endsection  

