generated from spatie/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: AppMenu Search Enhanced for larger amount of Items.
Fix: Created dedicated component for dashboard card
- Loading branch information
1 parent
01edec0
commit 7b3f6fe
Showing
3 changed files
with
96 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
stubs/resources/js/Pages/Dashboard/Components/DashboardCard.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<template> | ||
<div | ||
class="shadow-xs flex items-center rounded-lg border border-skin-neutral-4 bg-skin-neutral-2 p-4 hover:cursor-pointer hover:bg-skin-neutral-1" | ||
@click="$inertia.visit(route(link))" | ||
> | ||
<div | ||
class="mr-4 rounded-full bg-green-100 px-3 py-2 text-green-500 dark:bg-green-500 dark:text-green-100" | ||
> | ||
<i :class="icon" class="text-2xl"></i> | ||
</div> | ||
<div> | ||
<p class="mb-2 text-sm font-medium"> | ||
{{ label }} | ||
</p> | ||
<p class="text-lg font-semibold"> | ||
{{ count }} | ||
</p> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
import useAuthCan from '@/Composables/useAuthCan' | ||
defineProps({ | ||
link: { | ||
type: String, | ||
default: null | ||
}, | ||
count: { | ||
type: String, | ||
default: null | ||
}, | ||
label: { | ||
type: String, | ||
default: null | ||
}, | ||
icon: { | ||
type: String, | ||
default: null | ||
} | ||
}) | ||
const { can } = useAuthCan() | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters