20 lines
907 B
PHP
20 lines
907 B
PHP
@props([
|
|
'sidebar' => false,
|
|
])
|
|
|
|
@if($sidebar)
|
|
<flux:sidebar.brand :name="config('app.name', 'Laravel')" {{ $attributes }}>
|
|
<x-slot name="logo" class="flex aspect-square size-8 items-center justify-center rounded-md bg-accent-content text-accent-foreground">
|
|
<x-app-logo-icon class="size-5 fill-current text-white dark:text-black" />
|
|
<x-slot name="logo">
|
|
<img src="{{ asset('mytodos_main_logo.svg') }}" alt="{{ config('app.name', 'Laravel') }}" class="size-8" />
|
|
</x-slot>
|
|
</flux:sidebar.brand>
|
|
@else
|
|
<flux:brand :name="config('app.name', 'Laravel')" {{ $attributes }}>
|
|
<x-slot name="logo" class="flex aspect-square size-8 items-center justify-center rounded-md bg-accent-content text-accent-foreground">
|
|
<x-app-logo-icon class="size-5 fill-current text-white dark:text-black" />
|
|
</x-slot>
|
|
</flux:brand>
|
|
@endif
|