Initial commit
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
|
||||
<div class="bg-base-100 border-base-300 border-b sticky top-0 z-10">
|
||||
<div class="flex justify-between items-center px-6 py-5 mx-auto">
|
||||
<div class="flex-1 flex items-center">
|
||||
|
||||
<label for="main-drawer" class="lg:hidden mr-3">
|
||||
<x-icon name="o-bars-3" class="cursor-pointer" />
|
||||
</label>
|
||||
|
||||
<x-application-logo style="height:1.3em" />
|
||||
|
||||
</div>
|
||||
<div class="flex flex-grow gap-4 w-50">
|
||||
|
||||
<x-spotlight
|
||||
shortcut="slash"
|
||||
search-text="{{ __('Search holdings, portfolios, or anything else...') }}"
|
||||
no-results-text="{{ __('Darn! Nothing found for that search.') }}"
|
||||
/>
|
||||
<x-button
|
||||
icon="o-magnifying-glass"
|
||||
@click.stop="$dispatch('mary-search-open')"
|
||||
class="btn-sm"
|
||||
>
|
||||
<x-slot:label>
|
||||
@lang('Press :key to search', ['key' => '<kbd class="kbd kbd-sm">/</kbd>'])
|
||||
|
||||
</x-slot:label>
|
||||
</x-button>
|
||||
|
||||
</div>
|
||||
<div class="flex items-center gap-4">
|
||||
<x-theme-toggle
|
||||
title="{{ __('Toggle Theme') }}"
|
||||
class="btn-circle btn-ghost btn-sm"
|
||||
darkTheme="dark" lightTheme="nord"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,45 @@
|
||||
<x-menu activate-by-route>
|
||||
|
||||
<x-menu-item title="{{ __('Dashboard') }}" icon="o-home" link="{{ @route('dashboard') }}" />
|
||||
<x-menu-sub title="{{ __('Portfolios') }}" icon="o-document-duplicate">
|
||||
@foreach (auth()->user()->portfolios as $portfolio)
|
||||
<x-menu-item title="{{ $portfolio->title }}" icon="o-document" link="{{ route('portfolio.show', ['portfolio' => $portfolio->id ]) }}" />
|
||||
@endforeach
|
||||
|
||||
<x-menu-item title="{{ __('Create Portfolio') }}" icon="o-document-plus" link="{{ @route('portfolio.create') }}" />
|
||||
</x-menu-sub>
|
||||
<x-menu-item title="{{ __('Transactions') }}" icon="o-banknotes" link="####" />
|
||||
<x-menu-item title="{{ __('Reporting') }}" icon="o-chart-bar-square" link="####" />
|
||||
|
||||
</x-menu>
|
||||
|
||||
</div>
|
||||
<div class="p-4">
|
||||
|
||||
<x-menu-separator />
|
||||
|
||||
@php
|
||||
$user = auth()->user();
|
||||
@endphp
|
||||
|
||||
<x-list-item :item="$user" avatar="profile_photo_url" value="name" sub-value="email" no-separator no-hover class="-mx-2 !-my-2 rounded">
|
||||
<x-slot:actions>
|
||||
<x-dropdown>
|
||||
<x-slot:trigger>
|
||||
<x-button icon="o-cog-6-tooth" class="btn-circle btn-ghost btn-xs" />
|
||||
</x-slot:trigger>
|
||||
|
||||
<x-menu-item title="{{ __('Manage Profile') }}" icon="o-user" link="{{ @route('profile.show') }}" />
|
||||
<x-menu-item title="{{ __('Import / Export Data') }}" icon="o-cloud-arrow-down" link="{{ @route('profile.show') }}" />
|
||||
|
||||
<x-menu-separator />
|
||||
|
||||
<x-menu-item title="{{ __('Logout') }}" icon="o-power" onclick="event.preventDefault(); document.getElementById('logout').submit();" />
|
||||
<form id="logout" action="{{ route('logout') }}" method="POST" style="display: none;">
|
||||
{{ csrf_field() }}
|
||||
</form>
|
||||
|
||||
</x-dropdown>
|
||||
|
||||
</x-slot:actions>
|
||||
</x-list-item>
|
||||
Reference in New Issue
Block a user