@php $_updateNewVersion = null; $_updatePluginCount = 0; if (auth()->check() && auth()->user()->level === 'admin') { $__status = app(\App\Services\UpdateCheckService::class)->getStatus(); $_updateNewVersion = $__status['new_version']; $_updatePluginCount = count($__status['plugin_updates']); } @endphp @if ($_updateNewVersion)
{{ __('A new version is available:') }} v{{ $_updateNewVersion }} {{ __('Click Here') }}
@endif @if ($_updatePluginCount > 0)
{{ trans_choice(':count plugin has an update available.|:count plugins have updates available.', $_updatePluginCount, ['count' => $_updatePluginCount]) }} {{ __('View Plugins') }}
@endif {{ $slot }}
@php $enabledPlugins = \App\Models\Plugin::where('is_enabled', true)->pluck('slug'); @endphp @foreach($enabledPlugins as $pluginSlug) @includeIf("{$pluginSlug}::components.layout") @endforeach