EVOLUTION-MANAGER
Edit File: ee301f0d1ad82bc520a3027df9493b0797370640.php
<?php if(!is_null($resultado->contribuyente)): ?> <style type="text/css"> .nav-tabs .nav-item { margin-bottom: -1px; } li { display: list-item; text-align: -webkit-match-parent; } .btn_verde{ background-color: #47d04c !important; color: #ffff !important; } .btn_verde:hover{ background-color: #0f8c2c !important; } </style> <div class="row" style="margin-top: 5%;"> <div class="col-lg-4 col-md-12 col-sm-12"> <div class="row clearfix"> <div class="col-lg-12 col-md-12"> <div class="card" style="margin: 0.2%;"> <div class="card-header" style="background: #47d04c;color: white;"> <h5>Deuda General Total:</h5> </div> <div class="card-body"> <div class="front p-3 px-4"> <div class="py-4 m-0 text-center h1" style="color: #0f8c2c;"> $<?php echo e(number_format($total_pagar,2,'.','')); ?> <?php if(floatval($total_pagar)>0): ?> <!--<a href="http://online.sucre.gob.ec/"> <img src="<?php echo e(asset('/public/consultar_deuda.png')); ?>" alt="" class="col-lg-4" style="margin-bottom: 0%; width: 80%;"> </a> --> <br> <a class="btn btn_verde bnt-lg" href="https://enlinea.sucre.gob.ec/pago/externo?dni=<?php echo e($resultado->contribuyente->idn); ?>" target="_blank" rel="nofollow"> <i class="fa fa-money"> Realizar pago</i> </a> <?php endif; ?> </div> <div class="d-flex"> <small class="text-muted">Incluye Intereses,recargos y descuentos</small> </div> </div> </div> </div> </div> <div class="col-lg-12 col-md-12"> <div class="card" style="margin: 0.2%;"> <div class="card-header" style="background: #47d04c;color: white;"> <h5>Datos de Contribuyente:</h5> </div> <div class="card-body"> <table class="table"> <tr> <td style="font-weight: bold;">Apellidos y Nombres:</td> <td> <?php echo e($resultado->contribuyente->nombres); ?></td> </tr> <tr> <td style="font-weight: bold;">Cédula/Ruc</td> <td> <?php echo e($resultado->contribuyente->idn); ?></td> </tr> <tr> <td style="font-weight: bold;">Dirección</td> <td> <?php echo e($resultado->contribuyente->direccion); ?></td> </tr> </table> </div> </div> </div> </div> </div> <div class="col-md-8"> <?php if(count($resultado->titulo)): ?> <?php $__currentLoopData = $resultado->titulo; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $clave): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $clave_catastral=(string) $clave->clave; $detalles=collect($clave->detalles); $actual=$detalles->where('anio',intval(date('Y')))->whereNotIn('tipo_impuesto_id', [1,2])->where('emi01esta','E')->sum('total')+$detalles->where('anio',intval(date('Y')))->whereIn('tipo_impuesto_id', [1,2])->where('saldo','>',0)->sum('saldo'); $anterior=$detalles->where('anio','<',intval(date('Y')))->whereNotIn('tipo_impuesto_id', [1,2])->where('emi01esta','E')->sum('total')+$detalles->where('anio','<',intval(date('Y')))->whereIn('tipo_impuesto_id', [1,2])->where('saldo','>',0)->sum('saldo'); $detalles=$detalles->groupBy('tipo_impuesto_id'); ?> <div class="card" style="margin: 0.2%;"> <div class="card-header" style="background: #47d04c;color: white;"> <h2 style="color: white;">CLAVE: <?php echo e($clave->detalles[0]->clave); ?></h2> </div> <div class="card-body row"> <div class="col-md-6"> <center><h2>Información</h2></center> <table class="table"> <tr> <?php if($clave->detalles[0]->tipo_impuesto_id==1||$clave->detalles[0]->tipo_impuesto_id==2): ?> <td style="font-weight: bold;">Número de Suministro:</td> <?php else: ?> <td style="font-weight: bold;">Clave Catastral:</td> <?php endif; ?> <td><?php echo e($clave->detalles[0]->clave); ?></td> </tr> <tr> <td style="font-weight: bold;">Dirección:</td> <td> <?php echo e($clave->direccion); ?></td> </tr> <tr> <td style="font-weight: bold;">Calle Principal:</td> <td> <?php echo e($clave->calle_principal); ?></td> </tr> <tr> <td style="font-weight: bold;">Calle Secundaria:</td> <td> <?php echo e($clave->calle_principal); ?></td> </tr> <tr> <td style="font-weight: bold;">Avaluo:</td> <td> <?php echo e($clave->avaluo); ?></td> </tr> </table> <div class="row"> <div class="col-md-12" align="center"> <div class="ibox"> <div class="card" style="margin: 0.2%;"> <div class="card-header" style="background: #47d04c;color: white;"> <h5>Deuda Actual:</h5> </div> <div class="card-body"> <h2 class="no-margins">$ <?php echo e(number_format($actual,2,'.','')); ?></h2> </div> </div> <div class="card" style="margin: 0.2%;"> <div class="card-header" style="background: #47d04c;color: white;"> <h5>Deuda Años Anteriores:</h5> </div> <div class="card-body"> <h2 class="no-margins">$ <?php echo e(number_format($anterior,2,'.','')); ?></h2> </div> </div> <div class="card" style="margin: 0.2%;"> <div class="card-header" style="background: #47d04c;color: white;"> <h5>Deuda Total:</h5> </div> <div class="card-body"> <h2 class="no-margins">$ <?php echo e(number_format($anterior+$actual,2,'.','')); ?></h2> </div> </div> </div> </div> </div> </div> <div class="col-md-6"> <center><h2>Deudas</h2></center> <ul class="nav nav-tabs"> <?php $activo=false; ?> <?php $__currentLoopData = $detalles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $emisiones): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li class="nav-item"> <?php if($activo==false): ?> <a class="nav-link active show" data-toggle="tab" href="#imp<?php echo e($emisiones[0]->tipo_impuesto_id); ?>"><?php echo e($emisiones[0]->tipo_impuesto); ?></a> <?php $activo=true; ?> <?php else: ?> <a class="nav-link" data-toggle="tab" href="#imp<?php echo e($emisiones[0]->tipo_impuesto_id); ?>"><?php echo e($emisiones[0]->tipo_impuesto); ?></a> <?php endif; ?> </li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </ul> <div class="tab-content"> <?php $activo=false; ?> <?php $__currentLoopData = $detalles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $emisiones): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($activo==false): ?> <?php $activo=true; ?> <div class="tab-pane show active" id="imp<?php echo e($emisiones[0]->tipo_impuesto_id); ?>"> <?php else: ?> <div class="tab-pane" id="imp<?php echo e($emisiones[0]->tipo_impuesto_id); ?>"> <?php endif; ?> <div class="table-responsive" style="height:500px; overflow:auto;"> <table class="table table-bordered table-hover"> <thead> <tr> <?php if($emisiones[0]->tipo_impuesto_id==1||$emisiones[0]->tipo_impuesto_id==2): ?> <th>AÑO/MES</th> <?php else: ?> <th>AÑO</th> <?php endif; ?> <th>VALOR</th> <th>VALOR PAGADO</th> <th>SALDO</th> </tr> </thead> <tbody> <?php $tot=0; ?> <?php $__currentLoopData = $emisiones; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $emi): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if(isset($emi->abono)&&($emisiones[0]->tipo_impuesto_id==1||$emisiones[0]->tipo_impuesto_id==2)){ //dd($emi); $pagado=$emi->abono; $saldo=$emi->saldo; }else{ $pagado=($emi->emi01esta=='E') ? 0 : $emi->total; $saldo=$emi->total-$pagado; } $colorx=($saldo>0) ? '#0f8c2c' : 'black'; ?> <?php if(intval($emi->anio)==intval(date('Y'))): ?> <tr style="font-weight: bolder;color: #0f8c2c;"> <?php else: ?> <tr> <?php endif; ?> <?php if($emisiones[0]->tipo_impuesto_id==1||$emisiones[0]->tipo_impuesto_id==2): ?> <td><?php echo e($emi->anio."/".obtener_mes($emi->mes)); ?></td> <?php else: ?> <td><?php echo e($emi->anio); ?></td> <?php endif; ?> <td style="text-align: right;"><?php echo e(number_format($emi->total,2,'.','')); ?></td> <td style="text-align: right;"><?php echo e(number_format($pagado,2,'.','')); ?></td> <td style="text-align: right;color: <?php echo e($colorx); ?>"><?php echo e(number_format($saldo,2,'.','')); ?></td> </tr> <?php $tot+=$saldo; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php $color=($tot>0) ? '#0f8c2c' : 'black'; ?> </tbody> </table> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php else: ?> <center><h3>NO SE ENCONTRARON DEUDAS AL MUNICIPIO DEL DATO INGRESADO</h3></center> <?php endif; ?> </div> </div> <?php else: ?> <center><h1>NO SE ENCONTRÓ RESULTADOS</h1></center> <?php endif; ?>