{{-- Created by negutierrez on 08/05/2017 --}} {{-- Modificado por Victor Poeta, fecha 04/09/2017 --}} {{-- Modificado por Yoniquer Chacon, on 10/07/2019 --}} @extends('layouts.mainFilters') @section('header') {{----}} @endsection @section('script') @endsection @section('content')
La página se recargará en:
0
Regresar

@php($totalReg = count($requestListPagos['entidadRespuesta'])) @php($estatus_modal_fecha_contable = []) @if(isset($detalleOficina) and isset($detalleOficina['codrespuesta'])) @if($detalleOficina['codrespuesta'] == 'COD_000')
OFICINA: {{$detalleOficina['entidadRespuesta'][0]['nombre']}}
@endif @endif @if($codoficina == 46) @if(isset($departamento)) @if($departamento == 22 || $departamento == 3) @php $arrayPagos = []; $ii = 1; $i = 1; $hoy = date('d-m-Y'); $dia1=date('d'); $mes1=date('m'); $ano1=date('Y'); $numPago = 0; @endphp
@if ($totalReg > 0) @endif @if(count($requestListPagos['entidadRespuesta']) > 0) @foreach($requestListPagos['entidadRespuesta'] as $key => $value) @if(!empty($value)) @php $estatus_modal_fecha_contable[$key] = $value['idestatuspago']; $arrayPagos[$numPago] = $value['idpago']; @endphp @endif {{--@if($value['idestatuspago'] != 8)--}} @if( ($estatus_actual == 1 || $estatus_actual == 2) and $value['count_archivo'] == 0 and $value['montoret']>0 ) @else @endif @php $i ++; $ii ++; $numPago++; @endphp {{--@endif--}} @endforeach @else
No se encontro ningún registro. Intente modificar los filtros de búsqueda.
@endif
N° Pago Fecha de Pago Fecha Contable Monto Transferencia Nombre Pagador Tipo Documento Estatus N° SAP Días estatus actual Comprobantes de Retención
{{ @$value['idpago'] }} {{ @date('d/m/Y', strtotime($value['fechapago'])) }} {{ ($value['fecha_contable'] == null) ? 'N/P' : @date('d/m/Y', strtotime($value['fecha_contable'])) }} {{ @money_format('%.2n',$value['montototal']) }} {{ @$value['nombrepagador'] }} {{ @$value['tipo_documento'] }} {{ @$value['nombreestatus'] }} {{ ($value['documento_sap'] != null ) ? @$value['documento_sap'] : 'N/P' }} @php if ($value['idestatuspago']==1){ $dia2= date('d', strtotime($value['fechahoracarga'])); $mes2= date('m', strtotime($value['fechahoracarga'])); $ano2= date('Y', strtotime($value['fechahoracarga'])); }else { $dia2= date('d', strtotime($value['fechapago'])); $mes2= date('m', strtotime($value['fechapago'])); $ano2= date('Y', strtotime($value['fechapago'])); } //if (isset($value['fechahora'])) { // $datetime1 = date('d-m-Y', strtotime($value['fechahoracarga'])); //} $timestamp1 = mktime(0,0,0,$mes1,$dia1,$ano1); $timestamp2 = mktime(0,0,0,$mes2,$dia2,$ano2); $segundos_diferencia = $timestamp1 - $timestamp2; $hora_actual = localtime(); $hora=$hora_actual[2]; $minuto=$hora_actual[1]; $estatus_actual=$value['idestatuspago']; $dias_diferencia = $segundos_diferencia / (60 * 60 * 24); $dias_diferencia = abs($dias_diferencia); $dias_diferencia = floor($dias_diferencia); if($dias_diferencia < 2){ $color = 'btn btn-info btn-sm'; } if($dias_diferencia > 1 AND $dias_diferencia < 6){ $color = 'btn btn-warning btn-sm'; } if($dias_diferencia > 5){ $color = 'btn btn-danger btn-sm'; } @endphp
{{ $dias_diferencia }} Días
@if(isset($departamento)) @if(($departamento == 22) and $value['idestatuspago'] == 4) @if(@$value['validar_sap']) @else @endif @endif @endif
@if ($value['count_archivo'] == 0 and $value['montoret']>0 )
Pendiente por cargar Comprobante
@elseif($value['count_archivo'] > 0 and $value['montoret']>0)
Posee Comprobantes
@else
No Necesita Comprobante
@endif
@php /*{{ link_to_route('canguroazul.reporte.detallePDF', $title = 'Detalle', $parameters = ['id' => $value['idpago']]), ['class' => 'btn btn-sm btn-primary', 'target' => '_blank']) }}*/ @endphp @if(($value['idestatuspago'] == 1 or $value['idestatuspago'] == 8 or $value['idestatuspago'] == 3 or $value['idestatuspago'] == 2) and $codoficina == 46)

@endif
{{ link_to_route('pagoTransferencia.mail', $title = '', $parameters = ['id' => $value['idpago']], ['class' => 'btn btn-sm btn-primary glyphicon glyphicon-envelope']) }} -
@endif @if($departamento == 19) @php $arrayPagos = []; $ii = 1; $i = 1; $hoy = date('d-m-Y'); $dia1=date('d'); $mes1=date('m'); $ano1=date('Y'); $numPago = 0; @endphp
@if ($totalReg > 0) @endif @if(count($requestListPagos['entidadRespuesta']) > 0) @foreach($requestListPagos['entidadRespuesta'] as $value) @if(!empty($value)) @php $arrayPagos[$numPago] = $value['idpago']; @endphp @endif @php $sucursal = '-'; if(isset($value['sucursal_nombre_guia']) and ($value['sucursal_nombre_guia']) != null ){ $sucursal = $value['sucursal_nombre_guia']; }else{ $sucursal = $value['sucursal_nombre_factura']; } if($value['fecha_contable'] != null){ $fechaCont = date('d/m/Y', strtotime($value['fecha_contable'])); }else{ $fechaCont = 'N/P'; } $codCliente = 'N/P'; /*falta agregar al query el codcliente*/ if(isset($value['codclientep']) and $value['codclientep'] != null){ $codCliente = @$value['codclientep']; } $estatus_actual=$value['idestatuspago']; // $iva = money_format('%.2n',$value['monto_ret_iva']); $iva = number_format($value['monto_ret_iva'],2,",", "."); $islr = number_format($value['monto_ret_islr'],2,",", "."); $iae = number_format($value['monto_ret_im'],2,",", "."); $tf = number_format($value['monto_ret_tf'],2,",", "."); $Rs = number_format($value['monto_ret_rs'],2,",", "."); @endphp @if( ($estatus_actual == 1 || $estatus_actual == 2) and $value['count_archivo'] == 0 and $value['montoret']>0 ) @else @endif @php $i ++; $ii ++; $numPago++; @endphp @endforeach @else
No se encontro ningún registro. Intente modificar los filtros de búsqueda.
@endif
N° Pago Sucursal Fecha contable Código Cliente Nombre Pagador Estatus N° SAP IVA ISLR IAE TIMBRE Resp. Social Comprobantes de Retención
{{ $value['idpago'] }}{{ $sucursal }} {{ $fechaCont }} {{ @$codCliente }} {{ $value['nombrepagador'] }} {{ $value['nombreestatus'] }} {{ ($value['documento_sap'] != null ) ? @$value['documento_sap'] : 'N/P' }} {{ $iva }} {{ $islr }} {{ $iae }} {{ $tf }} {{ $Rs }} @if ($value['count_archivo'] == 0 and $value['montoret']>0 )
Pendiente por cargar Comprobante
@else
No Necesita Comprobante
@endif
@if($value['idestatuspago'] == 1 || $value['idestatuspago'] == 8 || $value['idestatuspago'] == 16 || $value['idestatuspago'] == 15 || $value['idestatuspago'] == 3)

@endif
{{ link_to_route('pagoTransferencia.mail', $title = '', $parameters = ['id' => $value['idpago']], ['class' => 'btn btn-sm btn-primary glyphicon glyphicon-envelope']) }} -
@endif @if($departamento != 22 and $departamento != 19 and $departamento != 3)
No pertenece al Departamento de Impuesto o de cobranzas para observar el reporte. Por favor comunicarse con sistemas
@endif @endif @else {{--Reporte para las sucursales--}} @php $arrayPagos = []; $ii = 1; $i = 1; $hoy = date('d-m-Y'); $dia1=date('d'); $mes1=date('m'); $ano1=date('Y'); $numPago = 0; @endphp
@if ($totalReg > 0) @endif @if(count($requestListPagos['entidadRespuesta']) > 0) @foreach($requestListPagos['entidadRespuesta'] as $key => $value) @if(!empty($value)) @php $estatus_modal_fecha_contable[$key] = $value['idestatuspago']; $arrayPagos[$numPago] = $value['idpago']; @endphp @endif {{--@if($value['idestatuspago'] != 8)--}} @php $i ++; $ii ++; $numPago++; @endphp {{--@endif--}} @endforeach @else
No se encontro ningún registro. Intente modificar los filtros de búsqueda.
@endif
N° Pago Fecha de Pago Fecha Contable Monto Transferencia Nombre Pagador N° Transferencia Estatus N° SAP Días estatus actual Comprobantes de Retención
{{ @$value['idpago'] }} {{ @date('d/m/Y', strtotime($value['fechapago'])) }} {{ ($value['fecha_contable'] == null) ? 'N/P' : @date('d/m/Y', strtotime($value['fecha_contable'])) }} {{ @money_format('%.2n',$value['montototal']) }} {{ @$value['nombrepagador'] }} {{ @$value['referencia'] }} {{ @$value['nombreestatus'] }} {{ ($value['documento_sap'] != null ) ? @$value['documento_sap'] : 'N/P' }} @php if ($value['idestatuspago']==1){ $dia2= date('d', strtotime($value['fechahoracarga'])); $mes2= date('m', strtotime($value['fechahoracarga'])); $ano2= date('Y', strtotime($value['fechahoracarga'])); }else { $dia2= date('d', strtotime($value['fechapago'])); $mes2= date('m', strtotime($value['fechapago'])); $ano2= date('Y', strtotime($value['fechapago'])); } //if (isset($value['fechahora'])) { // $datetime1 = date('d-m-Y', strtotime($value['fechahoracarga'])); //} $timestamp1 = mktime(0,0,0,$mes1,$dia1,$ano1); $timestamp2 = mktime(0,0,0,$mes2,$dia2,$ano2); $segundos_diferencia = $timestamp1 - $timestamp2; $hora_actual = localtime(); $hora=$hora_actual[2]; $minuto=$hora_actual[1]; $estatus_actual=$value['idestatuspago']; $dias_diferencia = $segundos_diferencia / (60 * 60 * 24); $dias_diferencia = abs($dias_diferencia); $dias_diferencia = floor($dias_diferencia); if($dias_diferencia < 2){ $color = 'btn btn-info btn-sm'; } if($dias_diferencia > 1 AND $dias_diferencia < 6){ $color = 'btn btn-warning btn-sm'; } if($dias_diferencia > 5){ $color = 'btn btn-danger btn-sm'; } @endphp
{{ $dias_diferencia }} Días
@if ($value['count_archivo'] == 0 and $value['montoret']>0 )
Pendiente por cargar Comprobante
@elseif($value['count_archivo'] > 0 and $value['montoret']>0)
Posee Comprobantes
@else
No Necesita Comprobante
@endif
-
@endif
@if($codoficina == 46) @endif
@php($estatus_modal_fecha_contable = array_unique($estatus_modal_fecha_contable)) @php $muestra = true; $estatus_no_mostrar = [1,2,3,4,5,7,8,9]; foreach ($estatus_modal_fecha_contable as $value){ if(in_array($value,$estatus_no_mostrar)){ $muestra = false; } } @endphp @if($muestra and $codoficina == 46) @if($departamento == 22 || $departamento == 3)
@endif @endif @if($codoficina == 46) @endif @if(($request['estatus']==1 or $request['estatus']==2) and $codoficina == 46) @endif {{-- --}} @endsection