Файловый менеджер - Редактировать - /home/clickysoft/public_html/travel-guru.clickysoft.net/storage/framework/views/98d3393c963f675c1182958d3c331f51.php
Назад
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Travel Gurus - Signup</title> <link rel="icon" type="image/x-icon" href="images/fav-icon.png" /> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous" /> <link href="<?php echo e(asset('assets/front/css/main.css')); ?>" rel="stylesheet" /> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous" /> <link rel="stylesheet" href="<?php echo e(asset('assets/admin/vendor/libs/tagify/tagify.css')); ?>"> </head> <body class="body-left-img signup-body-left-img"> <!-- FORM FIELDS SECTION BEGIN --> <section class="from-fields-sec signup-from-fields-sec"> <div class="container-fluid"> <div class="row"> <div class="col-lg-6 col-md-6 col-sm-6 col-6"> <div class="form-fields-left-logo"> <a href="<?php echo e(route('home')); ?>"><img src="<?php echo e(asset('assets/front/images/logo.png')); ?>" alt="image" class="img-fluid" /></a> </div> </div> <div class="col-lg-6 col-md-6 col-sm-6 col-6"> <div class="form-field-btn"> <a href="<?php echo e(route('login')); ?>" class="btn btn-primary">Login</a> </div> </div> </div> <div class="row form-field-row"> <div class="col-lg-6 offset-lg-6 col-md-0 offset-md-0 col-sm-0 offset-sm-0 col-12"> <div class="form-content"> <h3>SIGN UP</h3> <?php if(session('verified')): ?> <div class="alert alert-success"> <?php echo e(session('verified')); ?> </div> <?php endif; ?> <div class="tile" id="tile-1"> <ul class="nav nav-tabs nav-justified" role="tablist"> <div class="slider"></div> <li class="nav-item"> <a class="nav-link <?php echo e($activeTab == 'customer' ? 'active' : ''); ?>" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home" aria-selected="<?php echo e($activeTab == 'customer' ? 'true' : 'false'); ?>"> Customer</a> </li> <li class="nav-item"> <a class="nav-link <?php echo e($activeTab == 'agent' ? 'active' : ''); ?>" id="profile-tab" data-toggle="tab" href="#profile" role="tab" aria-controls="profile" aria-selected="<?php echo e($activeTab == 'agent' ? 'true' : 'false'); ?>"> Agent</a> </li> </ul> <div class="tab-content"> <div class="tab-pane fade <?php echo e($activeTab === null ?? 'active show'); ?> <?php echo e($activeTab == 'customer' ? 'active show' : ''); ?>" id="home" role="tabpanel" aria-labelledby="home-tab"> <?php echo $__env->make('front.authentication.customer-sign-form', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <div class="dont-have-sign"> <p> Have an account? <a href="<?php echo e(route('login')); ?>">LOGIN</a> </p> </div> </div> <div class="tab-pane fade <?php echo e($activeTab == 'agent' ? 'active show' : ''); ?>" id="profile" role="tabpanel" aria-labelledby="profile-tab"> <?php echo $__env->make('front.authentication.agent-sign-form', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <div class="dont-have-sign"> <p> Have an account? <a href="<?php echo e(route('login')); ?>">LOGIN</a> </p> </div> </div> </div> </div> </div> </div> </div> </div> </section> <!-- FORM FIELDS SECTION END --> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> </script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns" crossorigin="anonymous"> </script> <script src="<?php echo e(asset('assets/admin/vendor/libs/tagify/tagify.js')); ?>"></script> <script> // TABS SCRIPT BEGIN $(document).ready(function() { $('.phone-input').on('input', function() { const validInput = this.value.replace(/[a-zA-Z]/g, ''); this.value = validInput; }); const $navTabs = $("#tile-1 .nav-tabs"); const $slider = $("#tile-1 .slider"); function updateSliderPosition() { let $activeTab = $navTabs.find(".active").parent("li"); $slider.css({ left: $activeTab.position().left, width: $activeTab.width() }); } $navTabs.on("click", "a", function() { setTimeout(updateSliderPosition, 100); // Delay to wait for the tab transition }); // Initial positioning setTimeout(updateSliderPosition, 100); }); // TABS SCRIPT END // EYE ICON HIDE & SHOW PASSWORD SCRIPT BEGIN function togglePassword(eyeIcon) { const passwordField = eyeIcon.closest(".login-field").querySelector(".password-field"); const isPassword = passwordField.type === "password"; passwordField.type = isPassword ? "text" : "password"; eyeIcon.classList.toggle("fa-eye", !isPassword); eyeIcon.classList.toggle("fa-eye-slash", isPassword); } // EYE ICON HIDE & SHOW PASSWORD SCRIPT END // TAGIFY SCRIPT BEGIN $(document).ready(function() { //Destination var $destinationSelect = $('#destinationSelect'); var destinationInput = document.querySelector('input[name="destinationsTagify"]'); var hiddenDestinationInput = document.querySelector('input[name="destinations"]'); var selectedDestinations = <?php echo json_encode($destinationsData); ?>; $('#destinationSelect').on('change', function() { var selectedDestinations = $(this).val(); // Get selected destinations fetchCountriesByDestinations( selectedDestinations); // Call the function with selected destinations }); var oldDestinations = "<?php echo e(old('destinations')); ?>".split(',').filter(function(item) { return item.trim().length > 0; }); console.log(oldDestinations); // Initialize Tagify var destinationTagify = new Tagify(destinationInput, { enforceWhitelist: true, whitelist: selectedDestinations, dropdown: { maxItems: 200, enabled: 0, closeOnSelect: false } }); // Check for old destinations from validation error if (oldDestinations.length > 1) { hiddenDestinationInput.value = oldDestinations.join(','); } destinationTagify.on('change', function() { var selectedDestinationIds = destinationTagify.value.map(tag => tag.name); hiddenDestinationInput.value = selectedDestinationIds.join(','); // Clear hidden input if no destinations are selected if (selectedDestinationIds.length === 0) { hiddenDestinationInput.value = ''; } }); function fetchCountriesByDestinations(selectedDestinations) { $.ajax({ url: '<?php echo e(route('get.countries.by.destination')); ?>', type: 'GET', data: { destination_ids: selectedDestinations // Adjusted payload }, success: function(countries) { var currentTags = countryTagify.value.map(tag => tag.value); countryTagify.settings.whitelist = countries.map(country => ({ value: country.value, name: country.name })); var newTags = currentTags.filter(tagValue => countryTagify.settings.whitelist.some(country => country.value === tagValue) ); countryTagify.removeAllTags(); countryTagify.addTags(newTags); $countryField.show(); } }); } <?php $__errorArgs = ['destinations']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> // Clear the Tagify input if there's an error and old value is empty destinationTagify.removeAllTags(); hiddenDestinationInput.value = ''; <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> // TODO: Phase 2 remove comment below code // var $countryField = $('#countrySelect').closest('.form-label-xont'); // var countryInput = document.querySelector('input[name="countriesTagify"]'); // var hiddenCountryInput = document.querySelector('input[name="countries"]'); // var countryTagify = new Tagify(countryInput, { // enforceWhitelist: true, // whitelist: [], // dropdown: { // maxItems: 200, // enabled: 0, // closeOnSelect: false // } // }); // var oldCountries = "<?php echo e(old('countries')); ?>".split(',').filter(function(item) { // return item.trim().length > 0; // }); // if (oldCountries.length > 0) { // countryTagify.addTags(oldCountries); // hiddenCountryInput.value = oldCountries.join(','); // } // countryTagify.on('change', function() { // var selectedCountryIds = countryTagify.value.map(tag => tag.name); // hiddenCountryInput.value = selectedCountryIds.join(','); // // Clear hidden input if no destinations are selected // if (selectedCountryIds.length === 0) { // hiddenCountryInput.value = ''; // } // }); // <?php $__errorArgs = ['countries']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> // // Clear the Tagify input if there's an error and old value is empty // countryTagify.removeAllTags(); // hiddenCountryInput.value = ''; // var selectedDestinations = $('#destinationSelect').val(); // Get selected destinations // fetchCountriesByDestinations( // selectedDestinations); // Call the function with selected destinations // <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> // $destinationSelect.on('change', function() { // var selectedDestinations = $(this).val(); // if (selectedDestinations && selectedDestinations.length > 0) { // $("#countryField").show(); // $.ajax({ // url: '<?php echo e(route('get.countries.by.destination')); ?>', // type: 'GET', // data: { // destination_ids: selectedDestinations // }, // success: function(countries) { // var currentTags = countryTagify.value.map(tag => tag.value); // countryTagify.settings.whitelist = countries.map(country => ({ // value: country.value, // name: country.name // })); // var newTags = currentTags.filter(tagValue => // countryTagify.settings.whitelist.some(country => country // .value === tagValue) // ); // countryTagify.removeAllTags(); // countryTagify.addTags(newTags); // $countryField.show(); // } // }); // } else { // $countryField.hide(); // countryTagify.removeAllTags(); // } // }); }); // TAGIFY SCRIPT END </script> </body> </html> <?php /**PATH /home/clickysoft/public_html/travel-guru.clickysoft.net/resources/views/front/authentication/sign-up.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка