HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/vhost/disk-apps/teamdemo.sports-crowd.com/resources/views/coupons/editCoupons.blade.php
@extends('modules.head') @section('contenido')
<h3>
    <a class="ruta" class="" href="{{ url('/coupons') }}">{{ Lang::get('messages.screen_coupon_tag1') }} </a>
    <span class="separador-ruta">|</span>
    <a class="ruta" class="" href="{{ url('/coupons/edit/' . $coupons->id) }}">
        {{ Lang::get('messages.screen_coupon_tag10') }}
    </a>
</h3>

<div class="box">
    <div class="box-header with-border">
        <h3 class="box-title">{{ Lang::get('messages.screen_coupon_tag1') }}</h3>


        <!-- /.box-tools -->
    </div>
    <!-- /.box-header -->
    <div class="box-body">
        <form method="POST" id="editCoupon" object_id="{{ $coupons->id }}">
            @method('PUT')
            @include('coupons.form')
            @include('layouts.button_edit')
        </form>
    </div>
    <!-- /.box-body -->
</div>
@endsection
<script src="{{ asset('js/jQuery/jquery-2.2.3.min.js') }}"></script>
<script src="{{ asset('js/coupon.js') . '?v=' . time() }}"></script>
<script src="{{ asset('js/bootstrap/js/bootstrap.min.js') }}"></script>
<script type="text/javascript">
    $(document).ready(function() {
        $('#coupon_image').prop('required', false);

        var quantity = <?php echo json_encode($coupons->quantity); ?>;
        $('#quantity_options').val(quantity > 1 ? 'custom' : quantity);
        changeQuantity(quantity);

        var quantityPerUser = <?php echo json_encode($coupons->quantity_per_user); ?>;
        $('#quantity_per_user_options').val(quantityPerUser > 1 ? 'custom' : quantityPerUser);
        changeQuantityPerUser(quantityPerUser);


        // -----------------------------------------segmentation--------------------------------------------------------
        $('.select2').select2();
        var multiselectValues = <?php echo json_encode($multiselectValues); ?>;
        var multiselectValuesId = [];

        multiselectValues.forEach(function(valor, indice, array) {
            multiselectValuesId.push(valor.tag_id);
        });

        $('.select2').val(multiselectValuesId).change();
        // ---------------------------------------END_segmentation------------------------------------------------------
    });
</script>