EVOLUTION-MANAGER
Edit File: da07371a95635b8ac328b22c04b3fd0ad9669f88.php
<?php $__env->startSection('style'); ?> <link href="<?php echo e(asset('public/frontend/transparencia/wp-content/themes/jannah/assets/css/style.css')); ?>" id="tie-css-styles-css" media="all" rel="stylesheet" type="text/css"/> <?php $__env->stopSection(); ?> <?php $__env->startSection('contenido'); ?> <br> <div role="main"> <article class="container-wrapper post-content" id="the-post"> <header class="entry-header-outer"> <div class="entry-header"> <h1 class="post-title entry-title"> Consultar Deudas </h1> </div> </header> <!-- .entry-header-outer /--> <div class="entry-content entry clearfix"> <div class="vc_row wpb_row vc_row-fluid"> <div class="wpb_column vc_column_container vc_col-sm-12"> <div class="vc_column-inner"> <div class="wpb_wrapper"> <h3 class="vc_custom_heading" style="font-size: 14px;text-align: left;font-family:Actor;font-weight:400;font-style:normal"> Seleccione el tipo de búsqueda, luego ingrese el dato y de clic en buscar para tener el lista de deudas correspondientes. </h3> </div> </div> <div class="vc_column-inner" style="text-align: center;"> <select id="tipo_busqueda"> <option value="cedula">Cédula / Ruc</option> <option value="clave">Clave Catastral</option> </select> <input type="text" placeholder="Ingrese dato" name="valor" id="valor"> <button type="submit" class="btn btn-success bnt-lg" data-toggle="tooltip" title="Editar"> <i class="fa fa-search" aria-hidden="true" onclick="validar_documento();"> Buscar</i></button> </div> <br> <div class="vc_column-inner" id="resultado_validacion" > </div> </div> </div> </div> <!-- .entry-content /--> </article> <!-- #the-post /--> </div> <div class="art-article" style="padding-top: 10px;padding-bottom: 150px;"> <center> <div class=""> <div class="col-md-12"> <!-- Mega menu --> <!-- / Mega menu --> </div> </div> </center> </div> <br> <br> <br> <br> <br> <br> <br> <div id="total_consultas" class="col-md-12" align="left" style="text-align: left;"> <h4>Total de consultas: <?php echo e(App\contadormodelo::where('tipo','consulta')->count()); ?></h4> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('script'); ?> <script type="text/javascript"> function validar_documento(){ var valor=$('#valor').val(); if(valor==null||valor==''){ //return toastx('dddd'); return 1; } var tipo_busqueda=$('#tipo_busqueda').val(); carga_ajax('Espere, estamos consultando los datos ...'); $.ajax({ type: "POST", url: "<?php echo e(url('consulta_deudas_post')); ?>", data: { valor,tipo_busqueda,"_token":"<?php echo e(csrf_token()); ?>" } }).done(function(tabla) { desaparecer_carga_ajax(); $('#resultado_validacion').html(tabla); var ip =""; $.getJSON('https://api.ipify.org?format=json', function(f){ ip = f.ip; $.ajax({ // headers: { // 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') // }, url: "<?php echo e(URL::asset('contador_consultas')); ?>", datatType : 'text', type: 'POST', data: { _token:"<?php echo e(csrf_token()); ?>", 'ip' : ip, tipo:'consulta' }, success: function(result){ $('#total_consultas').html('<h4>Total de consultas: '+result+'</h4>') console.log(result); } }); }); }) .fail(function(jqXHR, textStatus, errorThrown) { desaparecer_carga_ajax(); validacionCampos(jqXHR, textStatus, errorThrown); }) .always(function() { desaparecer_carga_ajax(); }); } $("#valor").on("keyup", function (e) { if (e.keyCode === 13) { //checks whether the pressed key is "Enter" validar_documento(); } }); </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>