Edit File: 459038cd83d889890425eb8decf8d22ba2a0722e.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')); ?>"> <style> /*======================================================== DARK LAYOUT =========================================================*/ #user-profile .profile-img-container { position: absolute; bottom: -3rem; right: 10%; width: 80%; } #user-profile .profile-img-container img { border: 0.3rem solid #FFFFFF; height: 85px; width: 85px; } #user-profile #profile-info .card-header i { position: relative; top: -3px; } #user-profile #profile-info .user-like i { font-size: 1.7rem; } #user-profile #profile-info .suggested-block .user-page-info p { margin-bottom: 0; font-weight: 500; } #user-profile #profile-info .suggested-block i { cursor: pointer; } #user-profile .relative { position: relative; } #user-profile .profile-header-nav { background-color: #FFFFFF; padding: 0.75rem 1rem; } #user-profile .profile-header-nav .navbar { -webkit-box-pack: end; -webkit-justify-content: flex-end; -ms-flex-pack: end; justify-content: flex-end; } #user-profile .profile-header-nav .navbar .navbar-toggler { font-size: 1.7rem; color: #626262; } #user-profile .profile-header-nav .navbar .navbar-toggler:focus { outline: none; } #user-profile .user-latest-img { -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } #user-profile .user-latest-img:hover { -webkit-transform: translateY(-4px) scale(1.2); -ms-transform: translateY(-4px) scale(1.2); transform: translateY(-4px) scale(1.2); z-index: 30; } #user-profile .block-element .spinner-border { border-width: 2px; } @media only screen and (min-width: 992px) { #user-profile .profile-header-nav .navbar .nav-item { padding-right: 2.25rem !important; padding-left: 2.25rem !important; } } @media only screen and (max-width: 992px) { #user-profile .user-latest-img img { width: 100%; } } @media only screen and (max-width: 991px) and (min-width: 768px) { #user-profile .profile-header-nav .navbar .nav-item { padding-right: 1.5rem !important; padding-left: 1.5rem !important; } } </style> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="app-content content m-0"> <div class="content-overlay"></div> <div class="header-navbar-shadow"></div> <div class="content-wrapper m-0 p-0"> <div class="content-body"> <div id="user-profile"> <?php echo $__env->make('admin.clients.parts.links', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <section id="profile-info"> <div class="row"> <div class="col-lg-8 col-12 refrshed-data "> <?php echo $__env->make('admin.clients.parts.main_data', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </div> <div class="col-lg-4 col-12"> <?php echo $__env->make('admin.clients.parts.charge_wallet', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php echo $__env->make('admin.clients.parts.notify', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </div> </div> </section> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('js'); ?> <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> <?php echo $__env->make('admin.shared.notify', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <script> $(document).on('click', '.delete-row', function(e) { e.preventDefault() Swal.fire({ title: "<?php echo e(__('هل تريد الاستمرار ؟')); ?>", text: "<?php echo e(__('هل انت متأكد انك تريد استكمال عملية الحذف')); ?>", type: 'warning', showCancelButton: true, confirmButtonColor: '#3085d6', cancelButtonColor: '#d33', confirmButtonText: '<?php echo e(__('admin.confirm')); ?>', confirmButtonClass: 'btn btn-primary', cancelButtonText: '<?php echo e(__('admin.cancel')); ?>', cancelButtonClass: 'btn btn-danger ml-1', buttonsStyling: false, }).then((result) => { if (result.value) { $.ajax({ type: "delete", url: $(this).data('url'), data: { deletails: true }, dataType: "json", success: (response) => { Swal.fire({ position: 'top-start', type: 'success', title: response.msg, showConfirmButton: false, timer: 1500, confirmButtonClass: 'btn btn-primary', buttonsStyling: false, }) setTimeout(function() { window.location = '<?php echo e(route('admin.clients.index')); ?>'; }, 3000); } }); } }) }); $(document).on('click', '.show-details-links li a', function(e) { e.preventDefault() var url = $(this).data('href') $.ajax({ url: url, method: 'get', data: {}, dataType: 'json', beforeSend: function() { // $(".refrshed-data").html().attr('disable', true) }, success: function(response) { // $(".submit_button").html("<?php echo e(__('admin.add')); ?>").attr('disable', false) $(".refrshed-data").html(response.html) }, }); }); $(document).on('submit', '.updateBalance', function(e) { e.preventDefault(); var url = $(this).attr('action') var button = $(".updateBalance .submit-button"); var buttonContent = button.html() $.ajax({ url: url, method: 'post', data: new FormData($(this)[0]), dataType: 'json', processData: false, contentType: false, beforeSend: function() { button.html( '<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>' ).attr('disabled', true) }, success: (response) => { console.log(response) button.html(buttonContent).attr('disabled', false) Swal.fire({ position: 'top-start', type: 'success', title: response.msg, showConfirmButton: false, timer: 1500, confirmButtonClass: 'btn btn-primary', buttonsStyling: false, }) $('.available_balance').html(response.balance) $(this)[0].reset() $('.store .text-danger').remove() }, error: function(xhr) { button.html("<i class='feather icon-navigation'></i><?php echo e(__('admin.send')); ?>").attr( 'disabled', false) $(".text-danger").remove() $('.store input').removeClass('border-danger') $.each(xhr.responseJSON.errors, function(key, value) { // if kay has "." it means that input has two languages do this action to handle input name if (key.indexOf(".") >= 0) { var split = key.split('.') key = split[0] + '\\[' + split[1] + '\\]' } $('.store .error.' + key).append( `<span class="mt-5 text-danger">${value}</span>`); // normal inputs $('.store input[name^=' + key + ']').addClass( 'border-danger') $('.store input[name^=' + key + '][type!=file]').after( `<span class="text-danger">${value}</span>`); // for select input $('.store select[name^=' + key + ']').addClass( 'border-danger') $('.store select[name^=' + key + ']').after( `<span class="mt-1 text-danger">${value}</span>`); }); } }); }); </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/clients/show.blade.php ENDPATH**/ ?>
Back to File Manager