Skip to content

Commit 94b6907

Browse files
committed
update widget style & update nav slot to be on quick actions
1 parent cb4ff64 commit 94b6907

File tree

5 files changed

+45
-7
lines changed

5 files changed

+45
-7
lines changed

resources/lang/ar.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"Quick Actions": "الاختصارات",
23
"Current Team": "الفريق الحالي",
34
"Manage Team": "إدارة الفريق",
45
"Team Settings": "إعدادات الفريق",

resources/lang/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"Quick Actions": "Quick Actions",
23
"Current Team": "Current Team",
34
"Manage Team": "Manage Team",
45
"Team Settings": "Team Settings",

resources/views/components/widget.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div {{$attributes->class([
2-
"relative rounded-xl bg-white p-6 shadow-sm border border-zinc-100 dark:border-zinc-800 dark:bg-zinc-900 dark:ring-white/10"
2+
"relative rounded-xl bg-white p-6 shadow-sm border border-zinc-100 dark:border-zinc-700 dark:bg-zinc-800 dark:ring-white/10"
33
])}} >
44
<div class="flex justify-between gap-4">
55
<div>

resources/views/layouts/includes/nav.blade.php

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,46 @@ class="
8989
@endforeach
9090
</div>
9191

92-
{{-- <x-tomato-admin-dropdown-item type="button" icon="bx bxs-moon" @click.prevent="data.dark = !data.dark; $splade.refresh()" :label="trans('tomato-admin::global.dark')"/>--}}
93-
{{-- <x-tomato-admin-dropdown-item type="link" method="POST" icon="bx bx-globe" :href="route('admin.lang')" :label="trans('tomato-admin::global.translation')"/>--}}
92+
93+
94+
@if(count(\TomatoPHP\TomatoAdmin\Facade\TomatoSlot::getNavBeforeUserDropdown()))
95+
{{-- Dark Mode Button --}}
96+
<div>
97+
<div class="filament-notifications pointer-events-none fixed inset-4 z-50 mx-auto flex justify-end gap-3 items-end flex-col-reverse" role="status">
98+
</div>
99+
100+
<!-- Notifications -->
101+
<div>
102+
<!-- Open Notification Modal -->
103+
<div
104+
title="filament::layout.database_notifications"
105+
type="button"
106+
class="text-center border border-zinc-100 dark:border-zinc-700 filament-icon-button flex items-center justify-center rounded-full relative hover:bg-zinc-500/5 focus:outline-none text-primary-500 focus:bg-primary-500/10 dark:hover:bg-zinc-300/5 w-8 h-8 ml-4 -mr-1">
107+
<span class="sr-only">
108+
109+
</span>
110+
111+
<x-tomato-admin-dropdown>
112+
<x-slot:button>
113+
<x-tomato-admin-tooltip text="{{ __('Quick Actions') }}">
114+
<div class="text-center flex flex-col item-center justify-center">
115+
<div>
116+
<i class="bx bx-plus-circle mt-1"></i>
117+
</div>
118+
</div>
119+
</x-tomato-admin-tooltip>
120+
</x-slot:button>
121+
122+
@foreach(\TomatoPHP\TomatoAdmin\Facade\TomatoSlot::getNavBeforeUserDropdown() as $item)
123+
@include($item)
124+
@endforeach
125+
</x-tomato-admin-dropdown>
126+
</div>
127+
</div>
128+
129+
<div></div>
130+
</div>
131+
@endif
94132

95133
{{-- Dark Mode Button --}}
96134
<div>
@@ -201,9 +239,7 @@ class="border border-zinc-100 dark:border-zinc-700 filament-icon-button flex ite
201239
<div></div>
202240
</div>
203241
@endif
204-
@foreach(\TomatoPHP\TomatoAdmin\Facade\TomatoSlot::getNavBeforeUserDropdown() as $item)
205-
@include($item)
206-
@endforeach
242+
207243

208244
<x-tomato-admin-profile-dropdown />
209245

resources/views/pages/dashboard.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@include($item)
55
@endforeach
66
<!-- Dashboard Widgets -->
7-
<div class="grid grid-cols-1 gap-4 mb-6 filament-widgets-container md:grid-cols-2 lg:grid-cols-2 lg:gap-8">
7+
<div class="grid grid-cols-1 gap-4 filament-widgets-container md:grid-cols-2 lg:grid-cols-2">
88
@php
99
$hasWidgets = \TomatoPHP\TomatoAdmin\Services\TomatoWidget::get();
1010
@endphp

0 commit comments

Comments
 (0)