@php $availableComponentCount = $components->reject(fn ($component) => is_array($selected ?? null) && in_array($component->id, $selected))->count(); @endphp
{{ __('Component Library') }}

{{ __('Available Components') }}

{{ $availableComponentCount }} {{ __('Ready') }}

{{ __('Search blocks, inspect their status, and send them into the page builder with click or drag.') }}

@forelse($components as $component) @php $isSelected = is_array($selected ?? null) && in_array($component->id, $selected); @endphp @if(!$isSelected)
@include('backend.page_component.partials._component_icon', [ 'component' => $component, 'wrapperClass' => 'component-admin-thumb--compact', ])
{{ $component->component_name }} {{ __('Drag or tap add to builder') }}
@unless($component->is_protected) @else {{ __('Protected') }} @endif
@endif @empty

{{ __('No Component Available') }}

@endforelse