⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
muhasebe
/
modules
/
Dashboard
/
Admin
/
View File Name :
DashboardController.php
<?php namespace Modules\Dashboard\Admin; use Illuminate\Http\Request; use Modules\AdminController; use Modules\Booking\Models\Booking; class DashboardController extends AdminController { public function index() { $f = strtotime('monday this week'); $data = [ 'recent_bookings' => Booking::getRecentBookings(), 'top_cards' => Booking::getTopCardsReport(), 'earning_chart_data' => Booking::getDashboardChartData($f, time()) ]; return view('Dashboard::index', $data); } public function reloadChart(Request $request) { $chart = $request->input('chart'); switch ($chart) { case "earning": $from = $request->input('from'); $to = $request->input('to'); return $this->sendSuccess([ 'data' => Booking::getDashboardChartData(strtotime($from), strtotime($to)) ]); break; } } }