{{-- The PNLCS update bar (App\Services\Updates\UpdateBar). --}} @php($updateBar = app(\App\Services\Updates\UpdateBar::class)->forAdmin(auth('admin')->user(), request()->route()?->getName())) @if($updateBar) @if($updateBar['kind'] === 'unfinished')
@else
{{ __('admin.updates.bar_available', ['version' => $updateBar['version'], 'installed' => $updateBar['installed']]) }} @if($updateBar['pre_release']){{ __('admin.updates.beta_badge') }}@endif {{ __('admin.updates.bar_open') }}
@csrf
{{-- x-show sits on a wrapper: the admin stylesheet forces .btn to display with !important, which no x-show on the button itself can override. --}}
@endif @endif