Files
ladill-hosting/resources/views/partials/topbar.blade.php
T
isaacclad 550b55f4a7
Deploy Ladill Hosting / deploy (push) Successful in 1m50s
Remove desktop header search from app topbars.
Drop the lg+ topbar search field; mobile search entry points are unchanged.
2026-07-09 06:57:33 +00:00

25 lines
1.1 KiB
PHP

@php
$u = auth()->user();
$acct = ladill_account_url();
$home = ladill_home_url();
@endphp
<header class="flex items-center justify-between h-16 border-b border-slate-200 bg-white px-6">
<div class="flex items-center gap-3 flex-1 min-w-0">
<button @click="sidebarOpen = !sidebarOpen" class="lg:hidden shrink-0 text-slate-500 hover:text-slate-700">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"/></svg>
</button>
@include('partials.mobile-topbar-title')
</div>
<div class="flex items-center gap-3">
@auth
@includeIf('partials.topbar-account-switcher')
@includeIf('partials.topbar-widgets-prepend')
@include('partials.topbar-desktop-widgets', ['user' => $user ?? $u ?? auth()->user(), 'showUser' => true])
@includeIf('partials.topbar-widgets-append')
@else
<a href="{{ route('login') }}" class="btn-primary">Sign in</a>
@include('partials.launcher')
@endauth
</div>
</header>