@extends('../padre.padre') @section('contenido')

Sugerido De Compra V2

@include('menu.botonRegresar')
{{-- Librería SweetAlert2 para mensajes --}} @if (session('mensaje')) @endif
@foreach ($bodegas as $b)
id, $selectedBodegas) ? 'checked' : '' }}>
@endforeach
@if(session('mensaje'))
{{session('mensaje')}}
@endif @isset($matriz)
Total Sugerido (Todas las Sedes): ${{ number_format($valorizacionTotalGeneral ?? 0, 0, ',', '.') }}
Por Sede: @foreach($bodegasColumnas as $bc)
{{ $bc->nombreBodega }}: ${{ number_format($valorizacionPorBodega[$bc->id] ?? 0, 0, ',', '.') }}
@endforeach
@foreach($bodegasColumnas as $index => $bc) @endforeach @foreach ($matriz as $p) @foreach($bodegasColumnas as $index => $bc) @php $data = $p['dataBodegas'][$bc->id] ?? ['stock' => 0, 'rotIndividual' => 0, 'pedir' => 0, 'pendiente' => 0]; $cellClass = ($index % 2 == 0) ? 'bg-warehouse-1' : 'bg-warehouse-2'; if ($data['pedir'] > 0) $cellClass = 'table-warning'; @endphp @endforeach @endforeach @foreach($bodegasColumnas as $bc) @endforeach
Producto / Marca Rot.
Total
Inv.
Total
Prov. Sugerido 💡
{{ $bc->nombreBodega }}
Val: ${{ number_format($valorizacionPorBodega[$bc->id] ?? 0, 0, ',', '.') }}
ROT INV PEND PEDIR
Total Sug.
{{$p['nombre']}}
Cod: {{$p['codigo']}} {{$p['nommarca']}}
{{$p['ventaTotalEmpresa']}} {{$p['inventarioTotalEmpresa']}} @if(isset($p['provSugerido']) && $p['provSugerido'] != 'Sin compras')
{{ $p['provSugerido'] }}
${{ number_format($p['provCosto'], 0, ',', '.') }} @if(!empty($p['provHistorial'])) @endif
@else Sin compras @endif
{{$data['rotIndividual']}} {{$data['stock']}} {{$data['pendiente'] ?? 0}}
{{$p['sugeridoTotalEmpresa']}} ${{ number_format($p['sugeridoTotalEmpresa'] * ($p['costoAplicado'] ?? 0), 0, ',', '.') }}
💰 Valorización Total ${{ number_format($valorizacionPorBodega[$bc->id] ?? 0, 0, ',', '.') }} ${{ number_format($valorizacionTotalGeneral ?? 0, 0, ',', '.') }}
@endisset @endsection