Skip to content

Commit

Permalink
update widget style & update nav slot to be on quick actions
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io committed Apr 29, 2024
1 parent cb4ff64 commit 94b6907
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 7 deletions.
1 change: 1 addition & 0 deletions resources/lang/ar.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"Quick Actions": "الاختصارات",
"Current Team": "الفريق الحالي",
"Manage Team": "إدارة الفريق",
"Team Settings": "إعدادات الفريق",
Expand Down
1 change: 1 addition & 0 deletions resources/lang/en.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"Quick Actions": "Quick Actions",
"Current Team": "Current Team",
"Manage Team": "Manage Team",
"Team Settings": "Team Settings",
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/widget.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div {{$attributes->class([
"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"
"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"
])}} >
<div class="flex justify-between gap-4">
<div>
Expand Down
46 changes: 41 additions & 5 deletions resources/views/layouts/includes/nav.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,46 @@ class="
@endforeach
</div>

{{-- <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')"/>--}}
{{-- <x-tomato-admin-dropdown-item type="link" method="POST" icon="bx bx-globe" :href="route('admin.lang')" :label="trans('tomato-admin::global.translation')"/>--}}


@if(count(\TomatoPHP\TomatoAdmin\Facade\TomatoSlot::getNavBeforeUserDropdown()))
{{-- Dark Mode Button --}}
<div>
<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">
</div>

<!-- Notifications -->
<div>
<!-- Open Notification Modal -->
<div
title="filament::layout.database_notifications"
type="button"
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">
<span class="sr-only">

</span>

<x-tomato-admin-dropdown>
<x-slot:button>
<x-tomato-admin-tooltip text="{{ __('Quick Actions') }}">
<div class="text-center flex flex-col item-center justify-center">
<div>
<i class="bx bx-plus-circle mt-1"></i>
</div>
</div>
</x-tomato-admin-tooltip>
</x-slot:button>

@foreach(\TomatoPHP\TomatoAdmin\Facade\TomatoSlot::getNavBeforeUserDropdown() as $item)
@include($item)
@endforeach
</x-tomato-admin-dropdown>
</div>
</div>

<div></div>
</div>
@endif

{{-- Dark Mode Button --}}
<div>
Expand Down Expand Up @@ -201,9 +239,7 @@ class="border border-zinc-100 dark:border-zinc-700 filament-icon-button flex ite
<div></div>
</div>
@endif
@foreach(\TomatoPHP\TomatoAdmin\Facade\TomatoSlot::getNavBeforeUserDropdown() as $item)
@include($item)
@endforeach


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

Expand Down
2 changes: 1 addition & 1 deletion resources/views/pages/dashboard.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@include($item)
@endforeach
<!-- Dashboard Widgets -->
<div class="grid grid-cols-1 gap-4 mb-6 filament-widgets-container md:grid-cols-2 lg:grid-cols-2 lg:gap-8">
<div class="grid grid-cols-1 gap-4 filament-widgets-container md:grid-cols-2 lg:grid-cols-2">
@php
$hasWidgets = \TomatoPHP\TomatoAdmin\Services\TomatoWidget::get();
@endphp
Expand Down

0 comments on commit 94b6907

Please sign in to comment.