-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Rename route "daily-achievement" into "achievement" with its relate…
…d file - Rename route "achievement" into "report" with its related file
- Loading branch information
Showing
20 changed files
with
221 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers; | ||
|
||
use App\Http\Requests\Achievement\LaporanPencapaianNewCinChartRequest; | ||
use App\Repositories\AchievementRepository; | ||
|
||
class ReportController extends Controller | ||
{ | ||
/** | ||
* Create a new instance class. | ||
* | ||
* @param \App\Repositories\AchievementRepository $achievementRepository | ||
* @return void | ||
*/ | ||
public function __construct( | ||
protected AchievementRepository $achievementRepository | ||
) { | ||
// | ||
} | ||
|
||
/** | ||
* Display index page. | ||
* | ||
* @return \Illuminate\Contracts\Support\Renderable | ||
*/ | ||
public function index() | ||
{ | ||
return view('report.index'); | ||
} | ||
|
||
/** | ||
* Return laporan pencapaian new cin chart data as json response. | ||
* | ||
* @param \App\Http\Requests\Achievement\LaporanPencapaianNewCinChartRequest $request | ||
* @return \Illuminate\Http\JsonResponse | ||
*/ | ||
public function laporanPencapaianNewCinChart(LaporanPencapaianNewCinChartRequest $request) | ||
{ | ||
$data = $this->achievementRepository->chartLaporanPencapaianNewCin( | ||
$request->date('start_date'), | ||
$request->date('end_date'), | ||
$request->periodicity | ||
); | ||
|
||
return response()->json($data); | ||
} | ||
|
||
/** | ||
* Display dashboard growth newcin page. | ||
* | ||
* @return \Illuminate\Contracts\Support\Renderable | ||
*/ | ||
public function dashboardGrowthNewCin() | ||
{ | ||
return view('report.dashboard-growth-new-cin'); | ||
} | ||
|
||
/** | ||
* Display dashboard penutupancin page. | ||
* | ||
* @return \Illuminate\Contracts\Support\Renderable | ||
*/ | ||
public function dashboardPenutupanCin() | ||
{ | ||
return view('report.dashboard-penutupan-cin'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,5 @@ | |
'education' => 'Edukasi', | ||
'monitoring' => 'Monitoring', | ||
'achievement' => 'Pencapaian', | ||
'report' => 'Laporan', | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.