Skip to content

Commit

Permalink
Update layout_builder.blade.php
Browse files Browse the repository at this point in the history
  • Loading branch information
DissNik authored Dec 13, 2023
1 parent 8cb0475 commit 986ef43
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions resources/views/pages/ru/appearance/layout_builder.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,17 @@
<x-code language="php">
namespace App\MoonShine;

use MoonShine\Components\Layout\{Content, Flash, Footer, Header, LayoutBlock, LayoutBuilder, Menu, Sidebar};
use MoonShine\Components\Layout\{Content,
Flash,
Footer,
Header,
LayoutBlock,
LayoutBuilder,
Menu,
Profile,
Search,
Sidebar};
use MoonShine\Components\When;
use MoonShine\Contracts\MoonShineLayoutContract;

final class MoonShineLayout implements MoonShineLayoutContract
Expand All @@ -36,10 +46,16 @@ public static function build(): LayoutBuilder
return LayoutBuilder::make([
Sidebar::make([
Menu::make()->customAttributes(['class' => 'mt-2']),
When::make(
static fn() => config('moonshine.auth.enable', true),
static fn() => [Profile::make(withBorder: true)]
),
]),
LayoutBlock::make([
Flash::make(),
Header::make(),
Header::make([
Search::make(),
]),
Content::make(),
Footer::make()->copyright(fn (): string => <<<'HTML'
&copy; 2021-2023 Made with ❤️ by
Expand All @@ -49,10 +65,9 @@ class="font-semibold text-primary hover:text-secondary"
>
CutCode
</a>
HTML)
->menu([
'https://github.com/moonshine-software/moonshine' => 'GitHub',
]),
HTML)->menu([
'https://moonshine.cutcode.dev' => 'Documentation',
]),
])->customAttributes(['class' => 'layout-page']),
]);
}
Expand Down

0 comments on commit 986ef43

Please sign in to comment.