updaetd deployer
This commit is contained in:
@@ -1,101 +1,145 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="dark">
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="dark">
|
||||||
<head>
|
<head>
|
||||||
@include('partials.head')
|
@include('partials.head')
|
||||||
</head>
|
</head>
|
||||||
<body class="min-h-screen bg-white dark:bg-zinc-800">
|
|
||||||
<flux:sidebar sticky collapsible="mobile" class="border-e border-zinc-200 bg-zinc-50 dark:border-zinc-700 dark:bg-zinc-900">
|
|
||||||
<flux:sidebar.header>
|
|
||||||
<x-app-logo :sidebar="true" href="{{ route('dashboard') }}" wire:navigate />
|
|
||||||
<flux:sidebar.collapse class="lg:hidden" />
|
|
||||||
</flux:sidebar.header>
|
|
||||||
|
|
||||||
<flux:sidebar.nav>
|
<body class="min-h-screen bg-white dark:bg-zinc-800">
|
||||||
<flux:sidebar.group :heading="__('Platform')" class="grid">
|
<flux:sidebar
|
||||||
<flux:sidebar.item icon="home" :href="route('dashboard')" :current="request()->routeIs('dashboard')" wire:navigate>
|
sticky
|
||||||
{{ __('Dashboard') }}
|
collapsible="mobile"
|
||||||
</flux:sidebar.item>
|
class="border-e border-zinc-200 bg-zinc-50 dark:border-zinc-700 dark:bg-zinc-900"
|
||||||
</flux:sidebar.group>
|
>
|
||||||
</flux:sidebar.nav>
|
<flux:sidebar.header>
|
||||||
|
<x-app-logo
|
||||||
|
:sidebar="true"
|
||||||
|
href="{{ route('dashboard') }}"
|
||||||
|
wire:navigate
|
||||||
|
/>
|
||||||
|
|
||||||
<flux:spacer />
|
<flux:sidebar.collapse class="lg:hidden" />
|
||||||
|
</flux:sidebar.header>
|
||||||
|
|
||||||
<flux:sidebar.nav>
|
<flux:sidebar.nav>
|
||||||
<flux:sidebar.item icon="folder-git-2" href="https://github.com/laravel/livewire-starter-kit" target="_blank">
|
<flux:sidebar.group :heading="__('Platform')" class="grid">
|
||||||
{{ __('Repository') }}
|
<flux:sidebar.item
|
||||||
</flux:sidebar.item>
|
icon="home"
|
||||||
|
:href="route('dashboard')"
|
||||||
|
:current="request()->routeIs('dashboard')"
|
||||||
|
wire:navigate
|
||||||
|
>
|
||||||
|
{{ __('Dashboard') }}
|
||||||
|
</flux:sidebar.item>
|
||||||
|
</flux:sidebar.group>
|
||||||
|
</flux:sidebar.nav>
|
||||||
|
|
||||||
<flux:sidebar.item icon="book-open-text" href="https://laravel.com/docs/starter-kits#livewire" target="_blank">
|
<flux:spacer />
|
||||||
{{ __('Documentation') }}
|
|
||||||
</flux:sidebar.item>
|
|
||||||
</flux:sidebar.nav>
|
|
||||||
|
|
||||||
<x-desktop-user-menu class="hidden lg:block" :name="auth()->user()->name" />
|
<flux:sidebar.nav>
|
||||||
</flux:sidebar>
|
<flux:sidebar.item
|
||||||
|
icon="folder"
|
||||||
|
href="https://github.com/laravel/livewire-starter-kit"
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
|
{{ __('Repository') }}
|
||||||
|
</flux:sidebar.item>
|
||||||
|
|
||||||
<!-- Mobile User Menu -->
|
<flux:sidebar.item
|
||||||
<flux:header class="lg:hidden">
|
icon="book-open"
|
||||||
<flux:sidebar.toggle class="lg:hidden" icon="bars-2" inset="left" />
|
href="https://laravel.com/docs/starter-kits#livewire"
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
|
{{ __('Documentation') }}
|
||||||
|
</flux:sidebar.item>
|
||||||
|
</flux:sidebar.nav>
|
||||||
|
|
||||||
<flux:spacer />
|
<x-desktop-user-menu
|
||||||
|
class="hidden lg:block"
|
||||||
|
:name="auth()->user()->name"
|
||||||
|
/>
|
||||||
|
</flux:sidebar>
|
||||||
|
|
||||||
<flux:dropdown position="top" align="end">
|
<!-- Mobile User Menu -->
|
||||||
<flux:profile
|
<flux:header class="lg:hidden">
|
||||||
:initials="auth()->user()->initials()"
|
<flux:sidebar.toggle
|
||||||
icon-trailing="chevron-down"
|
class="lg:hidden"
|
||||||
/>
|
icon="bars-2"
|
||||||
|
inset="left"
|
||||||
|
/>
|
||||||
|
|
||||||
<flux:menu>
|
<flux:spacer />
|
||||||
<flux:menu.radio.group>
|
|
||||||
<div class="p-0 text-sm font-normal">
|
|
||||||
<div class="flex items-center gap-2 px-1 py-1.5 text-start text-sm">
|
|
||||||
<flux:avatar
|
|
||||||
:name="auth()->user()->name"
|
|
||||||
:initials="auth()->user()->initials()"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<div class="grid flex-1 text-start text-sm leading-tight">
|
<flux:dropdown position="top" align="end">
|
||||||
<flux:heading class="truncate">{{ auth()->user()->name }}</flux:heading>
|
<flux:profile
|
||||||
<flux:text class="truncate">{{ auth()->user()->email }}</flux:text>
|
:initials="auth()->user()->initials()"
|
||||||
</div>
|
icon-trailing="chevron-down"
|
||||||
</div>
|
/>
|
||||||
|
|
||||||
|
<flux:menu>
|
||||||
|
<flux:menu.radio.group>
|
||||||
|
<div class="p-0 text-sm font-normal">
|
||||||
|
<div class="flex items-center gap-2 px-1 py-1.5 text-start text-sm">
|
||||||
|
<flux:avatar
|
||||||
|
:name="auth()->user()->name"
|
||||||
|
:initials="auth()->user()->initials()"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<div class="grid flex-1 text-start text-sm leading-tight">
|
||||||
|
<flux:heading class="truncate">
|
||||||
|
{{ auth()->user()->name }}
|
||||||
|
</flux:heading>
|
||||||
|
|
||||||
|
<flux:text class="truncate">
|
||||||
|
{{ auth()->user()->email }}
|
||||||
|
</flux:text>
|
||||||
</div>
|
</div>
|
||||||
</flux:menu.radio.group>
|
</div>
|
||||||
|
</div>
|
||||||
|
</flux:menu.radio.group>
|
||||||
|
|
||||||
<flux:menu.separator />
|
<flux:menu.separator />
|
||||||
|
|
||||||
<flux:menu.radio.group>
|
<flux:menu.radio.group>
|
||||||
<flux:menu.item :href="route('profile.edit')" icon="cog" wire:navigate>
|
<flux:menu.item
|
||||||
{{ __('Settings') }}
|
:href="route('profile.edit')"
|
||||||
</flux:menu.item>
|
icon="cog"
|
||||||
</flux:menu.radio.group>
|
wire:navigate
|
||||||
|
>
|
||||||
|
{{ __('Settings') }}
|
||||||
|
</flux:menu.item>
|
||||||
|
</flux:menu.radio.group>
|
||||||
|
|
||||||
<flux:menu.separator />
|
<flux:menu.separator />
|
||||||
|
|
||||||
<form method="POST" action="{{ route('logout') }}" class="w-full">
|
<form
|
||||||
@csrf
|
method="POST"
|
||||||
<flux:menu.item
|
action="{{ route('logout') }}"
|
||||||
as="button"
|
class="w-full"
|
||||||
type="submit"
|
>
|
||||||
icon="arrow-right-start-on-rectangle"
|
@csrf
|
||||||
class="w-full cursor-pointer"
|
|
||||||
data-test="logout-button"
|
|
||||||
>
|
|
||||||
{{ __('Log out') }}
|
|
||||||
</flux:menu.item>
|
|
||||||
</form>
|
|
||||||
</flux:menu>
|
|
||||||
</flux:dropdown>
|
|
||||||
</flux:header>
|
|
||||||
|
|
||||||
{{ $slot }}
|
<flux:menu.item
|
||||||
|
as="button"
|
||||||
|
type="submit"
|
||||||
|
icon="arrow-right-start-on-rectangle"
|
||||||
|
class="w-full cursor-pointer"
|
||||||
|
data-test="logout-button"
|
||||||
|
>
|
||||||
|
{{ __('Log out') }}
|
||||||
|
</flux:menu.item>
|
||||||
|
</form>
|
||||||
|
</flux:menu>
|
||||||
|
</flux:dropdown>
|
||||||
|
</flux:header>
|
||||||
|
|
||||||
@persist('toast')
|
{{ $slot }}
|
||||||
<flux:toast.group>
|
|
||||||
<flux:toast />
|
|
||||||
</flux:toast.group>
|
|
||||||
@endpersist
|
|
||||||
|
|
||||||
@fluxScripts
|
@persist('toast')
|
||||||
</body>
|
<flux:toast.group>
|
||||||
|
<flux:toast />
|
||||||
|
</flux:toast.group>
|
||||||
|
@endpersist
|
||||||
|
|
||||||
|
@fluxScripts
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user