@php $pageTitle = '注册 - '.$siteName; @endphp
@include('partials.head')
<body>
@include('partials.header')
<div class="container auth-layout">
    <main class="auth-box">
        <h1 class="list-title">注册</h1>
        <form method="post" action="{{ route('register') }}">
            @csrf
            <div class="form-row">
                <label>昵称</label>
                <input type="text" name="name" required value="{{ old('name') }}">
                @error('name')<p class="error">{{ $message }}</p>@enderror
            </div>
            <div class="form-row">
                <label>邮箱</label>
                <input type="email" name="email" required value="{{ old('email') }}">
                @error('email')<p class="error">{{ $message }}</p>@enderror
            </div>
            <div class="form-row">
                <label>密码（至少 8 位）</label>
                <input type="password" name="password" required>
                @error('password')<p class="error">{{ $message }}</p>@enderror
            </div>
            <div class="form-row">
                <label>确认密码</label>
                <input type="password" name="password_confirmation" required>
            </div>
            <div class="form-row">
                <label>个人主页（可选）</label>
                <input type="url" name="url" value="{{ old('url') }}">
            </div>
            <button type="submit" class="btn btn-primary">注册</button>
        </form>
        <p class="auth-alt">已有账号？<a href="{{ route('login') }}">去登录</a></p>
    </main>
</div>
@include('partials.footer')
@stack('theme:body_end')
</body>
</html>
