First Commit
This commit is contained in:
parent
33cff2186a
commit
794e2af471
File diff suppressed because it is too large
Load Diff
|
@ -18,7 +18,7 @@ class CuranmorController extends Controller
|
||||||
*/
|
*/
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
$curanmors = Curanmor::orderBy('jumlah_curanmor', 'desc')->get();
|
$curanmors = Curanmor::orderBy('id', 'asc')->get();
|
||||||
return view('admin.dashboardListCuranmor', compact('curanmors'));
|
return view('admin.dashboardListCuranmor', compact('curanmors'));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@ class CurasController extends Controller
|
||||||
*/
|
*/
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
$curases = Curas::orderBy('jumlah_curas', 'desc')->get();
|
$curases = Curas::orderBy('id', 'asc')->get();
|
||||||
return view('admin.dashboardListCuras', compact('curases'));
|
return view('admin.dashboardListCuras', compact('curases'));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,6 +45,33 @@ public function run(): void
|
||||||
24 => 4,
|
24 => 4,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
// $dataCuranmor= [
|
||||||
|
// 1 => 5,
|
||||||
|
// 2 => 4,
|
||||||
|
// 3 => 2,
|
||||||
|
// 4 => 22,
|
||||||
|
// 5 => 4,
|
||||||
|
// 6 => 18,
|
||||||
|
// 7 => 0,
|
||||||
|
// 8 => 37,
|
||||||
|
// 9 => 9,
|
||||||
|
// 10 => 3,
|
||||||
|
// 11 => 2,
|
||||||
|
// 12 => 13,
|
||||||
|
// 13 => 1,
|
||||||
|
// 14 => 21,
|
||||||
|
// 15 => 14,
|
||||||
|
// 16 => 4,
|
||||||
|
// 17 => 10,
|
||||||
|
// 18 => 0,
|
||||||
|
// 19 => 1,
|
||||||
|
// 20 => 5,
|
||||||
|
// 21 => 1,
|
||||||
|
// 22 => 2,
|
||||||
|
// 23 => 5,
|
||||||
|
// 24 => 2,
|
||||||
|
// ];
|
||||||
|
|
||||||
$defaultDate = '2024-12-31 00:00:00';
|
$defaultDate = '2024-12-31 00:00:00';
|
||||||
// Looping untuk membuat data curanmor berdasarkan kecamatan
|
// Looping untuk membuat data curanmor berdasarkan kecamatan
|
||||||
foreach ($kecamatanIds as $kecamatanId) {
|
foreach ($kecamatanIds as $kecamatanId) {
|
||||||
|
|
|
@ -42,6 +42,33 @@ public function run(): void
|
||||||
24 => 2,
|
24 => 2,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
// $dataCuras = [
|
||||||
|
// 1 => 0,
|
||||||
|
// 2 => 0,
|
||||||
|
// 3 => 0,
|
||||||
|
// 4 => 0,
|
||||||
|
// 5 => 1,
|
||||||
|
// 6 => 1,
|
||||||
|
// 7 => 0,
|
||||||
|
// 8 => 0,
|
||||||
|
// 9 => 0,
|
||||||
|
// 10 => 0,
|
||||||
|
// 11 => 0,
|
||||||
|
// 12 => 0,
|
||||||
|
// 13 => 0,
|
||||||
|
// 14 => 0,
|
||||||
|
// 15 => 0,
|
||||||
|
// 16 => 0,
|
||||||
|
// 17 => 0,
|
||||||
|
// 18 => 0,
|
||||||
|
// 19 => 0,
|
||||||
|
// 20 => 1,
|
||||||
|
// 21 => 0,
|
||||||
|
// 22 => 0,
|
||||||
|
// 23 => 3,
|
||||||
|
// 24 => 2,
|
||||||
|
// ];
|
||||||
|
|
||||||
|
|
||||||
$defaultDate = '2024-12-31 00:00:00'; // Default date to be used for both created_at and updated_at
|
$defaultDate = '2024-12-31 00:00:00'; // Default date to be used for both created_at and updated_at
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue