diff --git a/resources/js/app.js b/resources/js/app.js index e8f4fcec5..64a38aa9b 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -15,6 +15,7 @@ import "./components/maps"; import CheckinSuccessHelper from "../vue/components/CheckinSuccessHelper.vue"; import {i18nVue} from "laravel-vue-i18n"; import TagHelper from "../vue/components/TagHelper.vue"; +import Dashboard from "../vue/components/status/Dashboard.vue"; import TripCreationForm from "../vue/components/TripCreation/TripCreationForm.vue"; import {createPinia} from 'pinia' import piniaPluginPersistedsState from 'pinia-plugin-persistedstate' @@ -117,7 +118,13 @@ document.addEventListener("DOMContentLoaded", function () { app7.use(i18nVue, i18nOptions); app7.use(pinia); app7.mount("#settings-friend-checkin"); + } + if(document.getElementById('vue-container-admin-dashboard')) { + const app8 = createApp({}); + app8.component('dashboard', Dashboard); + app8.use(i18nVue, i18nOptions); + app8.mount('#vue-container-admin-dashboard'); } }); diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php index 5c2e9e24d..f6f3c38a8 100644 --- a/resources/views/dashboard.blade.php +++ b/resources/views/dashboard.blade.php @@ -150,8 +150,9 @@ class="accordion-collapse collapse" @endif - @include('includes.statuses', ['statuses' => $statuses, 'showDates' => true]) - {{ $statuses->links() }} +
+ +
@if($showGlobalButton)
diff --git a/resources/vue/components/status/Dashboard.vue b/resources/vue/components/status/Dashboard.vue new file mode 100644 index 000000000..a1481c070 --- /dev/null +++ b/resources/vue/components/status/Dashboard.vue @@ -0,0 +1,40 @@ + + + + + diff --git a/resources/vue/components/status/StatusCard.vue b/resources/vue/components/status/StatusCard.vue new file mode 100644 index 000000000..f1a52a305 --- /dev/null +++ b/resources/vue/components/status/StatusCard.vue @@ -0,0 +1,189 @@ + + + + +