Skip to content

Commit

Permalink
update slots
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io committed Jan 16, 2024
1 parent 911aa34 commit d11b02f
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
8 changes: 7 additions & 1 deletion resources/views/layouts/guest.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
<div class="w-screen max-w-md px-6 -mt-16 space-y-8 md:mt-0 md:px-2">
<div class="relative p-8 space-y-4 border border-gray-200 shadow-2xl bg-white/50 backdrop-blur-xl rounded-2xl dark:bg-gray-900/50 dark:border-gray-700">
<div class="flex justify-center w-full">
<x-tomato-application-logo class="block h-9 w-auto fill-current text-primary-500" />
@if(count(\TomatoPHP\TomatoAdmin\Facade\TomatoSlot::getLogoSection()))
@foreach(\TomatoPHP\TomatoAdmin\Facade\TomatoSlot::getLogoSection() as $item)
@include($item)
@endforeach
@else
<x-tomato-application-logo class="block h-9 w-auto fill-current text-primary-500" />
@endif
</div>

<h2 class="text-2xl font-bold tracking-tight text-center">
Expand Down
9 changes: 7 additions & 2 deletions resources/views/layouts/includes/aside.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,21 @@ class="
shrink-0
px-6 flex items-center dark:border-gray-700"
>

@if(count(\TomatoPHP\TomatoAdmin\Facade\TomatoSlot::getLogoSection()))
@foreach(\TomatoPHP\TomatoAdmin\Facade\TomatoSlot::getLogoSection() as $item)
@include($item)
@endforeach
@else
<Link
href="{{route('admin')}}"
class="block w-full font-bold"
class="block w-fulls font-bold"
v-show="true"
data-turbo="false"
style=""
>
<x-tomato-application-logo class="block h-9 w-auto fill-current text-primary-500" />
</Link>
@endif
</header>

<nav class="pb-6 overflow-y-auto filament-sidebar-nav" @preserveScroll('sidebar')>
Expand Down
6 changes: 5 additions & 1 deletion resources/views/layouts/includes/footer.blade.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<footer class="bg-white dark:bg-gray-800 dark:border-gray-700 p-4 border-t border-gray-200 flex flex-col items-center justify-center">
@if(count(\TomatoPHP\TomatoAdmin\Facade\TomatoSlot::getFooter()))

@foreach(\TomatoPHP\TomatoAdmin\Facade\TomatoSlot::getFooter() as $item)
@include($item)
@endforeach


@else

<div>
<span class="text-sm">
Expand All @@ -17,4 +19,6 @@
<div class="ml-4 text-center text-xs text-gray-500 sm:text-right sm:ml-0">
Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }})
</div>

@endif
</footer>
4 changes: 3 additions & 1 deletion resources/views/pages/dashboard.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
/>
@endforeach
@else
<div class="col-span-1 filament-widget filament-account-widget">
@if(!count(\TomatoPHP\TomatoAdmin\Facade\TomatoSlot::getDashboardTop()))
<div class="col-span-1 filament-widget filament-account-widget">
<div class="p-2 space-y-2 bg-white shadow rounded-xl dark:border-gray-600 dark:bg-gray-800">
<div class="space-y-2">
<div class="px-4 py-2 space-y-4">
Expand All @@ -43,6 +44,7 @@ class="text-gray-600 hover:text-primary-500 focus:outline-none focus:underline d
</div>
</div>
</div>
@endif
@endif
</div>

Expand Down

0 comments on commit d11b02f

Please sign in to comment.