@props(['total' => null, 'active' => null, 'inactive' => null, 'cards' => null]) @php $onlyTotal = $active === null && $inactive === null; @endphp
merge([ 'class' => 'catalog-summary'.($onlyTotal && $cards === null ? ' is-single' : ''), 'aria-label' => 'Resumen del catálogo', ]) }}> @if ($cards !== null) @foreach ($cards as $card)

{{ $card['label'] }}

{{ $card['value'] }}

@if (! empty($card['sub']))

{{ $card['sub'] }}

@endif
@endforeach @else

Total

{{ $total }}

registros

@if (! $onlyTotal)

Activos

{{ $active }}

disponibles

Inactivos

{{ $inactive }}

ocultos

@endif @endif