@extends('shop.layout')
@section('title', __('portal.shop.reset_title'))
@section('content')

<div style="max-width:380px;margin:0 auto;">
    <h1 style="font-size:22px;margin-bottom:16px;">{{ __('portal.shop.reset_title') }}</h1>

    @if ($errors->any())
        <div class="card" style="border-color:#fca5a5;background:#fef2f2;margin-bottom:14px;">
            <ul style="margin:0;padding-left:18px;color:#991b1b;font-size:14px;">
                @foreach ($errors->all() as $e)<li>{{ $e }}</li>@endforeach
            </ul>
        </div>
    @endif

    <form method="POST" action="/shop/password/reset" class="card">
        @csrf
        <input type="hidden" name="token" value="{{ $token }}">
        <div class="field"><label>{{ __('portal.common.email') }} *</label>
            <input type="email" name="email" value="{{ old('email', $email) }}" required readonly style="background:#f9fafb;">
        </div>
        <div class="field"><label>{{ __('portal.invitation.new_password') }} *</label>
            <input type="password" name="password" required minlength="6" autofocus>
        </div>
        <div class="field"><label>{{ __('portal.invitation.confirm_password') }} *</label>
            <input type="password" name="password_confirmation" required minlength="6">
        </div>
        <button type="submit" class="btn block">{{ __('portal.shop.reset_button') }}</button>
    </form>
</div>
@endsection
