<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>نصب سیستم - مرحله ۳</title>
    <link rel="stylesheet" href="../content/css/bootstrap.rtl.min.css">
    <link rel="stylesheet" href="../content/css/install.min.css">
</head>
<body class="bg-light d-flex align-items-center justify-content-center" style="min-height: 100vh;">

<div style="width: 100%; max-width: 500px;">
    <div class="card shadow-lg mb-5">
        <div class="card-header bg-warning text-dark text-center">
            <h5 class="mb-0 p-3">ساخت کاربر ادمین</h5>
        </div>
        <div class="card-body">
            @if(session('error'))
                <div class="alert alert-danger">{{ session('error') }}</div>
            @endif

            <form action="{{ route('installer.finish') }}" method="POST">
                @csrf

                <div class="mb-3">
                    <label for="admin_name" class="form-label">نام و نام خانوادگی</label>
                    <input type="text" class="form-control" name="admin_name" id="admin_name" required>
                </div>

                <div class="mb-3">
                    <label for="admin_email" class="form-label">ایمیل</label>
                    <input type="email" class="form-control" name="admin_email" id="admin_email" required>
                </div>

                <div class="mb-3">
                    <label for="password" class="form-label">رمز عبور</label>
                    <input type="password" class="form-control" name="password" id="password" required>
                </div>

                <div class="mb-3">
                    <label for="password_confirmation" class="form-label">تکرار رمز عبور</label>
                    <input type="password" class="form-control" name="password_confirmation" id="password_confirmation" required>
                </div>

                <div class="d-grid gap-2">
                    <button type="submit" class="btn btn-warning btn-lg">نصب نهایی</button>
                </div>
            </form>
        </div>
    </div>
    <div style="margin-top: 15px;font-size: 13px;text-align: center;margin-bottom: 15px"><a href="https://pourfi.ir" target="_blank">پورفای</a> با عشق طراحی شده توسط <a href="https://www.aparat.com/vahabdev" target="_blank">VahabDev</a> تحت مجوز GPL. <a href="https://reymit.ir/vahabdev" target="_blank">حمایت مالی</a>. </div>
</div>

</body>
</html>
