@extends('layouts.app')

@section('title','Edit account')

@section('main')
	@parent
	<form action="changepassword" method="post">
		@csrf
		<label for="newpassword">New password</label>         <input type="password" id="newpassword"     name="newpassword"     required>
		<label for="confirmpassword">Confirm password</label> <input type="password" id="confirmpassword" name="confirmpassword" required>
		<input type="submit" value="Change my password">
	</form>
	<form action="changeage" method="post">
	@csrf
	<label for="newage">New age</label> <input type="number" id="newage" name="newage" value="{{ $age }}">
	<input type="submit" value="Change my age">
	</form>
	<p>
		Go back to <a href="welcome">Home</a>.
	</p>
@endsection
