| Server IP : 46.62.235.243 / Your IP : 216.73.216.217 Web Server : Apache/2.4.58 (Ubuntu) System : Linux Linkabili3Dicembre 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/linkabili/storage/framework/views/ |
Upload File : |
<div class="col-lg-12">
<div class="form-group">
<label for="states"><?php echo e($label); ?></label>
<div class="col-md-12">
<select class="form-control js-example-basic-multiple states_other" data-id="states_other" name="states[]" style="width:100% " multiple="multiple">
</select>
<?php if($errors->states): ?>
<span class="invalid-feedback" role="alert">
<strong><?php echo e($errors->first('states')); ?></strong>
</span>
<?php endif; ?>
</div>
</div>
</div>
<?php $__env->startPush('footersection'); ?>
<script type="text/javascript" charset="utf-8">
var STATES = <?php isset($user->states) ? print json_encode($user->states) : print 'null' ?>;
$(function () {
$('.js-example-basic-multiple').select2();
$('.states_other').select2();
$.ajax({
url: '/ajax/ajaxGetStates',
method: "GET",
dataType: 'json',
success: function (response, status) {
$('.states_other').empty().trigger("change");
$.each(response.data, function (key, val) {
newOption_website = new Option(val.provincia, val.id, false, false);
$('.states_other').append(newOption_website);
});
}
}).done(function () {
var array = [];
if (STATES != 'null') {
$.each(STATES, function (key, val) {
array.push(val.id);
});
$('.states_other').val(array);
$('.states_other').trigger('change');
}
});
});
</script>
<?php $__env->stopPush(); ?>
<?php /**PATH /var/www/linkabili/resources/views/frontend/profile/components/states.blade.php ENDPATH**/ ?>