32 lines
1.2 KiB
PHP
32 lines
1.2 KiB
PHP
@push('head')
|
|
<link rel="stylesheet" href="{{ mix("css/user.css") }}">
|
|
@endpush
|
|
|
|
@extends('layouts.app')
|
|
|
|
@section('title', "Sklep")
|
|
|
|
@section('main')
|
|
<div>
|
|
<div>
|
|
<b>Welcome, you are logged in as {{ $user->name }}</b>
|
|
<a href="{{route("logout")}}"> Logout </a>
|
|
</div>
|
|
<div>
|
|
<form method="post" action="{{ route("user.update") }}">
|
|
<!-- TODO validation in js !-->
|
|
<input type="email" name="email" placeholder="email" value="{{ $user->email }}">
|
|
<input type="text" name="name" placeholder="Imie" value="{{ $user->name }}">
|
|
<input type="submit">
|
|
@csrf
|
|
</form>
|
|
<form action="{{ route("user.updatepassword") }}" method="post">
|
|
<input type="password" name="old_password" placeholder="Obecne hasło">
|
|
<input type="password" name="password" placeholder="Nowe hasło">
|
|
<input type="password" name="password_confirmation" placeholder="Powtórz nowe hasło">
|
|
<input type="submit">
|
|
@csrf
|
|
</form>
|
|
</div>
|
|
</div>
|
|
@endsection()
|