diff --git a/app/Http/Controllers/Dashboards/PotentialsController.php b/app/Http/Controllers/Dashboards/PotentialsController.php index 4841f0e..1ce8e2c 100644 --- a/app/Http/Controllers/Dashboards/PotentialsController.php +++ b/app/Http/Controllers/Dashboards/PotentialsController.php @@ -3,12 +3,14 @@ namespace App\Http\Controllers\Dashboards; use App\Http\Controllers\Controller; +use App\Models\Menu; use Illuminate\Http\Request; class PotentialsController extends Controller { public function inside_system(){ - return view('dashboards.potentials.inside_system'); + $menus = Menu::all(); + return view('dashboards.potentials.inside_system', compact('menus')); } public function outside_system(){ return view('dashboards.potentials.outside_system'); diff --git a/resources/js/dashboards/potentials/inside_system.js b/resources/js/dashboards/potentials/inside_system.js index 02576d6..4ef19f2 100644 --- a/resources/js/dashboards/potentials/inside_system.js +++ b/resources/js/dashboards/potentials/inside_system.js @@ -168,6 +168,13 @@ document.addEventListener("DOMContentLoaded", async function (e) { await new DashboardPotentialInsideSystem().init(); }); +function handleCircleClick(element) { + const url = element.getAttribute("data-url") || "#"; + if (url !== "#") { + window.location.href = url; + } +} + function resizeDashboard() { let targetElement = document.getElementById("lack-of-potential-wrapper"); let dashboardElement = document.getElementById( diff --git a/resources/views/components/custom-circle.blade.php b/resources/views/components/custom-circle.blade.php index 70d35ab..afe42fc 100644 --- a/resources/views/components/custom-circle.blade.php +++ b/resources/views/components/custom-circle.blade.php @@ -1,11 +1,11 @@ @props(['title' => 'title component', 'visible_data' => false, 'data_count' => '', 'visible_data_type' => false, -'data_type' => '','style' => '', 'size' => '', 'line' => [], 'data_id' => '']) +'data_type' => '','style' => '', 'size' => '', 'data_id' => '', 'document_url' => '#']) @section('css') @vite(['resources/scss/components/_custom_circle.scss']) @endsection -
{{ $title }}
@if ($visible_data === "true") @@ -14,17 +14,5 @@ @if ($visible_data_type === "true")