Skip to content

Commit

Permalink
add menu blade new stacks..
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed Oct 4, 2023
1 parent 11c791f commit 7f25254
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions resources/views/components/layouts/admin/menu.blade.php
Expand Up @@ -109,7 +109,11 @@ class="flex flex-col items-center justify-center mb-5 cursor-pointer menu-button
<livewire:menu.favorites />
</div>

@stack('main_menu_start')

<nav class="menu-list js-main-menu" id="sidenav-main">
@stack('main_menu_company_start')

<div class="relative mb-5 cursor-pointer">
<button type="button" class="flex items-center" data-dropdown-toggle="dropdown-menu-company">
<div class="w-8 h-8 flex items-center justify-center">
Expand Down Expand Up @@ -152,12 +156,22 @@ class="flex flex-col items-center justify-center mb-5 cursor-pointer menu-button
</div>
</div>

@stack('main_menu_admin_start')

<div class="main-menu transform">
{!! menu('admin') !!}
</div>

@stack('main_menu_admin_end')
</nav>

@stack('main_menu_end')

@stack('profile_menu_start')

<div class="profile-menu user-menu menu-list fixed h-full ltr:-left-80 rtl:-right-80">
@stack('profile_menu_avatar_start')

<div class="flex h-12.5">
@if (setting('default.use_gravatar', '0') == '1')
<img src="{{ user()->picture }}" alt="{{ user()->name }}" class="w-8 h-8 rounded-full" alt="{{ user()->name }}" title="{{ user()->name }}">
Expand All @@ -176,11 +190,21 @@ class="flex flex-col items-center justify-center mb-5 cursor-pointer menu-button
</div>
</div>

@stack('profile_menu_profile_start')

<livewire:menu.profile />

@stack('profile_menu_profile_end')
</div>

@stack('profile_menu_end')

@can('read-notifications')
@stack('notifications_menu_start')

<div class="notifications-menu user-menu menu-list fixed h-full ltr:-left-80 rtl:-right-80">
@stack('notifications_menu_title_start')

<div class="flex items-center mb-3">
<span name="notifications" class="material-icons-outlined w-8 h-8 flex items-center justify-center text-purple text-2xl pointer-events-none">notifications</span>

Expand All @@ -189,11 +213,21 @@ class="flex flex-col items-center justify-center mb-5 cursor-pointer menu-button
</div>
</div>

@stack('notifications_menu_notifications_start')

<livewire:menu.notifications />

@stack('notifications_menu_notifications_end')
</div>

@stack('notifications_menu_end')
@endcan

@stack('settings_menu_start')

<div class="settings-menu user-menu menu-list fixed h-full overflow-y-unset ltr:-left-80 rtl:-right-80">
@stack('settings_menu_title_start')

<div class="flex items-center mb-3">
<span name="settings" class="material-icons-outlined w-8 h-8 flex items-center justify-center text-purple text-2xl pointer-events-none">settings</span>

Expand All @@ -202,10 +236,20 @@ class="flex flex-col items-center justify-center mb-5 cursor-pointer menu-button
</div>
</div>

@stack('settings_menu_settings_start')

<livewire:menu.settings />

@stack('settings_menu_settings_end')
</div>

@stack('settings_menu_end')

@stack('add_new_menu_start')

<div class="add-new-menu user-menu menu-list fixed h-full ltr:-left-80 rtl:-right-80">
@stack('add_new_menu_title_start')

<div class="flex items-center mb-3">
<span name="add_circle_outline" class="material-icons-outlined w-8 h-8 flex items-center justify-center text-purple text-2xl pointer-events-none">add_circle_outline</span>

Expand All @@ -214,9 +258,15 @@ class="flex flex-col items-center justify-center mb-5 cursor-pointer menu-button
</div>
</div>

@stack('add_new_menu_add_new_start')

<livewire:menu.neww />

@stack('add_new_menu_add_new_end')
</div>

@stack('add_new_menu_end')

<button type="button" class="toggle-button absolute ltr:-right-2 rtl:-left-2 top-8 cursor-pointer transition-opacity ease-in-out z-50">
<span class="material-icons text-lg text-purple transform ltr:rotate-90 rtl:-rotate-90 pointer-events-none">expand_circle_down</span>
</button>
Expand Down

0 comments on commit 7f25254

Please sign in to comment.