@extends('../padre.padre') @section('styles') @endsection @section('contenido')
PRODUCTOS CON DESCUENTO Y PLANES PROMOCIONALES
@include('menu.botonRegresar')
Bod:
@include('../menu.bodegas')
@if(!empty($buscar)) @endif
Listado: @if(isset($productos) && method_exists($productos, 'total')) {{ number_format($productos->total(), 0, ',', '.') }} productos @endif @if($tipoD == 'Planes_Vencidos') ⚠️ Planes Vencidos @if(isset($productos) && method_exists($productos, 'total') && $productos->total() > 0) @endif @elseif($tipoD == 'Planes_Vigentes') ✅ Planes Vigentes @elseif($tipoD == 'Mensaje_Promo') Con Mensaje Promo @else Con Descuento @endif @if(!empty($buscar)) "{{ $buscar }}" @endif
@if(isset($productos) && method_exists($productos, 'firstItem') && $productos->total() > 0)
Mostrando {{ $productos->firstItem() }}-{{ $productos->lastItem() }} de {{ $productos->total() }}
@endif
@if(isset($productos) && count($productos) > 0) @foreach($productos as $item) @php $tienePromo = !empty($item->MensajePromo) && strlen(trim($item->MensajePromo)) > 3; $venceFecha = ''; $esVencido = false; if ($tienePromo && preg_match('/\[Vence:\s*([^\]]+)\]/i', $item->MensajePromo, $matches)) { $venceFecha = trim($matches[1]); $esVencido = ($venceFecha < date('Y-m-d')); } @endphp @endforeach @else @endif
Bod Código Producto / Clasificación Mensaje Promocional (Plan CAP) Descuentos Stock Venta Caja Venta Fracc
{{ $item->idbodega }} {{ $item->codigo }}
{{ $item->nombre }}
@if(!empty($item->nommarca)) {{ $item->nommarca }} @endif @if(!empty($item->nomcategoria)) {{ $item->nomcategoria }} @endif
@if($tienePromo)
@if($venceFecha) @if($esVencido) Venció: {{ $venceFecha }} @else Vence: {{ $venceFecha }} @endif @else Promoción @endif
{{ $item->MensajePromo }}
@else
Sin mensaje promocional
@endif
@if((float)$item->descuentoPor > 0) P: {{ $item->descuentoPor }}% @endif @if((float)$item->dtomar > 0) M: {{ $item->dtomar }}% @endif @if((float)$item->dtocat > 0) C: {{ $item->dtocat }}% @endif @if((float)$item->descuentoPor <= 0 && (float)$item->dtomar <= 0 && (float)$item->dtocat <= 0) - @endif
{{ number_format((float)($item->inventario ?? 0), 0) }}
@if((float)($item->factor ?? 0) > 1)
Fr: {{ round((float)($item->inventario ?? 0) * (float)($item->factor ?? 0)) }}
@endif
${{ number_format((float)($item->VentaCaja ?? 0), 0, ',', '.') }} ${{ number_format((float)($item->VentaFrcc ?? 0), 0, ',', '.') }}
No se encontraron productos con los filtros seleccionados
Selecciona bodega y haz clic en "Filtrar".
@if(isset($productos) && method_exists($productos, 'links') && $productos->hasPages()) @endif
@endsection @section('pie') @endsection