{{-- A named region another module may contribute a panel to. The host screen names the slot and passes the context its panels will need. It never learns which modules answered — that list lives in the module service providers, so installing or removing a module changes what renders here without this file, or the screen that uses it, being touched. Usage: --}} @props(['name', 'data' => []]) @foreach (app(\App\ModuleKernel\Slots\SlotRegistry::class)->for($name) as $panel) @if ($panel->permission === null || auth()->user()?->can($panel->permission)) @includeIf($panel->view, $data) @endif @endforeach