@extends('adminlte::page') @section('title', 'Documentación') @section('content_header')
@include('components.alerts')

Biblioteca de Documentos

@can('create', App\Models\Documento::class) @endcan
@stop @section('content')
{{-- BARRA DE HERRAMIENTAS: FILTROS Y ORDENACIÓN --}}
{{-- PANEL DE PESTAÑAS --}}
@php $isFirst = true; @endphp @foreach($categorias as $key => $cat)
@php // Filtrado local para la pestaña actual basándose en el string separado por comas $docsPestana = $documentos->filter(fn($doc) => in_array($key, explode(',', $doc->categorias))); @endphp @forelse($docsPestana as $doc) @empty

No se encontraron documentos en esta categoría.

@endforelse
@php $isFirst = false; @endphp @endforeach
@stop @section('css') @stop @section('js') @stop