<?php $__env->startSection('title'); ?>
    <title><?php echo e(__('Register')); ?></title>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('patient-content'); ?>
    <!--Banner Start-->
    <div class="banner-area flex"
        style="background-image:url(<?php echo e($setting?->breadcrumb_image ? url($setting?->breadcrumb_image) : ''); ?>);">
        <div class="container">
            <div class="row">
                <div class="col-md-12">
                    <div class="banner-text">
                        <h1><?php echo e(__('Register')); ?></h1>
                        <ul>
                            <li><a href="<?php echo e(url('/')); ?>"><?php echo e(__('Home')); ?></a></li>
                            <li><span><?php echo e(__('Register')); ?></span></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--Banner End-->

    <!--Register Start-->
    <div class="register-area pt_70 pb_70">
        <div class="container wow fadeIn">
            <div class="row">
                <?php if(session()->get('text_direction') == 'rtl'): ?>
                    <div class="col-lg-3"></div>
                <?php endif; ?>
                <div class="col-md-8 col-lg-6 col-xl-5 col-xxl-4 m-auto">
                    <div class="login_area_bg">
                        <ul class="nav nav-pills" id="pills-tab" role="tablist">
                            <?php if($setting->patient_can_register): ?>
                                <?php if(!$setting->doctor_can_register): ?>
                                    <h4 class="text-center"><?php echo e(__('Register Today to Access Top Medical Care!')); ?></h4>
                                <?php else: ?>
                                    <li class="nav-item" role="presentation">
                                        <button class="nav-link <?php if(request('type') != 'doctor'): ?> active <?php endif; ?>"
                                            id="pills-contact-tab" data-bs-toggle="pill" data-bs-target="#pills-contact"
                                            type="button" role="tab" aria-controls="pills-contact"
                                            aria-selected="false"><?php echo e(__('Patient')); ?></button>
                                    </li>
                                <?php endif; ?>
                            <?php endif; ?>
                            <?php if($setting->doctor_can_register): ?>
                                <?php if(!$setting->patient_can_register): ?>
                                    <h4 class="text-center"><?php echo e(__('Register Today to Join Our Medical Team!')); ?></h4>
                                <?php else: ?>
                                    <li class="nav-item" role="presentation">
                                        <button class="nav-link <?php if(request('type') == 'doctor'): ?> active <?php endif; ?>"
                                            id="pills-disabled-tab" data-bs-toggle="pill" data-bs-target="#pills-disabled"
                                            type="button" role="tab" aria-controls="pills-disabled"
                                            aria-selected="false"><?php echo e(__('Doctor')); ?></button>
                                    </li>
                                <?php endif; ?>
                            <?php endif; ?>
                        </ul>
                        <div class="tab-content" id="pills-tabContent">
                            <?php if($setting->patient_can_register): ?>
                                <div class="tab-pane fade <?php if(request('type') != 'doctor' || !$setting->doctor_can_register): ?> show active <?php endif; ?>"
                                    id="pills-contact" role="tabpanel" aria-labelledby="pills-contact-tab" tabindex="0">
                                    <?php if(enum_exists('App\Enums\SocialiteDriverType')): ?>
                                        <?php
                                            $socialiteEnum = 'App\Enums\SocialiteDriverType';
                                        ?>
                                        <?php if($setting->google_login_status == 'active'): ?>
                                            <a href="<?php echo e(route('auth.social', $socialiteEnum::GOOGLE->value)); ?>"
                                                class="account__social-btn">
                                                <img src="<?php echo e(asset($socialiteEnum::GOOGLE_ICON->value)); ?>"
                                                    alt="img"><?php echo e(__('Continue with google')); ?>

                                            </a>
                                            <div class="account__divider">
                                                <span><?php echo e(__('or')); ?></span>
                                            </div>
                                        <?php endif; ?>
                                    <?php endif; ?>
                                    <div class="regiser-form login-form">
                                        <form action="<?php echo e(route('register')); ?>" method="POST">
                                            <?php echo csrf_field(); ?>
                                            <div class="form-row row">
                                                <div class="col-12">
                                                    <label for="name"><?php echo e(__('Name')); ?></label>
                                                    <input name="name" type="text" id="name" class="form-control"
                                                        value="<?php echo e(old('name')); ?>">
                                                </div>

                                                <div class="col-12">
                                                    <label for="email"><?php echo e(__('Email')); ?></label>
                                                    <input type="email" name="email" id="email" class="form-control"
                                                        value="<?php echo e(old('email')); ?>">
                                                </div>
                                                <div class="col-12">
                                                    <label for="password"><?php echo e(__('Password')); ?></label>
                                                    <input type="password" name="password" class="form-control"
                                                        id="password">
                                                </div>
                                                <div class="col-12">
                                                    <label for="password_confirmation"><?php echo e(__('Confirm Password')); ?></label>
                                                    <input type="password" name="password_confirmation" class="form-control"
                                                        id="password_confirmation">
                                                </div>
                                                <?php if($setting->recaptcha_status == 'active'): ?>
                                                    <div class="col-12">
                                                        <div class="g-recaptcha"
                                                            data-sitekey="<?php echo e($setting->recaptcha_site_key); ?>">
                                                        </div>
                                                    </div>
                                                <?php endif; ?>
                                                <div class="col-12">
                                                    <button type="submit"
                                                        class="btn btn-primary"><?php echo e(__('Register')); ?></button>
                                                </div>
                                            </div>
                                        </form>
                                        <p><?php echo e(__('Already have an account?')); ?> <a href="<?php echo e(route('login')); ?>"
                                                class="link"><?php echo e(__('Login')); ?></a></p>
                                    </div>
                                </div>
                            <?php endif; ?>
                            <?php if($setting->doctor_can_register): ?>
                                <div class="tab-pane fade <?php if(request('type') == 'doctor' || !$setting->patient_can_register): ?> show active <?php endif; ?>"
                                    id="pills-disabled" role="tabpanel" aria-labelledby="pills-disabled-tab" tabindex="0">
                                    <div class="regiser-form login-form">
                                        <form action="<?php echo e(route('doctor.register')); ?>" method="POST">
                                            <?php echo csrf_field(); ?>
                                            <div class="form-row row">
                                                <div class="col-12">
                                                    <label for="doctor_name"><?php echo e(__('Name')); ?></label>
                                                    <input name="name" type="text" id="doctor_name"
                                                        class="form-control" value="<?php echo e(old('name')); ?>">
                                                </div>
                                                <div class="col-12">
                                                    <label for="designations"><?php echo e(__('Designations')); ?></label>
                                                    <input name="designations" type="text" id="designations"
                                                        class="form-control" value="<?php echo e(old('designations')); ?>">
                                                </div>

                                                <div class="col-12">
                                                    <label for="doctor_email"><?php echo e(__('Email')); ?></label>
                                                    <input type="email" name="email" id="doctor_email"
                                                        class="form-control" value="<?php echo e(old('email')); ?>">
                                                </div>
                                                <div class="col-12">
                                                    <label for="doctor_phone"><?php echo e(__('Phone')); ?></label>
                                                    <input name="phone" type="text" id="doctor_phone"
                                                        class="form-control" value="<?php echo e(old('phone')); ?>">
                                                </div>
                                                <div class="col-12">
                                                    <label for="doctor_password"><?php echo e(__('Password')); ?></label>
                                                    <input type="password" name="password" class="form-control"
                                                        id="doctor_password">
                                                </div>
                                                <div class="col-12">
                                                    <label
                                                        for="doctor_password_confirmation"><?php echo e(__('Confirm Password')); ?></label>
                                                    <input type="password" name="password_confirmation"
                                                        class="form-control" id="doctor_password_confirmation">
                                                </div>
                                                <div class="col-12">
                                                    <label for="department_id"><?php echo e(__('Select Department')); ?></label>
                                                    <select class="form-select select2" name="department_id">
                                                        <option value=""><?php echo e(__('Select Department')); ?></option>
                                                        <?php $__currentLoopData = $departments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $department): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                            <option value="<?php echo e($department->id); ?>"
                                                                <?php if($department->id == old('department_id')): echo 'selected'; endif; ?>><?php echo e($department->name); ?>

                                                            </option>
                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    </select>
                                                </div>
                                                <div class="col-12">
                                                    <label for="location_id"><?php echo e(__('Select Location')); ?></label>
                                                    <select class="form-select select2" name="location_id">
                                                        <option value=""><?php echo e(__('Select Location')); ?></option>
                                                        <?php $__currentLoopData = $locations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $location): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                            <option value="<?php echo e($location->id); ?>"
                                                                <?php if($location->id == old('location_id')): echo 'selected'; endif; ?>>
                                                                <?php echo e($location->name); ?></option>
                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    </select>
                                                </div>
                                                <?php if($setting->recaptcha_status == 'active'): ?>
                                                    <div class="col-12">
                                                        <div class="g-recaptcha"
                                                            data-sitekey="<?php echo e($setting->recaptcha_site_key); ?>"></div>
                                                    </div>
                                                <?php endif; ?>
                                                <div class="col-12">
                                                    <button type="submit"
                                                        class="btn btn-primary"><?php echo e(__('Register')); ?></button>
                                                </div>
                                            </div>
                                        </form>
                                        <p><?php echo e(__('Already have an account?')); ?> <a
                                                href="<?php echo e(route('login', ['type' => 'doctor'])); ?>"
                                                class="link"><?php echo e(__('Login')); ?></a></p>
                                    </div>
                                </div>
                            <?php endif; ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--Register End-->
<?php $__env->stopSection(); ?>
<?php $__env->startPush('js'); ?>
    <script src="https://www.google.com/recaptcha/api.js" async defer></script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('layouts.patient.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\laragon\www\docment_latest\main_files\resources\views/patient/profile/auth/register.blade.php ENDPATH**/ ?>