11<script setup>
2- import { Head , Link , useForm } from " @inertiajs/inertia-vue3" ;
2+ import { Head , Link , useForm } from " @inertiajs/inertia-vue3"
33import {
44 mdiAccountKey ,
55 mdiPlus ,
66 mdiSquareEditOutline ,
77 mdiTrashCan ,
88 mdiAlertBoxOutline ,
9- } from " @mdi/js" ;
10- import LayoutAuthenticated from " @/Layouts/LayoutAuthenticated.vue" ;
11- import SectionMain from " @/Components/SectionMain.vue" ;
12- import SectionTitleLineWithButton from " @/Components/SectionTitleLineWithButton.vue" ;
13- import BaseButton from " @/Components/BaseButton.vue" ;
14- import CardBox from " @/Components/CardBox.vue" ;
15- import BaseButtons from " @/Components/BaseButtons.vue" ;
16- import NotificationBar from " @/Components/NotificationBar.vue" ;
17- import Pagination from " @/Components/Admin/Pagination.vue" ;
18- import Sort from " @/Components/Admin/Sort.vue" ;
9+ } from " @mdi/js"
10+ import LayoutAuthenticated from " @/Layouts/LayoutAuthenticated.vue"
11+ import SectionMain from " @/Components/SectionMain.vue"
12+ import SectionTitleLineWithButton from " @/Components/SectionTitleLineWithButton.vue"
13+ import BaseButton from " @/Components/BaseButton.vue"
14+ import CardBox from " @/Components/CardBox.vue"
15+ import BaseButtons from " @/Components/BaseButtons.vue"
16+ import NotificationBar from " @/Components/NotificationBar.vue"
17+ import Pagination from " @/Components/Admin/Pagination.vue"
18+ import Sort from " @/Components/Admin/Sort.vue"
1919
2020const props = defineProps ({
2121 permissions: {
@@ -30,17 +30,17 @@ const props = defineProps({
3030 type: Object ,
3131 default : () => ({}),
3232 },
33- });
33+ })
3434
3535const form = useForm ({
3636 search: props .filters .search ,
37- });
37+ })
3838
39- const formDelete = useForm ({});
39+ const formDelete = useForm ({})
4040
4141function destroy (id ) {
4242 if (confirm (" Are you sure you want to delete?" )) {
43- formDelete .delete (route (" permission.destroy" , id));
43+ formDelete .delete (route (" permission.destroy" , id))
4444 }
4545}
4646 </script >
0 commit comments