diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 3fa3c2c..45f9dc2 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -37,14 +37,67 @@ class HomeController extends Controller $data['title'] = 'Dashboard'; $data['group'] = session('group_alias'); if(session('group_alias') == 'sekolah'){ - $data['usulan'] = Kuesioner::where('ms_sekolah_id',session('sekolah_id'))->where('tahun',date('Y'))->first(); + $data['kuesioner'] = Kuesioner::where('ms_sekolah_id',session('sekolah_id'))->where('tahun',date('Y'))->first(); $data['profile'] = ProfileSekolah::where('ms_sekolah_id',session('sekolah_id'))->first(); $data['page'] = FormKriteria::select('page_number')->groupBy('page_number')->orderBy('page_number','ASC')->pluck('page_number')->count(); $data['penilaian'] = Penilaian::select('page_number')->groupBy('page_number')->orderBy('page_number','ASC')->pluck('page_number')->count(); return view($this->template.'.sekolah', $data); }else{ + $data['usulan'] = Kuesioner::where('tahun',date('Y'))->get(); + $data['total_usulan_kab'] = Kuesioner::where('tahun',date('Y'))->where('level',0)->count(); + $data['total_usulan_prov'] = Kuesioner::where('tahun',date('Y'))->where('level',1)->count(); + $data['total_usulan_nasional'] = Kuesioner::where('tahun',date('Y'))->where('level',2)->count(); + $data['total_usulan_mandiri'] = Kuesioner::where('tahun',date('Y'))->where('level',3)->count(); + $data['route'] = 'modules'; return view($this->template.'.admin', $data); } } + + public function gridUsulan(Request $request) + { + $usulan = Kuesioner::where('tahun',date('Y'))->get(); + $_data = []; + foreach ($usulan as $key => $row) { + $action = ''; + + $sekolah = ''; + $sekolah .= @$row->sekolah->nama_sekolah.'
'; + $sekolah .= ''.@$row->profile->tingkat->name.' '; + $sekolah .= ''.@$row->profile->status_sekolah.' '; + + if(($row->level+1) == 1){ + $jenis_usulan = 'Adiwiyata Kab/Kota'; + }elseif(($row->level+1) == 2){ + $jenis_usulan = 'Adiwiyata Provinsi'; + }elseif(($row->level+1) == 3){ + $jenis_usulan = 'Adiwiyata Nasional'; + }elseif(($row->level+1) == 4){ + $jenis_usulan = 'Adiwiyata Mandiri'; + } + + if($row->level == 0){ + $usulanAwal = 'Belum Pernah'; + }elseif($row->level == 1){ + $usulanAwal = 'Adiwiyata Kab/Kota'; + }elseif($row->level == 2){ + $usulanAwal = 'Adiwiyata Provinsi'; + }elseif($row->level == 3){ + $usulanAwal = 'Adiwiyata Nasional'; + }elseif($row->level == 4){ + $usulanAwal = 'Adiwiyata Mandiri'; + } + + + $_data[] = [ + 'no' => $key+1, + 'nama_sekolah' => @$sekolah, + 'npsn' => @$row->sekolah->npsn, + 'kab' => @$row->sekolah->kabupaten->name, + 'usulan_sebelumnya' => @$usulanAwal, + 'pengajuan_usulan' => @$jenis_usulan, + ]; + } + return response()->json($_data); + } } diff --git a/app/Http/Controllers/KuesionerController.php b/app/Http/Controllers/KuesionerController.php index 5e802d5..8cca251 100644 --- a/app/Http/Controllers/KuesionerController.php +++ b/app/Http/Controllers/KuesionerController.php @@ -51,6 +51,9 @@ class KuesionerController extends Controller if((permission('is_create', $this->route.'.*','module',false)) || (permission('is_update', $this->route.'.*','module',false))){ $action .= ''; + if(session('group_alias') != 'sekolah'){ + $action .= ''; + } } if($row->level == 0){ @@ -65,11 +68,24 @@ class KuesionerController extends Controller $penghargaan = ' Adiwiyata Mandiri'; } + $status = ''; + if($row->status == 0){ + $status = 'Belum Diverifikasi'; + }else{ + $status = 'Sudah Diverifikasi'; + } + + $sekolah = ''; + $sekolah .= @$row->sekolah->nama_sekolah.'
'; + $sekolah .= ''.@$row->profile->tingkat->name.' '; + $sekolah .= ''.@$row->profile->status_sekolah.' '; + $sekolah .= ''.@$row->profile->alamat_sekolah.' '; + $_data[] = [ 'no' => $key+1, 'id' => encode_id($row->id), 'npsn' => $row->sekolah->npsn, - 'nama' => $row->sekolah->nama_sekolah, + 'nama' => $sekolah, 'status_level' => 'Level '.levelAdiwiyata($row->npsn).'', 'wilayah' => $row->sekolah->kabupaten->name, 'alamat_sekolah' => $row->sekolah->alamat_sekolah, @@ -77,6 +93,7 @@ class KuesionerController extends Controller 'status_sekolah' => $row->sekolah->status, 'alamat_sekolah' => $row->profile->alamat_sekolah, 'penghargaan' => $penghargaan, + 'status' => $status, 'action' => $action, ]; diff --git a/app/Http/Controllers/Modules/Usulan/CSAKController.php b/app/Http/Controllers/Modules/Usulan/CSAKController.php new file mode 100644 index 0000000..8d42d31 --- /dev/null +++ b/app/Http/Controllers/Modules/Usulan/CSAKController.php @@ -0,0 +1,119 @@ +route; + $data['title'] = $this->title; + $data['provinsi'] = Provinsi::where('kode_wilayah','010000')->get(); + + return view($this->template.'.index',$data); + } + + public function grid(Request $request) + { + $kuesioner = Kuesioner::where('level',0)->orderBy('created_at','DESC')->get(); + foreach ($kuesioner as $key => $row) { + + $action = ''; + + if((permission('is_create', $this->route.'.*','module',false)) || (permission('is_update', $this->route.'.*','module',false))){ + $action .= ''; + } + + if($row->level == 0){ + $penghargaan = ' Belum Pernah'; + }elseif($row->level == 1){ + $penghargaan = ' Adiwiyata Kab/Kota'; + }elseif($row->level == 2){ + $penghargaan = ' Adiwiyata Provinsi'; + }elseif($row->level == 3){ + $penghargaan = ' Adiwiyata Nasional'; + }elseif($row->level == 4){ + $penghargaan = ' Adiwiyata Mandiri'; + } + + $sekolah = ''; + $sekolah .= @$row->sekolah->nama_sekolah.'
'; + $sekolah .= ''.@$row->profile->tingkat->name.' '; + $sekolah .= ''.@$row->profile->status_sekolah.' '; + + $_data[] = [ + 'no' => $key+1, + 'id' => encode_id($row->id), + 'npsn' => $row->sekolah->npsn, + 'nama' => $sekolah, + 'status_level' => 'Level '.levelAdiwiyata($row->npsn).'', + 'wilayah' => $row->sekolah->kabupaten->name, + 'penghargaan' => $penghargaan, + 'action' => $action, + ]; + + } + + return response()->json($_data); + } + + /** + * Show the form for creating a new resource. + */ + public function create() + { + // + } + + /** + * Store a newly created resource in storage. + */ + public function store(Request $request) + { + // + } + + /** + * Display the specified resource. + */ + public function show(string $id) + { + // + } + + /** + * Show the form for editing the specified resource. + */ + public function edit(string $id) + { + // + } + + /** + * Update the specified resource in storage. + */ + public function update(Request $request, string $id) + { + // + } + + /** + * Remove the specified resource from storage. + */ + public function destroy(string $id) + { + // + } +} diff --git a/app/Http/Controllers/Modules/Usulan/CSAMController.php b/app/Http/Controllers/Modules/Usulan/CSAMController.php new file mode 100644 index 0000000..f44ff55 --- /dev/null +++ b/app/Http/Controllers/Modules/Usulan/CSAMController.php @@ -0,0 +1,118 @@ +route; + $data['title'] = $this->title; + $data['provinsi'] = Provinsi::where('kode_wilayah','010000')->get(); + + return view($this->template.'.index',$data); + } + + public function grid(Request $request) + { + $kuesioner = Kuesioner::where('level',3)->orderBy('created_at','DESC')->get(); + foreach ($kuesioner as $key => $row) { + + $action = ''; + + if((permission('is_create', $this->route.'.*','module',false)) || (permission('is_update', $this->route.'.*','module',false))){ + $action .= ''; + } + + if($row->level == 0){ + $penghargaan = ' Belum Pernah'; + }elseif($row->level == 1){ + $penghargaan = ' Adiwiyata Kab/Kota'; + }elseif($row->level == 2){ + $penghargaan = ' Adiwiyata Provinsi'; + }elseif($row->level == 3){ + $penghargaan = ' Adiwiyata Nasional'; + }elseif($row->level == 4){ + $penghargaan = ' Adiwiyata Mandiri'; + } + + $sekolah = ''; + $sekolah .= @$row->sekolah->nama_sekolah.'
'; + $sekolah .= ''.@$row->profile->tingkat->name.' '; + $sekolah .= ''.@$row->profile->status_sekolah.' '; + + $_data[] = [ + 'no' => $key+1, + 'id' => encode_id($row->id), + 'npsn' => $row->sekolah->npsn, + 'nama' => $sekolah, + 'wilayah' => $row->sekolah->kabupaten->name, + 'penghargaan' => $penghargaan, + 'action' => $action, + ]; + + } + + return response()->json($_data); + } + + /** + * Show the form for creating a new resource. + */ + public function create() + { + // + } + + /** + * Store a newly created resource in storage. + */ + public function store(Request $request) + { + // + } + + /** + * Display the specified resource. + */ + public function show(string $id) + { + // + } + + /** + * Show the form for editing the specified resource. + */ + public function edit(string $id) + { + // + } + + /** + * Update the specified resource in storage. + */ + public function update(Request $request, string $id) + { + // + } + + /** + * Remove the specified resource from storage. + */ + public function destroy(string $id) + { + // + } +} diff --git a/app/Http/Controllers/Modules/Usulan/CSANController.php b/app/Http/Controllers/Modules/Usulan/CSANController.php new file mode 100644 index 0000000..c20088e --- /dev/null +++ b/app/Http/Controllers/Modules/Usulan/CSANController.php @@ -0,0 +1,118 @@ +route; + $data['title'] = $this->title; + $data['provinsi'] = Provinsi::where('kode_wilayah','010000')->get(); + + return view($this->template.'.index',$data); + } + + public function grid(Request $request) + { + $kuesioner = Kuesioner::where('level',2)->orderBy('created_at','DESC')->get(); + foreach ($kuesioner as $key => $row) { + + $action = ''; + + if((permission('is_create', $this->route.'.*','module',false)) || (permission('is_update', $this->route.'.*','module',false))){ + $action .= ''; + } + + if($row->level == 0){ + $penghargaan = ' Belum Pernah'; + }elseif($row->level == 1){ + $penghargaan = ' Adiwiyata Kab/Kota'; + }elseif($row->level == 2){ + $penghargaan = ' Adiwiyata Provinsi'; + }elseif($row->level == 3){ + $penghargaan = ' Adiwiyata Nasional'; + }elseif($row->level == 4){ + $penghargaan = ' Adiwiyata Mandiri'; + } + + $sekolah = ''; + $sekolah .= @$row->sekolah->nama_sekolah.'
'; + $sekolah .= ''.@$row->profile->tingkat->name.' '; + $sekolah .= ''.@$row->profile->status_sekolah.' '; + + $_data[] = [ + 'no' => $key+1, + 'id' => encode_id($row->id), + 'npsn' => $row->sekolah->npsn, + 'nama' => $sekolah, + 'wilayah' => $row->sekolah->kabupaten->name, + 'penghargaan' => $penghargaan, + 'action' => $action, + ]; + + } + + return response()->json($_data); + } + + /** + * Show the form for creating a new resource. + */ + public function create() + { + // + } + + /** + * Store a newly created resource in storage. + */ + public function store(Request $request) + { + // + } + + /** + * Display the specified resource. + */ + public function show(string $id) + { + // + } + + /** + * Show the form for editing the specified resource. + */ + public function edit(string $id) + { + // + } + + /** + * Update the specified resource in storage. + */ + public function update(Request $request, string $id) + { + // + } + + /** + * Remove the specified resource from storage. + */ + public function destroy(string $id) + { + // + } +} diff --git a/app/Http/Controllers/Modules/Usulan/CSAPController.php b/app/Http/Controllers/Modules/Usulan/CSAPController.php new file mode 100644 index 0000000..179c27b --- /dev/null +++ b/app/Http/Controllers/Modules/Usulan/CSAPController.php @@ -0,0 +1,118 @@ +route; + $data['title'] = $this->title; + $data['provinsi'] = Provinsi::where('kode_wilayah','010000')->get(); + + return view($this->template.'.index',$data); + } + + public function grid(Request $request) + { + $kuesioner = Kuesioner::where('level',1)->orderBy('created_at','DESC')->get(); + foreach ($kuesioner as $key => $row) { + + $action = ''; + + if((permission('is_create', $this->route.'.*','module',false)) || (permission('is_update', $this->route.'.*','module',false))){ + $action .= ''; + } + + if($row->level == 0){ + $penghargaan = ' Belum Pernah'; + }elseif($row->level == 1){ + $penghargaan = ' Adiwiyata Kab/Kota'; + }elseif($row->level == 2){ + $penghargaan = ' Adiwiyata Provinsi'; + }elseif($row->level == 3){ + $penghargaan = ' Adiwiyata Nasional'; + }elseif($row->level == 4){ + $penghargaan = ' Adiwiyata Mandiri'; + } + + $sekolah = ''; + $sekolah .= @$row->sekolah->nama_sekolah.'
'; + $sekolah .= ''.@$row->profile->tingkat->name.' '; + $sekolah .= ''.@$row->profile->status_sekolah.' '; + + $_data[] = [ + 'no' => $key+1, + 'id' => encode_id($row->id), + 'npsn' => $row->sekolah->npsn, + 'nama' => $sekolah, + 'wilayah' => $row->sekolah->kabupaten->name, + 'penghargaan' => $penghargaan, + 'action' => $action, + ]; + + } + + return response()->json($_data); + } + + /** + * Show the form for creating a new resource. + */ + public function create() + { + // + } + + /** + * Store a newly created resource in storage. + */ + public function store(Request $request) + { + // + } + + /** + * Display the specified resource. + */ + public function show(string $id) + { + // + } + + /** + * Show the form for editing the specified resource. + */ + public function edit(string $id) + { + // + } + + /** + * Update the specified resource in storage. + */ + public function update(Request $request, string $id) + { + // + } + + /** + * Remove the specified resource from storage. + */ + public function destroy(string $id) + { + // + } +} diff --git a/app/Http/Controllers/Modules/Usulan/KriteriaController.php b/app/Http/Controllers/Modules/Usulan/KriteriaController.php index 7569cc4..c4b556b 100644 --- a/app/Http/Controllers/Modules/Usulan/KriteriaController.php +++ b/app/Http/Controllers/Modules/Usulan/KriteriaController.php @@ -25,6 +25,13 @@ class KriteriaController extends Controller ]); } + if(Kuesioner::where('ms_sekolah_id',session('sekolah_id'))->where('tahun',date('Y'))->value('status') == 0){ + return redirect('kuesioner/update/'.encode_id(session('sekolah_id')))->with([ + 'message' => 'Maaf usulan anda belum diverifikasi oleh Dinas', + 'type' => 'error', + ]); + } + $data['title'] = $this->title; $data['route'] = $this->route; $data['page'] = FormKriteria::select('page_number')->groupBy('page_number')->orderBy('page_number','ASC')->pluck('page_number')->toArray(); @@ -119,7 +126,6 @@ class KriteriaController extends Controller 'page_number' => decode_id($data['key']), 'key' => str_replace('input_','',$key), ],[ - 'user_id' => auth()->user()->id, 'ms_sekolah_id' => session('sekolah_id'), 'npsn' => session('npsn'), 'page_number' => decode_id($data['key']), diff --git a/app/Http/Controllers/Modules/Usulan/SuratController.php b/app/Http/Controllers/Modules/Usulan/SuratController.php new file mode 100644 index 0000000..3439fbf --- /dev/null +++ b/app/Http/Controllers/Modules/Usulan/SuratController.php @@ -0,0 +1,65 @@ +id)).'" data-toggle="tooltip" title="Edit Data" class="btn btn-xs btn-block btn-primary">'; } + if($row->level == 0){ + $penghargaan = ' Belum Pernah'; + }elseif($row->level == 1){ + $penghargaan = ' Adiwiyata Kab/Kota'; + }elseif($row->level == 2){ + $penghargaan = ' Adiwiyata Provinsi'; + }elseif($row->level == 3){ + $penghargaan = ' Adiwiyata Nasional'; + }elseif($row->level == 4){ + $penghargaan = ' Adiwiyata Mandiri'; + } + $_data[] = [ 'no' => $key+1, 'id' => encode_id($row->id), @@ -72,7 +84,7 @@ class ProfileController extends Controller 'status_level' => 'Level '.levelAdiwiyata($row->npsn).'', 'wilayah' => $row->kabupaten->name, 'tanggal_level' => '-', - 'penghargaan' => '', + 'penghargaan' => $penghargaan, 'dok' => '', 'kriteria' => '', 'jenis_usulan' => 'Nasional', diff --git a/resources/views/layouts/master.blade.php b/resources/views/layouts/master.blade.php index 9829fcf..816bb6f 100644 --- a/resources/views/layouts/master.blade.php +++ b/resources/views/layouts/master.blade.php @@ -29,6 +29,15 @@ color: #333!important; margin: 0px; } + + .wrap th, + .wrap td { + max-width: 100%; /* Sesuaikan max-width kolom */ + } + .wrap td span { + white-space: normal !important; /* Pastikan teks bisa wrap */ + word-wrap: break-word; /* Bungkus kata yang panjang */ + } @yield('page-css') diff --git a/resources/views/modules/dashboard/admin.blade.php b/resources/views/modules/dashboard/admin.blade.php index 0c7c6c0..b7ae808 100644 --- a/resources/views/modules/dashboard/admin.blade.php +++ b/resources/views/modules/dashboard/admin.blade.php @@ -14,44 +14,44 @@

- 21 + {{$total_usulan_kab}}

Total Usulan Adiwiyata Kota
- +

- 21 + {{$total_usulan_prov}}

Total Usulan Adiwiyata Provinsi
- +

- 99 + {{$total_usulan_nasional}}

Total Usulan Adiwiyata Nasional
- +

- 20 + {{$total_usulan_mandiri}}

Total Usulan Adiwiyata Mandiri
- +
@@ -64,7 +64,7 @@ Total Sekolah Adiwiyata Kota - +
@@ -75,7 +75,7 @@ Total Sekolah Adiwiyata Provinsi
- +
@@ -86,7 +86,7 @@ Total Sekolah Adiwiyata Nasional
- +
@@ -97,7 +97,7 @@ Total Sekolah Adiwiyata Mandiri
- + @@ -106,49 +106,35 @@
-

Usulan Adiwiyata Tahun 2024

+

Usulan Adiwiyata Tahun {{date('Y')}}

- - - - - - - - - +
NoNPSNNama SekolahTahunTingkat SekolahStatus Sekolah
+ + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NoNPSNNama SekolahKab/KotaUsulan SebelumnyaPengajuan Usulan
1312344SDN 01 Makasar2024SDNegeri
28872638SDN 02 Makasar2024SDNegeri
3912377SMA 14 Jakarta2024SDNegeri
+ + +
diff --git a/resources/views/modules/kuesioner/index.blade.php b/resources/views/modules/kuesioner/index.blade.php index ca1b3d2..5aa1e44 100644 --- a/resources/views/modules/kuesioner/index.blade.php +++ b/resources/views/modules/kuesioner/index.blade.php @@ -122,7 +122,7 @@
- NPSN - - - + @@ -156,11 +154,73 @@ + + @endsection @section('page-js') + + +@endsection \ No newline at end of file diff --git a/resources/views/modules/usulan/csam/index.blade.php b/resources/views/modules/usulan/csam/index.blade.php new file mode 100644 index 0000000..f33928c --- /dev/null +++ b/resources/views/modules/usulan/csam/index.blade.php @@ -0,0 +1,269 @@ +@extends('layouts.master') +@section('page-css') + + +@endsection +@section('content') +
+

+ {{$title}} +

+
+
+
+
+
+
+

+ +

+
+ +
+
+
+
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+
+
+ +
Nama Sekolah WilayahTingkat SekolahStatus SekolahAlamat Penghargaan TerakhirStatus
+ + + + + + + + + + + + + + +
#NoNPSNNama SekolahWilayahDokumen AdministrasiPemenuhan KriteriaProgressSK
+ +
+
+
+ + +@endsection +@section('page-js') + + + +@endsection \ No newline at end of file diff --git a/resources/views/modules/usulan/csan/index.blade.php b/resources/views/modules/usulan/csan/index.blade.php new file mode 100644 index 0000000..f33928c --- /dev/null +++ b/resources/views/modules/usulan/csan/index.blade.php @@ -0,0 +1,269 @@ +@extends('layouts.master') +@section('page-css') + + +@endsection +@section('content') +
+

+ {{$title}} +

+
+
+
+
+
+
+

+ +

+
+ +
+
+
+
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + +
#NoNPSNNama SekolahWilayahDokumen AdministrasiPemenuhan KriteriaProgressSK
+ +
+
+
+
+
+@endsection +@section('page-js') + + + +@endsection \ No newline at end of file diff --git a/resources/views/modules/usulan/csap/index.blade.php b/resources/views/modules/usulan/csap/index.blade.php new file mode 100644 index 0000000..f33928c --- /dev/null +++ b/resources/views/modules/usulan/csap/index.blade.php @@ -0,0 +1,269 @@ +@extends('layouts.master') +@section('page-css') + + +@endsection +@section('content') +
+

+ {{$title}} +

+
+
+
+
+
+
+

+ +

+
+ +
+
+
+
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + +
#NoNPSNNama SekolahWilayahDokumen AdministrasiPemenuhan KriteriaProgressSK
+ +
+
+
+
+
+@endsection +@section('page-js') + + + +@endsection \ No newline at end of file diff --git a/routes/modules/modules.php b/routes/modules/modules.php index 5e74c5d..0e0bdc8 100644 --- a/routes/modules/modules.php +++ b/routes/modules/modules.php @@ -17,8 +17,14 @@ use App\Http\Controllers\Modules\Usulan\AdministrasiController; use App\Http\Controllers\Modules\Usulan\KriteriaController; use App\Http\Controllers\Modules\Usulan\ProgressController; use App\Http\Controllers\Modules\Usulan\SekolahBinaanController; +use App\Http\Controllers\Modules\Usulan\CSAKController; +use App\Http\Controllers\Modules\Usulan\CSAPController; +use App\Http\Controllers\Modules\Usulan\CSAMController; +use App\Http\Controllers\Modules\Usulan\CSANController; +use App\Http\Controllers\Modules\Usulan\SuratController; Route::get('dashboard',[HomeController::class,'dashboard'])->name('dashboard'); +Route::get('dashboard/gridUsulan',[HomeController::class,'gridUsulan'])->name('gridUsulan'); Route::get('profile-sekolah',[ProfileController::class,'index'])->name('profile.index'); Route::get('profile-sekolah/grid',[ProfileController::class,'grid'])->name('profile.grid'); Route::post('profile-sekolah',[ProfileController::class,'store'])->name('profile.store'); @@ -52,6 +58,31 @@ Route::name('usulan.')->prefix('usulan')->group(function () { Route::post('/store',[KriteriaController::class,'store'])->name('store'); }); + Route::name('csak.')->prefix('csak')->group(function () { + Route::resource('/',CSAKController::class); + Route::get('/grid',[CSAKController::class,'grid'])->name('grid'); + }); + + Route::name('csap.')->prefix('csap')->group(function () { + Route::resource('/',CSAPController::class); + Route::get('/grid',[CSAPController::class,'grid'])->name('grid'); + }); + + Route::name('csam.')->prefix('csam')->group(function () { + Route::resource('/',CSAMController::class); + Route::get('/grid',[CSAMController::class,'grid'])->name('grid'); + }); + + Route::name('csan.')->prefix('csan')->group(function () { + Route::resource('/',CSANController::class); + Route::get('/grid',[CSANController::class,'grid'])->name('grid'); + }); + + Route::name('surat.')->prefix('surat')->group(function () { + Route::resource('/',SuratController::class); + Route::get('/grid',[SuratController::class,'grid'])->name('grid'); + }); + Route::name('administrasi.')->prefix('administrasi')->group(function () { Route::get('/',[AdministrasiController::class,'index'])->name('index'); });