partial update circle chart can click
This commit is contained in:
@@ -4,6 +4,7 @@ namespace App\Http\Controllers\Dashboards;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\ImportDatasource;
|
||||
use App\Models\Menu;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class BigDataController extends Controller
|
||||
@@ -12,7 +13,8 @@ class BigDataController extends Controller
|
||||
$latest_import_datasource = ImportDatasource::latest()->first();
|
||||
$latest_created = $latest_import_datasource ?
|
||||
$latest_import_datasource->created_at->format("j F Y H:i:s") : null;
|
||||
return view('dashboards.bigdata', compact('latest_created'));
|
||||
$menus = Menu::all();
|
||||
return view('dashboards.bigdata', compact('latest_created', 'menus'));
|
||||
}
|
||||
|
||||
public function pbg()
|
||||
|
||||
@@ -13,13 +13,15 @@ class Circle extends Component
|
||||
public $document_type;
|
||||
public $document_id;
|
||||
public $visible_small_circle;
|
||||
public function __construct($document_id = "",$document_title = "", $document_type = "", $document_color = "#020c5c", $visible_small_circle = true)
|
||||
public $document_url;
|
||||
public function __construct($document_id = "",$document_title = "", $document_type = "", $document_color = "#020c5c", $visible_small_circle = true, $document_url = "#")
|
||||
{
|
||||
$this->document_title = $document_title;
|
||||
$this->document_color = $document_color;
|
||||
$this->document_type = $document_type;
|
||||
$this->document_id = $document_id;
|
||||
$this->visible_small_circle = $visible_small_circle;
|
||||
$this->document_url = $document_url;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user