

<?php $__env->startSection('content'); ?>
<div class="vh-100 d-flex justify-content-center">
    <div class="form-access my-auto">
        <form method="POST" action="<?php echo e(route('register')); ?>">
            <?php echo csrf_field(); ?>
            <span>Create Account</span>
            
            <?php if($errors->any()): ?>
                <div class="alert alert-danger">
                    <ul class="mb-0">
                        <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <li><?php echo e($error); ?></li>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </ul>
                </div>
            <?php endif; ?>

            <?php if(session('success')): ?>
                <div class="alert alert-success">
                    <?php echo e(session('success')); ?>

                </div>
            <?php endif; ?>

            <div class="form-group">
                <input type="text" class="form-control" name="name" placeholder="Full Name" value="<?php echo e(old('name')); ?>" required>
            </div>
            <div class="form-group">
                <input type="email" class="form-control" name="email" placeholder="Email Address" value="<?php echo e(old('email')); ?>" required>
            </div>
            <div class="form-group">
                <input type="password" class="form-control" name="password" placeholder="Password" required>
            </div>
            <div class="form-group">
                <input type="password" class="form-control" name="password_confirmation" placeholder="Confirm Password" required>
            </div>
            <div class="form-group">
                <input type="number" class="form-control" name="phone_number" placeholder="Phone Number" value="<?php echo e(old('phone_number')); ?>" required>
            </div>
            <div class="form-group">
                <input type="date" class="form-control" name="date_of_birth" placeholder="Date of Birth" value="<?php echo e(old('date_of_birth')); ?>" required>
            </div>
            <div class="form-group">
                <input type="text" class="form-control <?php $__errorArgs = ['promo_code'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="promo_code" placeholder="Promo Code" value="<?php echo e(old('promo_code')); ?>" required>
            </div>
            <button type="submit" class="btn btn-primary">Create Account</button>
            <h2>Already have an account? <a href="<?php echo e(route('login')); ?>">Sign in here</a></h2>
        </form>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\indri\prjct\webtrader12-01\webtrader\resources\views/signup.blade.php ENDPATH**/ ?>