{{-- resources/views/transparencia/inversiones.blade.php --}} Inversiones y Recursos {{-- Sidebar puntos --}} @include('header') @php $img = fn($path) => blank($path) ? asset('images/no-photo.jpg') : asset(ltrim(ltrim($path, '/'), './')); $pdf = fn($inv) => route('web.inversiones.file', $inv); @endphp
{{-- HERO --}}

Inversiones y Recursos

Información transparente sobre nuestras inversiones, recursos y rendición de cuentas.

{{-- === BLOQUES === --}} @foreach ([ 1 => ['icon' => 'trending-up', 'color' => '#1A4FD3', 'title' => 'Inversiones y Reinversiones', 'bg' => 'white', 'id' => 'inversiones'], 2 => ['icon' => 'building-2', 'color' => '#1A4FD3', 'title' => 'Obras de Infraestructura', 'bg' => 'var(--color-neutral)', 'id' => 'infraestructura'], 3 => ['icon' => 'heart', 'color' => '#E27227', 'title' => 'Donaciones y Aportes', 'bg' => 'white', 'id' => 'donaciones'] ] as $tipo => $cfg)
{{-- 🔹 Título se queda donde está --}}

{{ $cfg['title'] }}

@if ($groups[$tipo]->isEmpty())
Aún no hay registros para esta sección.
@else {{-- 🔹 Solo los divs (tarjetas) se mueven a la derecha --}}
@foreach ($groups[$tipo] as $inv)
{{ $inv->nombre }}

{{ $inv->nombre }}

{{ $inv->descripcion }}

{{-- ✅ Botón solo si tiene documento --}} @if (!empty($inv->documento)) Ver Documento @endif
@endforeach
@endif
@endforeach
@include('footer')