Merge branch 'feature/service_retrieve_data' into develop

# Conflicts:
#	dashboard/app/Http/Controllers/Api/DashboardController.php
This commit is contained in:
pcalengratha
2026-03-25 10:09:12 +07:00
9 changed files with 814 additions and 11 deletions

View File

@@ -133,6 +133,10 @@
</a>
@endforeach
<button type="button" onclick="reloadDataSource()" class="btn btn-sm btn-warning" style="height: 27px; position: absolute; right: 40px; top: 70px;">
Refresh Data
</button>
</div>
<!-- Main Wrapper -->
@@ -146,6 +150,17 @@
</div>
@yield('scripts')
<script>
function reloadDataSource() {
fetch(`/api/dashboard/reload`)
.then(res => res.json())
.then(data => {
location.reload()
});
}
</script>
</body>
</html>
</html>