<?php $__env->startSection('page-title'); ?>
    <?php echo e(__('Register')); ?>

<?php $__env->stopSection(); ?>
<?php
    $settings = Utility::settings();
    $logo = \App\Models\Utility::get_file('uploads/logo');
    $setting = \Modules\LandingPage\Entities\LandingPageSetting::settings();

?>
<?php $__env->startPush('custom-scripts'); ?>
    <?php if($settings['recaptcha_module'] == 'on'): ?>
        <?php echo NoCaptcha::renderJs(); ?>

    <?php endif; ?>
<?php $__env->stopPush(); ?>
<?php if($settings['cust_darklayout'] == 'on'): ?>
    <style>
        .g-recaptcha {
            filter: invert(1) hue-rotate(180deg) !important;
        }
    </style>
<?php endif; ?>
<?php
    $languages = App\Models\Utility::languages();
?>
<?php $__env->startSection('language-bar'); ?>
    <div class="lang-dropdown-only-desk">
        <li class="dropdown dash-h-item drp-language">
            <a class="dash-head-link dropdown-toggle btn" href="#" data-bs-toggle="dropdown" aria-expanded="false">
                <span class="drp-text"> <?php echo e($languages[$lang]); ?>

                </span>
            </a>
            <div class="dropdown-menu dash-h-dropdown dropdown-menu-end">
                <?php $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $code => $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <a href="<?php echo e(route('register', [$ref, $code])); ?>" tabindex="0" class="dropdown-item ">
                        <span><?php echo e(Str::ucfirst($language)); ?></span>
                    </a>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
        </li>
    </div>
<?php $__env->stopSection(); ?>

<?php
    $countryGroups = [
        'East Africa' => ['Burundi' => 'Burundi', 'Comoros' => 'Comoros', 'Djibouti' => 'Djibouti', 'DR Congo' => 'DR Congo', 'Eritrea' => 'Eritrea', 'Ethiopia' => 'Ethiopia', 'Kenya' => 'Kenya', 'Madagascar' => 'Madagascar', 'Malawi' => 'Malawi', 'Mauritius' => 'Mauritius', 'Mozambique' => 'Mozambique', 'Rwanda' => 'Rwanda', 'Seychelles' => 'Seychelles', 'Somalia' => 'Somalia', 'South Sudan' => 'South Sudan', 'Tanzania' => 'Tanzania', 'Uganda' => 'Uganda', 'Zambia' => 'Zambia', 'Zimbabwe' => 'Zimbabwe'],
        'Rest of Africa' => ['Algeria' => 'Algeria', 'Angola' => 'Angola', 'Benin' => 'Benin', 'Botswana' => 'Botswana', 'Burkina Faso' => 'Burkina Faso', 'Cameroon' => 'Cameroon', 'Cape Verde' => 'Cape Verde', 'Central African Republic' => 'Central African Republic', 'Chad' => 'Chad', 'Congo' => 'Congo', "Cote d'Ivoire" => "Cote d'Ivoire", 'Egypt' => 'Egypt', 'Equatorial Guinea' => 'Equatorial Guinea', 'Eswatini' => 'Eswatini', 'Gabon' => 'Gabon', 'Gambia' => 'Gambia', 'Ghana' => 'Ghana', 'Guinea' => 'Guinea', 'Guinea-Bissau' => 'Guinea-Bissau', 'Liberia' => 'Liberia', 'Libya' => 'Libya', 'Mali' => 'Mali', 'Mauritania' => 'Mauritania', 'Morocco' => 'Morocco', 'Namibia' => 'Namibia', 'Niger' => 'Niger', 'Nigeria' => 'Nigeria', 'Sao Tome and Principe' => 'Sao Tome and Principe', 'Senegal' => 'Senegal', 'Sierra Leone' => 'Sierra Leone', 'South Africa' => 'South Africa', 'Sudan' => 'Sudan', 'Togo' => 'Togo', 'Tunisia' => 'Tunisia'],
        'Rest of World' => ['Afghanistan' => 'Afghanistan', 'Albania' => 'Albania', 'Andorra' => 'Andorra', 'Argentina' => 'Argentina', 'Armenia' => 'Armenia', 'Australia' => 'Australia', 'Austria' => 'Austria', 'Azerbaijan' => 'Azerbaijan', 'Bahrain' => 'Bahrain', 'Bangladesh' => 'Bangladesh', 'Belgium' => 'Belgium', 'Brazil' => 'Brazil', 'Bulgaria' => 'Bulgaria', 'Canada' => 'Canada', 'China' => 'China', 'Croatia' => 'Croatia', 'Cyprus' => 'Cyprus', 'Czech Republic' => 'Czech Republic', 'Denmark' => 'Denmark', 'Finland' => 'Finland', 'France' => 'France', 'Germany' => 'Germany', 'India' => 'India', 'Iraq' => 'Iraq', 'Ireland' => 'Ireland', 'Israel' => 'Israel', 'Italy' => 'Italy', 'Japan' => 'Japan', 'Jordan' => 'Jordan', 'Kuwait' => 'Kuwait', 'Malaysia' => 'Malaysia', 'Netherlands' => 'Netherlands', 'New Zealand' => 'New Zealand', 'Norway' => 'Norway', 'Oman' => 'Oman', 'Pakistan' => 'Pakistan', 'Philippines' => 'Philippines', 'Poland' => 'Poland', 'Portugal' => 'Portugal', 'Qatar' => 'Qatar', 'Romania' => 'Romania', 'Russia' => 'Russia', 'Saudi Arabia' => 'Saudi Arabia', 'Singapore' => 'Singapore', 'Spain' => 'Spain', 'Sri Lanka' => 'Sri Lanka', 'Sweden' => 'Sweden', 'Switzerland' => 'Switzerland', 'Thailand' => 'Thailand', 'Turkey' => 'Turkey', 'Ukraine' => 'Ukraine', 'United Arab Emirates' => 'United Arab Emirates', 'United Kingdom' => 'United Kingdom', 'United States' => 'United States', 'Uzbekistan' => 'Uzbekistan', 'Vietnam' => 'Vietnam', 'Yemen' => 'Yemen']
    ];

    $stateGroups = [
        'Kenya (47 Counties)' => ['Baringo' => 'Baringo', 'Bomet' => 'Bomet', 'Bungoma' => 'Bungoma', 'Busia' => 'Busia', 'Elgeyo-Marakwet' => 'Elgeyo-Marakwet', 'Embu' => 'Embu', 'Garissa' => 'Garissa', 'Homa Bay' => 'Homa Bay', 'Isiolo' => 'Isiolo', 'Kajiado' => 'Kajiado', 'Kakamega' => 'Kakamega', 'Kericho' => 'Kericho', 'Kiambu' => 'Kiambu', 'Kilifi' => 'Kilifi', 'Kirinyaga' => 'Kirinyaga', 'Kisii' => 'Kisii', 'Kisumu' => 'Kisumu', 'Kitui' => 'Kitui', 'Kwale' => 'Kwale', 'Laikipia' => 'Laikipia', 'Lamu' => 'Lamu', 'Machakos' => 'Machakos', 'Makueni' => 'Makueni', 'Mandera' => 'Mandera', 'Marsabit' => 'Marsabit', 'Meru' => 'Meru', 'Migori' => 'Migori', 'Mombasa' => 'Mombasa', 'Muranga' => 'Muranga', 'Nairobi' => 'Nairobi', 'Nakuru' => 'Nakuru', 'Nandi' => 'Nandi', 'Narok' => 'Narok', 'Nyamira' => 'Nyamira', 'Nyandarua' => 'Nyandarua', 'Nyeri' => 'Nyeri', 'Samburu' => 'Samburu', 'Siaya' => 'Siaya', 'Taita-Taveta' => 'Taita-Taveta', 'Tana River' => 'Tana River', 'Tharaka-Nithi' => 'Tharaka-Nithi', 'Trans Nzoia' => 'Trans Nzoia', 'Turkana' => 'Turkana', 'Uasin Gishu' => 'Uasin Gishu', 'Vihiga' => 'Vihiga', 'Wajir' => 'Wajir', 'West Pokot' => 'West Pokot'],
        'East Africa Regions' => ['Central' => 'Central', 'Eastern' => 'Eastern', 'Northern' => 'Northern', 'Western' => 'Western', 'Karamoja' => 'Karamoja', 'Kigali' => 'Kigali', 'Arusha' => 'Arusha', 'Dar es Salaam' => 'Dar es Salaam', 'Dodoma' => 'Dodoma'],
        'GCC Regions' => ['Abu Dhabi' => 'Abu Dhabi', 'Ajman' => 'Ajman', 'Dubai' => 'Dubai', 'Fujairah' => 'Fujairah', 'Ras Al Khaimah' => 'Ras Al Khaimah', 'Sharjah' => 'Sharjah', 'Umm Al Quwain' => 'Umm Al Quwain', 'Riyadh' => 'Riyadh', 'Makkah' => 'Makkah', 'Madinah' => 'Madinah', 'Ad Dawhah' => 'Ad Dawhah', 'Muscat' => 'Muscat'],
        'Europe Regions' => ['England' => 'England', 'Scotland' => 'Scotland', 'Wales' => 'Wales', 'Northern Ireland' => 'Northern Ireland', 'Berlin' => 'Berlin', 'Bavaria' => 'Bavaria', 'Ile-de-France' => 'Ile-de-France', 'Madrid' => 'Madrid', 'Lazio' => 'Lazio', 'Lombardy' => 'Lombardy', 'Vienna' => 'Vienna', 'Zurich' => 'Zurich']
    ];
?>
<?php $__env->startSection('content'); ?>
    <div class="card-body">
        <div>
            <h2 class="mb-3 f-w-600"><?php echo e(__('Register')); ?></h2>
        </div>
        <form method="POST" action="<?php echo e(route('register.store', ['plan' => $plan])); ?>" class='needs-validation' novalidate>
            <?php if(session('status')): ?>
                <div class="mb-4 font-medium text-lg text-green-600 text-danger">
                    <?php echo e(__('Email SMTP settings does not configured so please contact to your site admin.')); ?>

                </div>
            <?php endif; ?>
            <?php echo csrf_field(); ?>
            <div class="">
                <div class="form-group mb-3">
                    <label for="name" class="form-label"><?php echo e(__('Name')); ?></label>
                    <input id="name" type="text" class="form-control <?php $__errorArgs = ['name'];
$__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="name" value="<?php echo e(old('name')); ?>" autocomplete="name" autofocus
                        placeholder="<?php echo e(__('Enter Name')); ?>" required="required">
                    <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class="invalid-feedback" role="alert">
                            <strong><?php echo e($message); ?></strong>
                        </span>
                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                </div>
                <div class="form-group mb-3">
                    <label for="email" class="form-label"><?php echo e(__('Email')); ?></label>
                    <input class="form-control <?php $__errorArgs = ['email'];
$__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); ?>" id="email" type="email"
                        name="email" value="<?php echo e(old('email')); ?>" autocomplete="email" autofocus
                        placeholder="<?php echo e(__('Enter Email')); ?>" required="required">
                    <?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class="invalid-feedback" role="alert">
                            <strong><?php echo e($message); ?></strong>
                        </span>
                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    
                </div>
                <div class="form-group mb-3">
                    <label for="password" class="form-label"><?php echo e(__('Password')); ?></label>
                    <input id="password" type="password" data-indicator="pwindicator"
                        class="form-control pwstrength <?php $__errorArgs = ['password'];
$__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="password"
                        autocomplete="new-password" placeholder="<?php echo e(__('Enter Password')); ?>" required="required">
                    <?php $__errorArgs = ['password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class="invalid-feedback" role="alert">
                            <strong><?php echo e($message); ?></strong>
                        </span>
                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    <div id="pwindicator" class="pwindicator">
                        <div class="bar"></div>
                        <div class="label"></div>
                    </div>
                </div>
                <div class="form-group mb-3">
                    <label for="password_confirmation" class="form-label"><?php echo e(__('Password Confirmation')); ?></label>
                    <input id="password_confirmation" type="password" data-indicator="password_confirmation"
                        class="form-control pwstrength <?php $__errorArgs = ['password_confirmation'];
$__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="password_confirmation" autocomplete="new-password"
                        placeholder="<?php echo e(__('Enter Confirm Password')); ?>" required="required">
                    <?php $__errorArgs = ['password_confirmation'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class="invalid-feedback" role="alert">
                            <strong><?php echo e($message); ?></strong>
                        </span>
                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    <div id="password_confirmation" class="pwindicator">
                        <div class="bar"></div>
                        <div class="label"></div>
                    </div>
                </div>
                
                <hr class="my-3">
                <h6 class="mb-3 text-muted fw-semibold"><?php echo e(__('Company Information')); ?></h6>
                <div class="form-group mb-3">
                    <label for="company_name" class="form-label"><?php echo e(__('Company Name')); ?></label>
                    <input id="company_name" type="text" class="form-control <?php $__errorArgs = ['company_name'];
$__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="company_name" value="<?php echo e(old('company_name')); ?>"
                        placeholder="<?php echo e(__('Enter Company Name')); ?>">
                    <?php $__errorArgs = ['company_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class="invalid-feedback" role="alert"><strong><?php echo e($message); ?></strong></span>
                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                </div>
                <div class="form-group mb-3">
                    <label for="phone" class="form-label"><?php echo e(__('Contact Number')); ?></label>
                    <div class="input-group">
                        <select name="phone_code" class="form-select" style="max-width:115px;flex:0 0 115px;" aria-label="<?php echo e(__('Country code')); ?>">
                            <optgroup label="East Africa">
                                <option value="+254" <?php echo e(old('phone_code','+254')=='+254'?'selected':''); ?>>KE +254</option>
                                <option value="+255" <?php echo e(old('phone_code')=='+255'?'selected':''); ?>>TZ +255</option>
                                <option value="+256" <?php echo e(old('phone_code')=='+256'?'selected':''); ?>>UG +256</option>
                                <option value="+250" <?php echo e(old('phone_code')=='+250'?'selected':''); ?>>RW +250</option>
                                <option value="+257" <?php echo e(old('phone_code')=='+257'?'selected':''); ?>>BI +257</option>
                                <option value="+211" <?php echo e(old('phone_code')=='+211'?'selected':''); ?>>SS +211</option>
                                <option value="+251" <?php echo e(old('phone_code')=='+251'?'selected':''); ?>>ET +251</option>
                                <option value="+252" <?php echo e(old('phone_code')=='+252'?'selected':''); ?>>SO +252</option>
                                <option value="+253" <?php echo e(old('phone_code')=='+253'?'selected':''); ?>>DJ +253</option>
                                <option value="+291" <?php echo e(old('phone_code')=='+291'?'selected':''); ?>>ER +291</option>
                            </optgroup>
                            <optgroup label="Rest of Africa">
                                <option value="+20"  <?php echo e(old('phone_code')=='+20' ?'selected':''); ?>>EG +20</option>
                                <option value="+234" <?php echo e(old('phone_code')=='+234'?'selected':''); ?>>NG +234</option>
                                <option value="+233" <?php echo e(old('phone_code')=='+233'?'selected':''); ?>>GH +233</option>
                                <option value="+27"  <?php echo e(old('phone_code')=='+27' ?'selected':''); ?>>ZA +27</option>
                                <option value="+212" <?php echo e(old('phone_code')=='+212'?'selected':''); ?>>MA +212</option>
                                <option value="+216" <?php echo e(old('phone_code')=='+216'?'selected':''); ?>>TN +216</option>
                                <option value="+237" <?php echo e(old('phone_code')=='+237'?'selected':''); ?>>CM +237</option>
                                <option value="+260" <?php echo e(old('phone_code')=='+260'?'selected':''); ?>>ZM +260</option>
                                <option value="+263" <?php echo e(old('phone_code')=='+263'?'selected':''); ?>>ZW +263</option>
                            </optgroup>
                            <optgroup label="Rest of World">
                                <option value="+971" <?php echo e(old('phone_code')=='+971'?'selected':''); ?>>AE +971</option>
                                <option value="+966" <?php echo e(old('phone_code')=='+966'?'selected':''); ?>>SA +966</option>
                                <option value="+974" <?php echo e(old('phone_code')=='+974'?'selected':''); ?>>QA +974</option>
                                <option value="+91"  <?php echo e(old('phone_code')=='+91' ?'selected':''); ?>>IN +91</option>
                                <option value="+86"  <?php echo e(old('phone_code')=='+86' ?'selected':''); ?>>CN +86</option>
                                <option value="+44"  <?php echo e(old('phone_code')=='+44' ?'selected':''); ?>>UK +44</option>
                                <option value="+1"   <?php echo e(old('phone_code')=='+1'  ?'selected':''); ?>>US +1</option>
                                <option value="+49"  <?php echo e(old('phone_code')=='+49' ?'selected':''); ?>>DE +49</option>
                                <option value="+33"  <?php echo e(old('phone_code')=='+33' ?'selected':''); ?>>FR +33</option>
                                <option value="+61"  <?php echo e(old('phone_code')=='+61' ?'selected':''); ?>>AU +61</option>
                            </optgroup>
                        </select>
                        <input id="phone" type="number" class="form-control <?php $__errorArgs = ['phone'];
$__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="phone" value="<?php echo e(old('phone')); ?>"
                            placeholder="<?php echo e(__('Enter number without leading 0')); ?>"
                            min="0" step="1" autocomplete="tel">
                        <style>
                            #phone::-webkit-outer-spin-button,
                            #phone::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
                            #phone { -moz-appearance: textfield; }
                        </style>
                        <?php $__errorArgs = ['phone'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <span class="invalid-feedback" role="alert"><strong><?php echo e($message); ?></strong></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    <div class="text-muted mt-1" style="font-size: 11px;">
                        <?php echo e(__('Input Phone No. without Zero (0) infront')); ?>

                    </div>
                </div>

                
                <hr class="my-3">
                <h6 class="mb-3 text-muted fw-semibold"><?php echo e(__('Billing Address')); ?></h6>
                <div class="row">
                    <div class="col-md-6 form-group mb-3">
                        <label for="billing_name" class="form-label"><?php echo e(__('Contact Name')); ?></label>
                        <input id="billing_name" type="text" class="form-control <?php $__errorArgs = ['billing_name'];
$__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="billing_name" value="<?php echo e(old('billing_name')); ?>"
                            placeholder="<?php echo e(__('Enter Name')); ?>">
                        <?php $__errorArgs = ['billing_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <span class="invalid-feedback" role="alert"><strong><?php echo e($message); ?></strong></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    <div class="col-md-6 form-group mb-3">
                        <label for="billing_phone" class="form-label"><?php echo e(__('Phone')); ?></label>
                        <div class="input-group">
                            <select name="billing_phone_code" class="form-select" style="max-width:115px;flex:0 0 115px;" aria-label="<?php echo e(__('Country code')); ?>">
                                <optgroup label="East Africa">
                                    <option value="+254" <?php echo e(old('billing_phone_code','+254')=='+254'?'selected':''); ?>>KE +254</option>
                                    <option value="+255" <?php echo e(old('billing_phone_code')=='+255'?'selected':''); ?>>TZ +255</option>
                                    <option value="+256" <?php echo e(old('billing_phone_code')=='+256'?'selected':''); ?>>UG +256</option>
                                    <option value="+250" <?php echo e(old('billing_phone_code')=='+250'?'selected':''); ?>>RW +250</option>
                                    <option value="+257" <?php echo e(old('billing_phone_code')=='+257'?'selected':''); ?>>BI +257</option>
                                    <option value="+211" <?php echo e(old('billing_phone_code')=='+211'?'selected':''); ?>>SS +211</option>
                                    <option value="+251" <?php echo e(old('billing_phone_code')=='+251'?'selected':''); ?>>ET +251</option>
                                    <option value="+252" <?php echo e(old('billing_phone_code')=='+252'?'selected':''); ?>>SO +252</option>
                                    <option value="+291" <?php echo e(old('billing_phone_code')=='+291'?'selected':''); ?>>ER +291</option>
                                </optgroup>
                                <optgroup label="Rest of Africa">
                                    <option value="+20"  <?php echo e(old('billing_phone_code')=='+20' ?'selected':''); ?>>EG +20</option>
                                    <option value="+234" <?php echo e(old('billing_phone_code')=='+234'?'selected':''); ?>>NG +234</option>
                                    <option value="+233" <?php echo e(old('billing_phone_code')=='+233'?'selected':''); ?>>GH +233</option>
                                    <option value="+27"  <?php echo e(old('billing_phone_code')=='+27' ?'selected':''); ?>>ZA +27</option>
                                    <option value="+212" <?php echo e(old('billing_phone_code')=='+212'?'selected':''); ?>>MA +212</option>
                                    <option value="+966" <?php echo e(old('billing_phone_code')=='+966'?'selected':''); ?>>SA +966</option>
                                    <option value="+971" <?php echo e(old('billing_phone_code')=='+971'?'selected':''); ?>>AE +971</option>
                                    <option value="+44"  <?php echo e(old('billing_phone_code')=='+44' ?'selected':''); ?>>UK +44</option>
                                    <option value="+1"   <?php echo e(old('billing_phone_code')=='+1'  ?'selected':''); ?>>US +1</option>
                                </optgroup>
                            </select>
                            <input id="billing_phone" type="number" class="form-control <?php $__errorArgs = ['billing_phone'];
$__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="billing_phone" value="<?php echo e(old('billing_phone')); ?>"
                                placeholder="<?php echo e(__('Enter number without leading 0')); ?>"
                                min="0" step="1" autocomplete="tel">
                            <style>
                                #billing_phone::-webkit-outer-spin-button,
                                #billing_phone::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
                                #billing_phone { -moz-appearance: textfield; }
                            </style>
                            <?php $__errorArgs = ['billing_phone'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <span class="invalid-feedback" role="alert"><strong><?php echo e($message); ?></strong></span>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                        <div class="text-muted mt-1" style="font-size: 11px;"><?php echo e(__('Input Phone No. without Zero (0) infront')); ?></div>
                    </div>
                </div>
                <div class="form-group mb-3">
                    <label for="billing_address" class="form-label"><?php echo e(__('Address')); ?></label>
                    <input id="billing_address" class="form-control <?php $__errorArgs = ['billing_address'];
$__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="billing_address" rows="3"
                        placeholder="<?php echo e(__('Enter Address')); ?>"><?php echo e(old('billing_address')); ?>

                    <?php $__errorArgs = ['billing_address'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class="invalid-feedback" role="alert"><strong><?php echo e($message); ?></strong></span>
                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                </div>
                <div class="row">
                    <div class="col-md-6 form-group mb-3">
                        <label for="billing_city" class="form-label"><?php echo e(__('City')); ?></label>
                        <input id="billing_city" type="text" class="form-control <?php $__errorArgs = ['billing_city'];
$__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="billing_city" value="<?php echo e(old('billing_city')); ?>"
                            placeholder="<?php echo e(__('Enter City')); ?>">
                        <?php $__errorArgs = ['billing_city'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <span class="invalid-feedback" role="alert"><strong><?php echo e($message); ?></strong></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    <div class="col-md-6 form-group mb-3">
                        <label for="billing_state" class="form-label"><?php echo e(__('County/State')); ?></label>
                        <select id="billing_state" name="billing_state" class="form-control <?php $__errorArgs = ['billing_state'];
$__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); ?>">
                            <?php $__currentLoopData = $stateGroups; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $group => $states): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <optgroup label="<?php echo e($group); ?>">
                                    <?php $__currentLoopData = $states; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $val => $label): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($val); ?>" <?php echo e(old('billing_state', 'Nairobi') === $val ? 'selected' : ''); ?>><?php echo e($label); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </optgroup>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </select>
                        <?php $__errorArgs = ['billing_state'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <span class="invalid-feedback" role="alert"><strong><?php echo e($message); ?></strong></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-6 form-group mb-3">
                        <label for="billing_zip" class="form-label"><?php echo e(__('Postal/Zip Code')); ?></label>
                        <input id="billing_zip" type="text" class="form-control <?php $__errorArgs = ['billing_zip'];
$__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="billing_zip" value="<?php echo e(old('billing_zip')); ?>"
                            placeholder="<?php echo e(__('Enter Postal/Zip Code')); ?>">
                        <?php $__errorArgs = ['billing_zip'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <span class="invalid-feedback" role="alert"><strong><?php echo e($message); ?></strong></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    <div class="col-md-6 form-group mb-3">
                        <label for="billing_country" class="form-label"><?php echo e(__('Country')); ?></label>
                        <select id="billing_country" name="billing_country" class="form-control <?php $__errorArgs = ['billing_country'];
$__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); ?>">
                            <?php $__currentLoopData = $countryGroups; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $group => $countries): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <optgroup label="<?php echo e($group); ?>">
                                    <?php $__currentLoopData = $countries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $val => $label): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($val); ?>" <?php echo e(old('billing_country', 'Kenya') === $val ? 'selected' : ''); ?>><?php echo e($label); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </optgroup>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </select>
                        <?php $__errorArgs = ['billing_country'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <span class="invalid-feedback" role="alert"><strong><?php echo e($message); ?></strong></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                </div>
                <hr class="my-3">

                <div class="form-check custom-checkbox">
                    <input type="checkbox" class="form-check-input" id="termsCheckbox" name="terms" required="required">
                    <label class="form-check-label text-sm" for="termsCheckbox"><?php echo e(__('I agree to the ')); ?>

                        <?php if(is_array(json_decode($setting['menubar_page'])) || is_object(json_decode($setting['menubar_page']))): ?>
                            <?php $__currentLoopData = json_decode($setting['menubar_page']); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php if(in_array($value->menubar_page_name, ['Terms and Conditions']) && isset($value->template_name)): ?>
                                    <a href="<?php echo e($value->template_name == 'page_content' ? route('custom.page', $value->page_slug) : $value->page_url); ?>"
                                        target="_blank"><?php echo e($value->menubar_page_name); ?></a>
                                <?php endif; ?>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php echo e(__('and the ')); ?>

                            <?php $__currentLoopData = json_decode($setting['menubar_page']); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php if(in_array($value->menubar_page_name, ['Privacy Policy']) && isset($value->template_name)): ?>
                                    <a href="<?php echo e($value->template_name == 'page_content' ? route('custom.page', $value->page_slug) : $value->page_url); ?>"
                                        target="_blank"><?php echo e($value->menubar_page_name); ?></a>
                                <?php endif; ?>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php endif; ?>
                    </label>
                </div>
                    <?php if($settings['recaptcha_module'] == 'on'): ?>
                    <?php if(isset($settings['google_recaptcha_version']) && $settings['google_recaptcha_version'] == 'v2-checkbox'): ?>
                        <div class="form-group col-lg-12 col-md-12 mt-3">
                            <?php echo NoCaptcha::display(); ?>

                            <?php $__errorArgs = ['g-recaptcha-response'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <span class="small text-danger" role="alert">
                                    <strong><?php echo e($message); ?></strong>
                                </span>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                    <?php else: ?>
                        <div class="form-group col-lg-12 col-md-12 mt-3">
                            <input type="hidden" id="g-recaptcha-response" name="g-recaptcha-response" class="form-control">
                            <?php $__errorArgs = ['g-recaptcha-response'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <span class="error small text-danger" role="alert">
                                    <strong><?php echo e($message); ?></strong>
                                </span>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                    <?php endif; ?>
                <?php endif; ?>

                <div class="d-grid">
                    <input type="hidden" name="ref_code" value="<?php echo e($ref); ?>">
                    <button type="submit" class="btn btn-primary btn-block mt-2"><?php echo e(__('Register')); ?></button>
                </div>

            </div>
            <p class="my-4 text-center"><?php echo e(__('Already have an account?')); ?> <a href="<?php echo e(route('login', $lang)); ?>"
                    class="text-primary"><?php echo e(__('Login')); ?></a></p>
        </form>

    </div>
<?php $__env->stopSection(); ?>
<?php if(isset($settings['recaptcha_module']) && $settings['recaptcha_module'] == 'on'): ?>
    <?php if(isset($settings['google_recaptcha_version']) && $settings['google_recaptcha_version'] == 'v2-checkbox'): ?>
        <?php echo NoCaptcha::renderJs(); ?>

    <?php else: ?>
        <script src="https://www.google.com/recaptcha/api.js?render=<?php echo e($settings['google_recaptcha_key']); ?>"></script>
        <script>
            $(document).ready(function() {
                grecaptcha.ready(function() {
                    grecaptcha.execute('<?php echo e($settings['google_recaptcha_key']); ?>', {
                        action: 'submit'
                    }).then(function(token) {
                        $('#g-recaptcha-response').val(token);
                    });
                });
            });
        </script>
    <?php endif; ?>
<?php endif; ?>

<?php echo $__env->make('layouts.auth', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\FromHardDisk\Davies\CleverSys\The Systems\erp.cleversys.co.ke\resources\views/auth/register.blade.php ENDPATH**/ ?>