관리-도구
편집 파일: 70f64ccae298c4be440e40f3d6b0c201e230ca15.php
<?php $__env->startSection('content'); ?> <div class="container"> <div class="row justify-content-center"> <div class="col-md-6"> <div class="card card-signin my-5 p-3"> <div class="card-body"> <img class="logo" src="<?php echo e(get_logo()); ?>"> <h5 class="text-center py-4"><?php echo e(_lang('Create Your Account Now')); ?></h4> <form method="POST" class="form-signup" autocomplete="off" action="<?php echo e(route('register')); ?>"> <?php echo csrf_field(); ?> <div class="form-group row"> <div class="col-md-12"> <input id="name" type="text" placeholder="<?php echo e(_lang('First Name and last Name')); ?>" class="form-control<?php echo e($errors->has('name') ? ' is-invalid' : ''); ?>" name="name" value="<?php echo e(old('name')); ?>" required autofocus> <?php if($errors->has('name')): ?> <span class="invalid-feedback"> <strong><?php echo e($errors->first('name')); ?></strong> </span> <?php endif; ?> </div> </div> <div class="form-group row"> <div class="col-md-12"> <input id="lastname" type="text" placeholder="<?php echo e(_lang('last Name')); ?>" class="form-control<?php echo e($errors->has('name') ? ' is-invalid' : ''); ?>" name="lastname" value="<?php echo e(old('lastname')); ?>" required autofocus> <?php if($errors->has('lastname')): ?> <span class="invalid-feedback"> <strong><?php echo e($errors->first('lastname')); ?></strong> </span> <?php endif; ?> </div> </div> <div class="form-group row"> <div class="col-md-12"> <input id="email" type="email" placeholder="<?php echo e(_lang('E-Mail Address')); ?>" class="form-control<?php echo e($errors->has('email') ? ' is-invalid' : ''); ?>" name="email" value="<?php echo e(old('email')); ?>" required> <?php if($errors->has('email')): ?> <span class="invalid-feedback"> <strong><?php echo e($errors->first('email')); ?></strong> </span> <?php endif; ?> </div> </div> <div class="form-group row"> <div class="col-md-12"> <input id="phone" type="text" placeholder="<?php echo e(_lang('Mobile')); ?>" class="form-control<?php echo e($errors->has('phone') ? ' is-invalid' : ''); ?>" name="phone" value="<?php echo e(old('phone')); ?>" required> <?php if($errors->has('phone')): ?> <span class="invalid-feedback"> <strong><?php echo e($errors->first('phone')); ?></strong> </span> <?php endif; ?> </div> </div> <div class="form-group row"> <div class="col-md-12"> <input id="password" type="password" placeholder="<?php echo e(_lang('Password')); ?>" class="form-control<?php echo e($errors->has('password') ? ' is-invalid' : ''); ?>" name="password" required> <?php if($errors->has('password')): ?> <span class="invalid-feedback"> <strong><?php echo e($errors->first('password')); ?></strong> </span> <?php endif; ?> </div> </div> <div class="form-group row"> <div class="col-md-12"> <input id="password-confirm" type="password" class="form-control" placeholder="<?php echo e(_lang('Confirm Password')); ?>" name="password_confirmation" required> </div> </div> <div class="form-group row mt-5"> <div class="col-md-12 text-center"> <button type="submit" class="btn btn-primary btn-login"> <?php echo e(_lang('Create My Account')); ?> </button> </div> </div> <div class="form-group row mt-5"> <div class="col-md-12 text-center"> <?php echo e(_lang('Already Have An Account?')); ?> <a href="<?php echo e(route('login')); ?>"><?php echo e(_lang('Log In Here')); ?></a> </div> </div> </form> </div> </div> </div> </div> </div> <script> document.getElementById('registerForm').addEventListener('submit', function(event) { event.preventDefault(); // Form ka default behavior rokna // Form data ko collect karna let formData = new FormData(this); // Form data ko server par submit karna (AJAX request) fetch('/register', { method: 'POST', body: formData }) .then(response => response.json()) .then(data => { if (data.success) { // SweetAlert pop-up message show karna Swal.fire({ icon: 'success', title: 'Welcome!', text: 'Thank you for registering.', confirmButtonText: 'OK' }).then(() => { // User ko redirect karna, agar required hai window.location.href = '/dashboard'; }); } }) .catch(error => { console.error('Error:', error); }); }); </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.auth', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/eraas/public_html/resources/views/auth/register.blade.php ENDPATH**/ ?>