@isset($exportar) @php header("Cache-Control: maxage=1"); header("Pragma: public"); header('Content-type: application/vnd.ms-excel'); header("Content-Disposition: attachment; filename=Cumplimiento.xls"); header("Pragma: no-cache"); header("Expires: 0"); @endphp @endisset @php $totVenta = 0; $totPresupuesto = 0; $totVentaConPresupuesto = 0; $isExport = isset($exportar); @endphp
| Cód. Vend | Vendedor | Venta Real ($) | Presupuesto ($) | Diferencia ($) | % Cumplimiento | Día | Mes | Año |
|---|---|---|---|---|---|---|---|---|
| Cód. Vend | Vendedor | Venta Real ($) | Presupuesto ($) | Diferencia ($) | % Cumplimiento | |||
| Cód. Bodega | Bodega | Venta Real ($) | Presupuesto ($) | Diferencia ($) | % Cumplimiento | Día | Mes | Año |
| Cód. Bodega | Bodega | Venta Real ($) | Presupuesto ($) | Diferencia ($) | % Cumplimiento | |||
| {{ $code }} | {{ $name }} | ${{ number_format($valVenta, 0) }} | ${{ number_format($valPresup, 0) }} | ${{ number_format($diferencia, 0) }} |
@if($isExport)
{{ $hasPresupuesto ? number_format($pct, 1) . '%' : 'N/A' }}
@else
@if($hasPresupuesto)
{{ $pct > 999 ? '>999%' : number_format($pct, 1) . '%' }}
@else
N/A
@endif
@endif
|
@if($Agrupado == "detallado")
{{ $item["diaV"] ?? '' }} | {{ $item["mesV"] ?? '' }} | {{ $item["ageV"] ?? '' }} | @endif
| Totales Generales: | ${{ number_format($totVenta, 0) }} | ${{ number_format($totPresupuesto, 0) }} | ${{ number_format($totDiferencia, 0) }} | @if($isExport) {{ $hasTotPresupuesto ? ($totPct > 999 ? '>999%' : number_format($totPct, 1) . '%') : 'N/A' }} @else @if($hasTotPresupuesto) {{ $totPct > 999 ? '>999%' : number_format($totPct, 1) . '%' }} @else N/A @endif @endif | @if($Agrupado == "detallado")@endif | |||