|
| 1 | +<x-filament-widgets::widget class="gap-5 fi-filament-info-widget"> |
| 2 | + <section class="flex flex-col gap-5 mb-5 space-x-5 w-full xl:flex-row"> |
| 3 | + <x-filament::section class="w-full"> |
| 4 | + <div class="flex gap-x-3 items-center w-full"> |
| 5 | + <div class="flex-1"> |
| 6 | + <a href="/" rel="noopener noreferrer" target="_blank"><x-logo class="w-auto h-6"></x-logo></a> |
| 7 | + <p class="mt-2 text-xs text-gray-500 dark:text-gray-400">{{ wave_version() }}</p> |
| 8 | + </div> |
| 9 | + <div class="flex flex-col gap-y-1 items-end"> |
| 10 | + <x-filament::link color="gray" href="https://wave.devdojo.com/docs" icon="heroicon-m-book-open" icon-alias="panels::widgets.filament-info.open-documentation-button" rel="noopener noreferrer" target="_blank"> |
| 11 | + {{ __('filament-panels::widgets/filament-info-widget.actions.open_documentation.label') }} |
| 12 | + </x-filament::link> |
| 13 | + <x-filament::link color="gray" href="https://github.com/thedevdojo/wave" icon-alias="panels::widgets.filament-info.open-github-button" rel="noopener noreferrer" target="_blank"> |
| 14 | + <x-slot name="icon"><svg viewBox="0 0 98 96" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" fill="currentColor" fill-rule="evenodd" d="M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z" /></svg></x-slot> |
| 15 | + {{ __('filament-panels::widgets/filament-info-widget.actions.open_github.label') }} |
| 16 | + </x-filament::link> |
| 17 | + </div> |
| 18 | + </div> |
| 19 | + </x-filament::section> |
| 20 | + <x-filament::section class="w-full"> |
| 21 | + <div class="flex gap-x-3 items-center w-full"> |
| 22 | + <div class="flex-1"> |
| 23 | + <h2 class="grid flex-1 text-base font-semibold leading-6 text-gray-950 dark:text-white">Welcome to the Wave Admin</h2> |
| 24 | + <p class="text-sm text-gray-500 dark:text-gray-400"><span class="font-medium text-blue-600">Active Theme: </span>{{ \Wave\Theme::where('active', 1)->first()->name }}</p> |
| 25 | + </div> |
| 26 | + <x-filament::button color="gray" icon="heroicon-m-arrow-top-right-on-square" icon-alias="panels::widgets.account.logout-button" labeled-from="sm" tag="a" type="submit" href="/" target="_blank"> |
| 27 | + Visit your Site |
| 28 | + </x-filament::button> |
| 29 | + </div> |
| 30 | + </x-filament::section> |
| 31 | + </section> |
| 32 | + <section class="flex gap-5 mb-5"> |
| 33 | + <section class="flex flex-col gap-5 items-center w-full xl:flex-row"> |
| 34 | + <x-filament::section class="w-full"> |
| 35 | + <div class="flex gap-x-5 items-center"> |
| 36 | + <div class="flex-"> |
| 37 | + <x-phosphor-users-duotone class="h-10 text-blue-600 fill-current" /> |
| 38 | + </div> |
| 39 | + <div class="flex flex-col w-full"> |
| 40 | + <div class="mt-1 text-2xl font-semibold tracking-tight text-gray-900 dark:text-gray-200">{{ \Wave\User::count() }}</div> |
| 41 | + </div> |
| 42 | + </div> |
| 43 | + <div class="mt-2 text-xs font-medium text-gray-500 truncate">User Accounts</div> |
| 44 | + </x-filament::section> |
| 45 | + <x-filament::section class="w-full"> |
| 46 | + <div class="flex gap-x-5 items-center"> |
| 47 | + <div class="flex-"> |
| 48 | + <x-phosphor-credit-card-duotone class="h-10 text-blue-600 fill-current" /> |
| 49 | + </div> |
| 50 | + <div class="flex flex-col w-full"> |
| 51 | + <div class="mt-1 text-xl font-semibold tracking-tight text-gray-900 dark:text-gray-200">{{ \Wave\User::count() }}</div> |
| 52 | + </div> |
| 53 | + </div> |
| 54 | + <div class="mt-2 text-xs font-medium text-gray-500 truncate">Subscribers</div> |
| 55 | + </x-filament::section> |
| 56 | + </section> |
| 57 | + <section class="flex flex-col gap-5 items-center w-full xl:flex-row"> |
| 58 | + <x-filament::section class="w-full"> |
| 59 | + <div class="flex gap-x-5 items-center"> |
| 60 | + <div class="hidden lg:inline"> |
| 61 | + <x-phosphor-pencil-line-duotone class="h-10 text-blue-600 fill-current" /> |
| 62 | + </div> |
| 63 | + <div class="flex flex-col w-full"> |
| 64 | + <div class="mt-1 text-2xl font-semibold tracking-tight text-gray-900 dark:text-gray-200">{{ \Wave\Post::count() }}</div> |
| 65 | + </div> |
| 66 | + </div> |
| 67 | + <div class="mt-2 text-xs font-medium text-gray-500 truncate">Total Post Articles</div> |
| 68 | + </x-filament::section> |
| 69 | + <x-filament::section class="w-full"> |
| 70 | + <div class="flex gap-x-5 items-center"> |
| 71 | + <div class="flex-"> |
| 72 | + <x-phosphor-file-text-duotone class="h-10 text-blue-600 fill-current" /> |
| 73 | + </div> |
| 74 | + <div class="flex flex-col w-full"> |
| 75 | + <div class="mt-1 text-xl font-semibold tracking-tight text-gray-900 dark:text-gray-200">{{ \Wave\Page::count() }}</div> |
| 76 | + </div> |
| 77 | + </div> |
| 78 | + <div class="mt-2 text-xs font-medium text-gray-500 truncate">Total Pages</div> |
| 79 | + </x-filament::section> |
| 80 | + </section> |
| 81 | + </section> |
| 82 | + <x-filament::section> |
| 83 | + <div class="flex flex-col relative gap-x-3 justify-center space-y-2 items-center min-h-[400px] w-full "> |
| 84 | + <p class="text-center text-gray-400 dark:text-gray-500">Welcome to your Admin Dashboard. Modify this page at:</p> |
| 85 | + <code class="px-2 py-1 text-xs text-center text-gray-500 rounded-lg dark:text-gray-400 bg-stone-200 dark:bg-stone-800">resources/views/filament/widgets/dashboard-placeholder-widget.blade.php</code> |
| 86 | + </div> |
| 87 | + </x-filament::section> |
| 88 | +</x-filament-widgets::widget> |
0 commit comments