feat: implement Alpine.js modal for content details and migrate to SortableJS for kanban board functionality

This commit is contained in:
I-Fun
2026-04-05 10:45:49 +07:00
parent 8b5992b7ce
commit 64092d3abc
4 changed files with 575 additions and 424 deletions

View File

@@ -70,7 +70,15 @@ class EventController extends Controller
],
]);
return view('schedule.index', compact('events', 'clients', 'calendarEvents', 'categoryTree'));
$holidays = \Illuminate\Support\Facades\Cache::remember('indonesian_holidays', 86400, function() {
$url = "https://libur.deno.dev/api";
$response = @file_get_contents($url);
if ($response === false) return [];
$data = json_decode($response, true);
return is_array($data) ? $data : [];
});
return view('schedule.index', compact('events', 'clients', 'calendarEvents', 'categoryTree', 'holidays'));
}
public function store(Request $request): RedirectResponse