pai-sklep/resources/views/user.blade.php

33 lines
1.2 KiB
PHP
Raw Permalink Normal View History

2021-12-08 00:29:02 +01:00
@push('head')
<link rel="stylesheet" href="{{ mix("css/user.css") }}">
@endpush
2021-12-05 19:23:42 +01:00
@extends('layouts.app')
@section('title', "Sklep")
@section('main')
2021-12-16 21:58:10 +01:00
<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>
2021-12-05 19:23:42 +01:00
@endsection()