Edit File: 011ce4bc7108bdcc413dc14009649c28947faec9.php
<?php $__env->startSection('css'); ?> <link rel="stylesheet" type="text/css" href="<?php echo e(asset('admin/app-assets/vendors/css/extensions/sweetalert2.min.css')); ?>"> <link rel="stylesheet" type="text/css" href="<?php echo e(asset('admin/app-assets/vendors/css/extensions/toastr.css')); ?>"> <link rel="stylesheet" type="text/css" href="<?php echo e(asset('admin/app-assets/css-rtl/plugins/extensions/toastr.css')); ?>"> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="card "> <div class="card-content"> <div class="card-body"> <div class="row"> <?php $__currentLoopData = $smss; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sms): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-12 col-md-6"> <div class="one-sms d-flex justify-content-center align-items-baseline mb-1 " > <span class="mr-1 ml-1" for=""><?php echo e($sms->name); ?></span> <input type="radio" <?php echo e($sms->active == 1 ? 'checked' : ''); ?> class="change-sms" name="id" id="<?php echo e($sms->id); ?>"> </div> <form method="POST" action="<?php echo e(route('admin.sms.update' , ['id' => $sms->id])); ?>" class="update form-horizontal" novalidate> <?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?> <div class="form-body"> <div class="sms"> <div class="col-md-12 col-12"> <div class="form-group"> <label for="first-name-column"><?php echo e(__('admin.type_the_name_of_the_sender')); ?></label> <div class="controls"> <input type="text" value="<?php echo e($sms->sender_name); ?>" name="sender_name" class="form-control" placeholder="<?php echo e(__('admin.type_the_name_of_the_sender')); ?>" required data-validation-required-message="<?php echo e(__('admin.this_field_is_required')); ?>" > </div> </div> </div> <div class="col-md-12 col-12"> <div class="form-group"> <label for="first-name-column"><?php echo e(__('admin.type_the_user_name')); ?></label> <div class="controls"> <input type="text" value="<?php echo e($sms->user_name); ?>" name="user_name" class="form-control" placeholder="<?php echo e(__('admin.type_the_user_name')); ?>" required data-validation-required-message="<?php echo e(__('admin.this_field_is_required')); ?>" > </div> </div> </div> <div class="col-md-12 col-12"> <div class="form-group"> <label for="first-name-column"><?php echo e(__('admin.type_the_password')); ?></label> <div class="controls"> <input type="text" value="<?php echo e($sms->password); ?>" name="password" class="form-control" placeholder="<?php echo e(__('admin.type_the_password')); ?>" required data-validation-required-message="<?php echo e(__('admin.this_field_is_required')); ?>" > </div> </div> </div> <div class="col-12 d-flex justify-content-center mb-2"> <button type="submit" class="submit_button btn btn-primary mr-1 mb-1 submit_button"><?php echo e(__('admin.modernization')); ?></button> </div> </div> </div> </form> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('js'); ?> <script src="<?php echo e(asset('admin/app-assets/vendors/js/extensions/toastr.min.js')); ?>"></script> <script src="<?php echo e(asset('admin/app-assets/vendors/js/extensions/sweetalert2.all.min.js')); ?>"></script> <script src="<?php echo e(asset('admin/app-assets/js/scripts/extensions/sweet-alerts.js')); ?>"></script> <script> $(document).ready(function(){ $(document).on('click','.change-sms',function(e){ $.ajax({ url: '<?php echo e(route("admin.sms.change")); ?>', method: 'post', data: {id : this.id }, dataType:'json', success: (response) => { toastr.success('<?php echo e(__('admin.the_package_has_been_successfully_activated')); ?>') }, }); }); $(document).on('submit','.update',function(e){ e.preventDefault(); var url = $(this).attr('action') $.ajax({ url: url, method: 'post', data: new FormData($(this)[0]), dataType:'json', processData: false, contentType: false, beforeSend: () => { $(this).find(".submit_button").html('<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>').attr('disable',true) }, success: (response) => { $(".text-danger").remove() $('.store input').removeClass('border-danger') $(this).find(".submit_button").html("<?php echo e(__('admin.modernization')); ?>").attr('disable',false) Swal.fire({ position: 'top-start', type: 'success', title: '<?php echo e(__('admin.the_package_has_been_successfully_activated')); ?>', showConfirmButton: false, timer: 1500, confirmButtonClass: 'btn btn-primary', buttonsStyling: false, }) }, error: (xhr) =>{ $(".text-danger").remove() $('.store input').removeClass('border-danger') $(this).find(".submit_button").html("<?php echo e(__('admin.modernization')); ?>").attr('disable',false) $.each(xhr.responseJSON.errors, function(key,value) { toastr.error(value) }); }, }); }); }); </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('admin.layout.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/thunderw/public_html/resources/views/admin/sms/index.blade.php ENDPATH**/ ?>
Back to File Manager