v1.0.0
This commit is contained in:
22
src/resources/views/components/topbar.blade.php
Normal file
22
src/resources/views/components/topbar.blade.php
Normal file
@@ -0,0 +1,22 @@
|
||||
@php
|
||||
$panelLabel = match (true) {
|
||||
request()->routeIs('client.*') => 'Panel Klienta',
|
||||
request()->routeIs('operator.*') => 'Panel Operatora',
|
||||
request()->routeIs('admin.*') => 'Panel Administratora',
|
||||
default => null,
|
||||
};
|
||||
@endphp
|
||||
|
||||
<div class="nav" style="position:relative;padding:16px 28px;border-bottom:1px solid var(--color-divider)">
|
||||
<span class="nav-brand">{{ \App\Support\Settings::get('company_name') }}</span>
|
||||
|
||||
@if ($panelLabel)
|
||||
<span class="nav-panel-label" style="position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);font-weight:500;font-size:13.5px;white-space:nowrap">{{ $panelLabel }}</span>
|
||||
@endif
|
||||
|
||||
<x-theme-toggle />
|
||||
|
||||
{{ $slot }}
|
||||
|
||||
<x-profile-menu />
|
||||
</div>
|
||||
Reference in New Issue
Block a user