2023-03-03 15:54:28 +00:00
|
|
|
<script setup>
|
2023-10-31 14:38:43 +00:00
|
|
|
import { Head, Link, useForm } from '@inertiajs/vue3';
|
|
|
|
import { mdiAccountKey, mdiArrowLeftBoldOutline } from '@mdi/js';
|
|
|
|
import LayoutAuthenticated from '@/Layouts/LayoutAuthenticated.vue';
|
|
|
|
import SectionMain from '@/Components/SectionMain.vue';
|
|
|
|
import SectionTitleLineWithButton from '@/Components/SectionTitleLineWithButton.vue';
|
|
|
|
import CardBox from '@/Components/CardBox.vue';
|
|
|
|
import BaseButton from '@/Components/BaseButton.vue';
|
2023-03-03 15:54:28 +00:00
|
|
|
import { stardust } from '@eidellev/adonis-stardust/client';
|
|
|
|
|
|
|
|
const props = defineProps({
|
2023-10-31 14:38:43 +00:00
|
|
|
role: {
|
|
|
|
type: Object,
|
|
|
|
default: () => ({}),
|
|
|
|
},
|
|
|
|
permissions: {
|
|
|
|
type: Object,
|
|
|
|
default: () => ({}),
|
|
|
|
},
|
|
|
|
roleHasPermissions: {
|
|
|
|
type: Object,
|
|
|
|
default: () => ({}),
|
|
|
|
},
|
|
|
|
});
|
2023-03-03 15:54:28 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2023-10-31 14:38:43 +00:00
|
|
|
<LayoutAuthenticated>
|
|
|
|
<Head title="View role" />
|
|
|
|
<SectionMain>
|
|
|
|
<SectionTitleLineWithButton :icon="mdiAccountKey" title="View role" main>
|
|
|
|
<BaseButton
|
2023-12-15 16:17:33 +00:00
|
|
|
:route-name="stardust.route('settings.role.index')"
|
2023-10-31 14:38:43 +00:00
|
|
|
:icon="mdiArrowLeftBoldOutline"
|
|
|
|
label="Back"
|
|
|
|
color="white"
|
|
|
|
rounded-full
|
|
|
|
small
|
|
|
|
/>
|
|
|
|
</SectionTitleLineWithButton>
|
|
|
|
<CardBox class="mb-6">
|
|
|
|
<table>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td class="p-4 pl-8 text-slate-500 dark:text-slate-400 hidden lg:block">Name</td>
|
|
|
|
<td data-label="Name">
|
|
|
|
{{ role.name }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="p-4 pl-8 text-slate-500 dark:text-slate-400 hidden lg:block">Name</td>
|
|
|
|
<td data-label="Description">
|
|
|
|
{{ role.description }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="p-4 pl-8 text-slate-500 dark:text-slate-400 hidden lg:block">Created</td>
|
|
|
|
<td data-label="Created">
|
|
|
|
<!-- {{ new Date(role.created_at).toLocaleString() }} -->
|
|
|
|
{{ role.created_at }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</CardBox>
|
|
|
|
</SectionMain>
|
|
|
|
</LayoutAuthenticated>
|
2023-03-03 15:54:28 +00:00
|
|
|
</template>
|