Skip to content

Commit

Permalink
Update: Daftar unduhan
Browse files Browse the repository at this point in the history
  • Loading branch information
masadi committed Jun 10, 2024
1 parent b4412ef commit 8b16759
Show file tree
Hide file tree
Showing 9 changed files with 87 additions and 45 deletions.
34 changes: 18 additions & 16 deletions app/Console/Commands/RefCP.php
Original file line number Diff line number Diff line change
Expand Up @@ -676,22 +676,24 @@ public function handle()
$mapel = Mata_pelajaran::find($line['mata_pelajaran_id']);
if($mapel){
$count = Capaian_pembelajaran::orderBy('cp_id', 'DESC')->first();
$id = $count->cp_id + 1;
Capaian_pembelajaran::updateOrCreate(
[
'mata_pelajaran_id' => $line['mata_pelajaran_id'],
'fase' => $line['fase'],
'elemen' => $line['elemen'],
'deskripsi' => $line['deskripsi'],
],
[
'cp_id' => $id,
'created_at' => Carbon::create('2022', '07', '01', '00', '00', '01'),
'updated_at' => now(),
'last_sync' => now(),
'is_dir' => 1,
]
);
if($count){
$id = $count->cp_id + 1;
Capaian_pembelajaran::updateOrCreate(
[
'mata_pelajaran_id' => $line['mata_pelajaran_id'],
'fase' => $line['fase'],
'elemen' => $line['elemen'],
'deskripsi' => $line['deskripsi'],
],
[
'cp_id' => $id,
'created_at' => Carbon::create('2022', '07', '01', '00', '00', '01'),
'updated_at' => now(),
'last_sync' => now(),
'is_dir' => 1,
]
);
}
} else {
$this->info($line['mata_pelajaran_id'] . ' belum tersedia');
}
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public function update(Request $request){
return response()->json($data);
}
public function unduhan(){
$data = ['data' => 'unduhan'];
$data = ['data' => view('unduhan')->render()];
return response()->json($data);
}
public function changelog(){
Expand Down
12 changes: 12 additions & 0 deletions app/Http/Controllers/DashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,18 @@ private function dashboard_admin(){
'nama' => 'Bambang Hermanto',
'hp' => '6282149880883',
],
/*[
'nama' => 'Djoko Poernomo',
'hp' => '628119890509',
],
[
'nama' => 'Muhamad Nazmudin',
'hp' => '6285651414221',
],
[
'nama' => 'Didik Harianto',
'hp' => '6285258636767',
],*/
],
];
return $data;
Expand Down
2 changes: 1 addition & 1 deletion public/js/app.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/js/chunks/46.23930eafd492c5d34eb6.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion public/js/chunks/46.aeaf7278f93ebf902813.js

This file was deleted.

2 changes: 1 addition & 1 deletion public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"/js/app.js": "/js/app.js?id=c09c609cd84ee7306725",
"/js/app.js": "/js/app.js?id=5a372573045781138851",
"/css/core.css": "/css/core.css?id=5d902ae10f7a46837492",
"/css/loader.css": "/css/loader.css?id=4f39b56a667dc447a5fe"
}
Loading

0 comments on commit 8b16759

Please sign in to comment.