Files

92 lines
2.7 KiB
PHP
Raw Permalink Normal View History

2025-04-09 19:25:15 -05:00
<?php
2024-08-01 13:53:10 -05:00
2025-04-09 19:25:15 -05:00
use Livewire\Volt\Component;
new class extends Component
{
// props
/**
* The component's listeners.
*
* @var array
*/
protected $listeners = [
'refresh-navigation-menu' => '$refresh',
];
// methods
}; ?>
2024-08-01 13:53:10 -05:00
<nav class="z-10 p-5 ml-0 md:ml-68 md:border-0 border-b border-zinc-200 dark:border-zinc-800">
<div class="flex flex-wrap justify-between items-center">
2024-08-01 13:53:10 -05:00
<div class="flex">
<x-ui.button
aria-controls="drawer-navigation"
title="{{ __('Toggle Sidebar') }}"
class="btn-circle btn-ghost btn-sm block md:hidden"
icon="o-bars-3"
@click="sideBarOpen = true"
2024-08-01 13:53:10 -05:00
/>
<div class="ml-3 w-8 hidden sm:block md:hidden"> <x-ui.logo /> </div>
</div>
<div>
<x-ui.button
@click.stop="$dispatch('toggle-spotlight')"
class="btn-sm btn-ghost bg-base-300 flex-1 justify-start md:flex-none border-none"
2024-08-01 13:53:10 -05:00
>
<x-slot:label>
2024-10-22 12:36:43 -05:00
<span class="flex items-center text-gray-400">
<x-ui.icon name="o-magnifying-glass" class="mr-2" />
2024-10-22 12:36:43 -05:00
<span class=" truncate hidden sm:block">
2024-10-18 21:06:05 -05:00
@lang('Click or press :key to search', ['key' => '<kbd class="kbd kbd-sm">/</kbd>'])
</span>
2024-10-22 12:36:43 -05:00
<span class=" truncate block sm:hidden">
@lang('Click to search')
</span>
2024-10-18 21:06:05 -05:00
</span>
2024-08-01 13:53:10 -05:00
</x-slot:label>
</x-ui.button>
2024-08-01 13:53:10 -05:00
<x-ui.spotlight
search-text="{{ __('Search holdings, portfolios, or anything else...') }}"
no-results-text="{{ __('Darn! Nothing found for that search.') }}"
/>
2024-08-01 13:53:10 -05:00
</div>
2024-10-18 21:14:37 -05:00
<div class="flex flex-0 items-center gap-4">
2024-08-01 18:07:56 -05:00
<x-ui.button
2024-08-01 18:07:56 -05:00
title="{{ __('Documentation') }}"
icon="o-book-open"
class="btn-circle btn-ghost btn-sm"
2024-08-24 22:56:23 -05:00
link="https://github.com/investbrainapp/investbrain"
2024-08-01 18:07:56 -05:00
external
>
</x-ui.button>
2024-08-01 18:07:56 -05:00
<x-ui.button
2024-08-01 14:44:52 -05:00
title="{{ __('We\'re open source!') }}"
class="btn-circle btn-ghost btn-sm"
2024-08-24 22:56:23 -05:00
link="https://github.com/investbrainapp/investbrain"
2024-08-01 14:44:52 -05:00
external
>
<x-social.github-icon />
</x-ui.button>
2024-08-01 14:44:52 -05:00
<x-ui.theme-selector
id="theme-selector"
2024-08-01 13:53:10 -05:00
title="{{ __('Toggle Theme') }}"
class="btn-circle btn-ghost btn-sm"
/>
</div>
</div>
</nav>