diff --git a/app/Helpers/custom.php b/app/Helpers/custom.php index 90c7c03..6b7025c 100644 --- a/app/Helpers/custom.php +++ b/app/Helpers/custom.php @@ -6,8 +6,38 @@ use App\Models\Kuesioner; use App\Models\Master\FormKriteria; use App\Models\Penilaian; use App\Models\User; +use App\Models\Master\Sekolah; +use App\Models\SK; use App\Models\master\MasterGroup; + +if (!function_exists('sekolah')) { + function sekolah($id){ + $sekolah = Sekolah::find($id); + return $sekolah; + } +} + +if (!function_exists('listSekolah')) { + function listSekolah($sekolah){ + + + $res = "Belum ada data"; + $res = []; + $d = ''; + foreach (json_decode($sekolah) as $key => $value) { + $d .= ''.sekolah($value)->nama_sekolah.'
'; + + } + array_push($res, $d); + + $res = implode("", $res); + + return $res; + } +} + + if (!function_exists('getPenghargaanTerakhir')) { /** * @param $val @@ -707,6 +737,8 @@ if (!function_exists('levelAdiwiyata')) { function levelAdiwiyata($npsn) { $kuesioner = Kuesioner::where('npsn',$npsn)->where('tahun',date('Y'))->first(); + $sekolah = Sekolah::where('npsn',$npsn)->first(); + $sk = SK::where('tahun',date('Y'))->where('sekolah','like','%'.$sekolah->MsSekolahId.'%')->first(); $data = null; if(@$kuesioner){ $data = $kuesioner; @@ -718,18 +750,43 @@ if (!function_exists('levelAdiwiyata')) { if(@$data->level == 0){ if((@$data->level == 0) && (@$data->tim_adiwiyata == 2) && (@$data->info_pblhs == 2) ){ - $level = '2'; + if(@$sk->jenis_usulan == 1){ + $level = '3'; + }else{ + $level = '2'; + } }elseif((@$data->level == 0) && (@$data->tim_adiwiyata == 2)){ - $level = '1'; + if(@$sk->jenis_usulan == 1){ + $level = '3'; + }else{ + $level = '1'; + } + }else{ + if(@$sk->jenis_usulan == 1){ + $level = '3'; + }else{ + $level = '0'; + } + } + }elseif(@$data->level == 1){ + + if(@$sk->jenis_usulan == 2){ + $level = '4'; + }else{ + $level = '3'; + } + }elseif(@$data->level == 2){ + if(@$sk->jenis_usulan == 3){ + $level = '5'; + }else{ + $level = '4'; + } + }else{ + if(@$sk->jenis_usulan == 1){ + $level = '3'; }else{ $level = '0'; } - }elseif(@$data->level == 1){ - $level = '3'; - }elseif(@$data->level == 2){ - $level = '4'; - }else{ - $level = '0'; } return $level; diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 31c68d1..5697b5f 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -7,6 +7,8 @@ use App\Models\Kuesioner; use App\Models\ProfileSekolah; use App\Models\Master\FormKriteria; use App\Models\Penilaian; +use App\Models\SK; +use App\Models\Usulan; class HomeController extends Controller { @@ -41,6 +43,7 @@ class HomeController extends Controller $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(); + $data['sk'] = SK::where('tahun',date('Y'))->where('sekolah','like','%'.session('sekolah_id').'%')->first(); return view($this->template.'.sekolah', $data); }else{ diff --git a/app/Http/Controllers/Modules/Usulan/AdministrasiController.php b/app/Http/Controllers/Modules/Usulan/AdministrasiController.php index 3922573..2516b21 100644 --- a/app/Http/Controllers/Modules/Usulan/AdministrasiController.php +++ b/app/Http/Controllers/Modules/Usulan/AdministrasiController.php @@ -59,10 +59,10 @@ class AdministrasiController extends Controller if(session('group_alias') == 'sekolah'){ if(@$dok->status == 0){ - $action .= ''; + $action .= ''; } } - $action .= ''; + // $action .= ''; if(session('group_alias') == 'dinas'){ if(@$dok){ if(@$dok->status == 0){ diff --git a/app/Http/Controllers/Modules/Usulan/CSAKController.php b/app/Http/Controllers/Modules/Usulan/CSAKController.php index a6cd214..bef3e5f 100644 --- a/app/Http/Controllers/Modules/Usulan/CSAKController.php +++ b/app/Http/Controllers/Modules/Usulan/CSAKController.php @@ -10,6 +10,7 @@ use App\Models\KuesionerLog; use App\Models\Master\Sekolah; use App\Models\Master\FormKriteria; use App\Models\DokumenAdministrasi; +use App\Models\Penilaian; class CSAKController extends Controller { @@ -160,6 +161,13 @@ class CSAKController extends Controller return response()->json(['validasi' => false,'message' => 'Maaf Terjadi Kesalahan Dalam Input Data!']); } + $soal = Penilaian::where('ms_sekolah_id',$sekolahId)->where('tahun',date('Y'))->groupBy('page_number')->orderBy('page_number','ASC')->pluck('page_number')->toArray(); + $penilaian = Penilaian::where('ms_sekolah_id',$sekolahId)->where('tahun',date('Y'))->where('status',1)->groupBy('page_number')->orderBy('page_number','ASC')->pluck('page_number')->toArray(); + + if(count($soal) != count($penilaian)){ + return response()->json(['validasi' => false,'message' => 'Maaf Penilaian Belum Lengkap!']); + } + $kuesioner = Kuesioner::where('ms_sekolah_id',$sekolahId)->where('tahun',date('Y'))->first(); $kuesioner->catatan_usulan = $request['catatan_validasi']; $kuesioner->status = $status; diff --git a/app/Http/Controllers/Modules/Usulan/KriteriaController.php b/app/Http/Controllers/Modules/Usulan/KriteriaController.php index 51a6938..afac8e0 100644 --- a/app/Http/Controllers/Modules/Usulan/KriteriaController.php +++ b/app/Http/Controllers/Modules/Usulan/KriteriaController.php @@ -28,22 +28,37 @@ class KriteriaController extends Controller ]); } - if(Kuesioner::where('ms_sekolah_id',session('sekolah_id'))->where('tahun',date('Y'))->value('status') == 0){ + $kuesioner = Kuesioner::where('ms_sekolah_id',session('sekolah_id'))->where('tahun',date('Y'))->first(); + + + if($kuesioner->status == 0){ return redirect('kuesioner/update/'.encode_id(session('sekolah_id')))->with([ 'message' => 'Menunggu Usulan dari Dinas/Sudin', 'type' => 'error', ]); } - if(Kuesioner::where('ms_sekolah_id',session('sekolah_id'))->where('tahun',date('Y'))->value('status') == 1){ - return redirect('kuesioner/update/'.encode_id(session('sekolah_id')))->with([ - 'message' => 'Maaf usulan anda belum diverifikasi oleh Dinas', + if($kuesioner->status == 1){ + + if($kuesioner->level == 0){ + + $dok = DokumenAdministrasi::where('kuesioner_id',$kuesioner->KuesionerId)->first(); + $dok->status = 1; + $dok->save(); + + $kuesioner->status = 2; + $kuesioner->save(); + }else{ + return redirect('kuesioner/update/'.encode_id(session('sekolah_id')))->with([ + 'message' => 'Maaf menunggu verifikasi dokumen oleh Dinas/Sudin', 'type' => 'error', ]); + } } $data['title'] = $this->title; $data['route'] = $this->route; + $data['kuesioner'] = $kuesioner; $data['page'] = FormKriteria::select('page_number')->groupBy('page_number')->orderBy('page_number','ASC')->pluck('page_number')->toArray(); return view($this->template.'.form',$data); @@ -151,7 +166,24 @@ class KriteriaController extends Controller $sekolah = Sekolah::find($idSekolah); } + $nilai_kota = Penilaian::where('ms_sekolah_id',$idSekolah) + ->where('page_number',decode_id($data['key'])) + ->where('skor','!=',0) + ->where('tahun',date('Y')) + ->where('status',1) //inputan kota + ->first(); + + $nilai_prov = Penilaian::where('ms_sekolah_id',$idSekolah) + ->where('page_number',decode_id($data['key'])) + ->where('skor','!=',0) + ->where('tahun',date('Y')) + ->where('status',2) //inputan kota + ->first(); + + $kuesioner = decode_id($data['secure_id']); + $penilaian[$key] = Penilaian::updateOrCreate([ + 'kuesioner_id' => $kuesioner, 'tahun' => date('Y'), 'ms_sekolah_id' => $sekolah->MsSekolahId, 'npsn' => $sekolah->npsn, @@ -159,6 +191,7 @@ class KriteriaController extends Controller 'key' => str_replace('input_','',$key), 'status' => $status, ],[ + 'kuesioner_id' => $kuesioner, 'ms_sekolah_id' => $sekolah->MsSekolahId, 'npsn' => $sekolah->npsn, 'page_number' => decode_id($data['key']), @@ -171,28 +204,38 @@ class KriteriaController extends Controller } } - return response()->json(['status' => true,'data' => $_value,'message' => 'Berhasil Update Data','page' => $data['key']]); + return response()->json(['status' => true,'data' => $_value,'message' => 'Berhasil Update Data','page' => $data['key'],'nilai_kota' => @$nilai_kota ? @$nilai_kota->skor : 0, + 'nilai_prov' => @$nilai_prov ? @$nilai_prov->skor : 0]); } public function kirimData($sekolah_id, $kuesioner_id) { + //cek dokumen $keyId = decode_id($kuesioner_id); - $kuesioner = Kuesioner::find($keyId); - $kuesioner->status = 3; - $kuesioner->save(); + $dok = DokumenAdministrasi::where('kuesioner_id',$keyId)->first(); + if($dok->status == 0){ + return response()->json(['status' => false,'message' => 'Dokumen Belum Di Verifikasi','type' => 'error']); + }else{ + + $kuesioner = Kuesioner::find($keyId); + $kuesioner->status = 3; + $kuesioner->save(); - $log = new KuesionerLog; - $log->kuesioner_id = $kuesioner->KuesionerId; - $log->ms_sekolah_id = $kuesioner->ms_sekolah_id; - $log->npsn = $kuesioner->npsn; - $log->ms_group_id = session('group_id'); - $log->step = 'kirim_kelengkapan_data'; - $log->status = 3; - $log->created_by = auth()->user()->id; - $log->save(); + $log = new KuesionerLog; + $log->kuesioner_id = $kuesioner->KuesionerId; + $log->ms_sekolah_id = $kuesioner->ms_sekolah_id; + $log->npsn = $kuesioner->npsn; + $log->ms_group_id = session('group_id'); + $log->step = 'kirim_kelengkapan_data'; + $log->status = 3; + $log->created_by = auth()->user()->id; + $log->save(); - return response()->json(['status' => true,'message' => 'Data Berhasil Di Update','type' => 'success']); + return response()->json(['status' => true,'message' => 'Data Berhasil Di Update','type' => 'success']); + } + + } } diff --git a/app/Http/Controllers/Modules/Usulan/SKController.php b/app/Http/Controllers/Modules/Usulan/SKController.php index 4709f7d..bc92dbd 100644 --- a/app/Http/Controllers/Modules/Usulan/SKController.php +++ b/app/Http/Controllers/Modules/Usulan/SKController.php @@ -37,55 +37,26 @@ class SKController extends Controller public function grid(Request $request) { - $kuesioner = Kuesioner::where('level',0)->orderBy('created_at','DESC')->get(); - foreach ($kuesioner as $key => $row) { + $usulan = SK::where('tahun',date('Y'))->get(); + foreach ($usulan as $key => $row) { - $action = ''; - - // if($row->status == 4){ - // $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'; + if($row->jenis_usulan == 1){ + $jenis_usulan = 'Sekolah Adiwiyata Kab/Kota'; + }elseif($row->jenis_usulan == 2){ + $jenis_usulan = 'Sekolah Adiwiyata Provinsi'; + }elseif($row->jenis_usulan == 3){ + $jenis_usulan = 'Sekolah Adiwiyata Nasional'; } - - $penilaian = ''; - $penilaian .= ' Sekolah : '.getNilaiAll('sekolah',$row->ms_sekolah_id).'
'; - $penilaian .= ' Kota : '.getNilaiAll('kota',$row->ms_sekolah_id).'
'; - $penilaian .= ' Provinsi : '.getNilaiAll('provinsi',$row->ms_sekolah_id).'
'; - - $log = KuesionerLog::where('kuesioner_id',$row->KuesionerId)->orderBy('created_at','DESC')->first(); - $progress = ''.str_replace('_',' ',\Str::title($log->step)).''; - - $sekolah = ''; - $sekolah .= @$row->sekolah->nama_sekolah.'
'; - $sekolah .= ''.@$row->profile->tingkat->name.' '; - $sekolah .= ''.@$row->profile->status_sekolah.' '; - - $sk = SK::whereRaw("sekolah::text LIKE '%".$row->sekolah->MsSekolahId."%'")->first(); - $_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, - 'penilaian' => $penilaian, - 'progress' => $progress, - 'dokumen_administrasi' => '-', - 'tanggal_penetapan' => 'Tanggal Penetapan : '.$sk->tanggal_penetapan.'
 Download File SK $action, + 'judul' => $row->nama, + 'sekolah' => listSekolah($row->sekolah), + 'tahun' => $row->tahun, + 'tanggal_penetapan' => $row->tanggal_penetapan, + 'jenis_usulan' => $jenis_usulan, + 'file' => ' SK Adiwiyata', + 'action' => @$action, ]; } diff --git a/app/Http/Controllers/Modules/Usulan/SuratController.php b/app/Http/Controllers/Modules/Usulan/SuratController.php index f130655..622f6da 100644 --- a/app/Http/Controllers/Modules/Usulan/SuratController.php +++ b/app/Http/Controllers/Modules/Usulan/SuratController.php @@ -31,6 +31,34 @@ class SuratController extends Controller return view($this->template.'.index',$data); } + public function grid(Request $request) + { + $usulan = Usulan::where('tahun',date('Y'))->get(); + foreach ($usulan as $key => $row) { + + if($row->jenis_usulan == 1){ + $jenis_usulan = 'Sekolah Adiwiyata Kab/Kota'; + }elseif($row->jenis_usulan == 2){ + $jenis_usulan = 'Sekolah Adiwiyata Provinsi'; + }elseif($row->jenis_usulan == 3){ + $jenis_usulan = 'Sekolah Adiwiyata Nasional'; + } + $_data[] = [ + 'no' => $key+1, + 'id' => encode_id($row->id), + 'judul' => $row->nama, + 'sekolah' => listSekolah($row->sekolah), + 'tahun' => $row->tahun, + 'jenis_usulan' => $jenis_usulan, + 'file' => ' Surat Usulan', + 'action' => @$action, + ]; + + } + + return response()->json($_data); + } + /** * Show the form for creating a new resource. */ diff --git a/public/assets/css/app.bundle.css b/public/assets/css/app.bundle.css index cea3476..2daae44 100644 --- a/public/assets/css/app.bundle.css +++ b/public/assets/css/app.bundle.css @@ -1316,10 +1316,10 @@ html body { -webkit-transform: rotate(180deg); transform: rotate(180deg); } .nav-menu li.active > a:hover span { - color: #333; + color: #fff; } .nav-menu li.active > a:hover i { - color: #333!important; + color: #fff!important; } .nav-menu li a:hover { color: white; diff --git a/resources/views/modules/dashboard/sekolah.blade.php b/resources/views/modules/dashboard/sekolah.blade.php index 00f9db4..4992ea6 100644 --- a/resources/views/modules/dashboard/sekolah.blade.php +++ b/resources/views/modules/dashboard/sekolah.blade.php @@ -122,9 +122,9 @@
-
+

Status Usulan

- @if(@$kuesioner && (@$kuesioner->status == 1)) + @if(@$kuesioner || (@$kuesioner->status == 1)) level == 0){ $textLevel = 'Kabupaten/Kota'; @@ -136,15 +136,14 @@ $textLevel = 'Mandiri'; } ?> -

Sekolah diusulan untuk menjadi CSA (Calon Sekolah Adiwiyata) {{@$textLevel}}

- Silahkan lengkapi data pada menu Usulan Adiwiyata. + Sekolah diusulan untuk menjadi CSA (Calon Sekolah Adiwiyata) {{@$textLevel}} @else
Belum ada data usulan
@endif
- @if(@$kuesioner) + @if(@$sk) @@ -154,22 +153,22 @@ - - + +
Penghargaan Terakhir
level == 0){ + if(@$sk->jenis_usulan == 0){ $penghargaan = '
Belum Pernah
'; - }elseif($kuesioner->level == 1){ + }elseif(@$sk->jenis_usulan == 1){ $penghargaan = '
Adiwiyata Kab/Kota
'; - }elseif($kuesioner->level == 2){ + }elseif(@$sk->jenis_usulan == 2){ $penghargaan = '
Adiwiyata Provinsi
'; - }elseif($kuesioner->level == 3){ + }elseif(@$sk->jenis_usulan == 3){ $penghargaan = '
Adiwiyata Nasional
'; - }elseif($kuesioner->level == 4){ + }elseif(@$sk->jenis_usulan == 4){ $penghargaan = '
Adiwiyata Mandiri
'; } ?> {!!$penghargaan!!}
--{{@$sk->tanggal_penetapan}} SK Adiwiyata
@endif diff --git a/resources/views/modules/usulan/administrasi/index.blade.php b/resources/views/modules/usulan/administrasi/index.blade.php index 42bc424..920644d 100644 --- a/resources/views/modules/usulan/administrasi/index.blade.php +++ b/resources/views/modules/usulan/administrasi/index.blade.php @@ -169,6 +169,9 @@
@if(session('group_alias') == 'sekolah') @@ -304,6 +307,8 @@ $('.secure_id').val($(this).attr('data-secureid')); var link = $(this).attr('data-link'); var level = $(this).attr('data-level'); + var filetim = $(this).attr('data-filetim'); + var fileusulan = $(this).attr('data-fileusulan'); var div = ''; div += ''; if(level == 0){ @@ -312,7 +317,10 @@ div += '
SK Tim Adiwiyata
'; div += ''; div += ''; div += ''; @@ -321,7 +329,10 @@ div += '
Surat Usulan
'; div += ''; div += ''; div += ''; diff --git a/resources/views/modules/usulan/csak/form.blade.php b/resources/views/modules/usulan/csak/form.blade.php index 36276d2..1484c0d 100644 --- a/resources/views/modules/usulan/csak/form.blade.php +++ b/resources/views/modules/usulan/csak/form.blade.php @@ -59,6 +59,7 @@ @endif + {{csrf_field()}}
@@ -616,7 +617,8 @@ success: function (response) { // console.log('Response:', response); toastr.success("Berhasil menyimpan data", 'Success!', {positionClass: 'toast-bottom-right', containerId: 'toast-bottom-right'}); - + $('.nilai_kota').html(response.nilai_kota); + $('.nilai_provinsi').html(response.nilai_prov); $('.page').closest('.activePage').addClass('bg-success'); $('.page').closest('.activePage').addClass('text-white'); diff --git a/resources/views/modules/usulan/csam/form.blade.php b/resources/views/modules/usulan/csam/form.blade.php new file mode 100644 index 0000000..90912a8 --- /dev/null +++ b/resources/views/modules/usulan/csam/form.blade.php @@ -0,0 +1,639 @@ +@extends('layouts.master') + +@section('page-css') + + +@endsection +@section('content') +
+

+ {{$title}} +

+
+
+
+ @if ($errors->any()) +
+
    + @foreach ($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + + + {{csrf_field()}} +
+
+
+
+
'; - div += ''; + div += '
'; + if(filetim != ''){ + div += ' File SK Tim Adiwiyata
'; + } div += 'Format : .pdf, Maksimal File : 2MB'; div += '
'; - div += ''; + div += '
'; + if(fileusulan != ''){ + div += ' File Usulan
'; + } div += 'Format : .pdf, Maksimal File : 2MB'; div += '
+ + + + + + + + + + + + +
+ +
NPSN: {{$sekolah->npsn}}

{{$sekolah->nama_sekolah}}

{{$sekolah->tingkat->name}} {{$sekolah->status}}
+
+
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Profile Sekolah
NPSN{{@$sekolah->npsn}}
Nama Sekolag{{@$sekolah->nama_sekolah}}
Tingkat Sekolah{{@$sekolah->tingkat->name}}
Status Sekolah{{@$sekolah->status}}
Alamat Sekolah
Provinsi{{@$sekolah->provinsi->name}}
Kabupaten/Kota{{@$sekolah->kabupaten->name}}
Kecamatan{{@$sekolah->kecamatan->name}}
Alamat Lengkap{{@$sekolah->profile->alamat_sekolah}}
Kontak Person{{@$sekolah->profile->kontak_person}}
Telp{{@$sekolah->profile->telp}}
Data Jumlah
Jumlah Peserta Didik + +
Jumlah Tenaga Pendidik + +
Jumlah Tenaga kependidikan + +
Jumlah Warga Sekolah Lainnya + +
Jumlah Biopori + +
Jumlah Sumur Resapan + +
Jumlah Pohon/Tanaman yang ditanam dan tumbuh + +
Penghematan air sebelum dan setelah melaksanakan gerakan PBLHS :
Sebelum melaksanakan gerakan PBLHS
(Meter Kubik/Bulan)
+ +
Setelah melaksanakan gerakan PBLHS
(Meter Kubik/Bulan dalam Tahun ajaran 2022/2023)
+ +
Penghematan listrik sebelum dan setelah melaksanakan gerakan PBLHS :
Sebelum melaksanakan gerakan PBLHS
(KWH/Bulan)
+ +
+ +
Setelah melaksanakan gerakan PBLHS
(KWH/Bulan dalam Tahun ajaran 2022/2023)
+ +
Luas ruangan ber AC + +
Luas ruangan non AC + +
Jumlah Kader + +
+
+
+ + + + + + + + + + + + + + @if(@$kuesioner->status < 4) + + + + @endif +
Seleksi Isian Dokumen Administrasi CSA
+

Apakah nama CSAN tercantum dalam SK/Piagam Sekolah Adiwiyata Provinsi (untuk SAP 2021/2022/2023/2024/2025) atau SK/Piagam Perpanjangan Adiwiyata Tahun 2023/2024/2025

+ + nama_dalam_sk == 1 ? 'checked' : '' }} type="radio" name="dokumen_1"> Ya
+ nama_dalam_sk == 2 ? 'checked' : '' }} type="radio" name="dokumen_1"> Tidak
+ nama_dalam_sk == 3 ? 'checked' : '' }} type="radio" name="dokumen_1"> Tidak Ada Bukti/Dokumen
+
+

Apakah salinan SK/Piagam Sekolah Adiwiyata provinsi di tandatangani Gubernur atau pejabat yang diberi kewenangan untuk menandatangani atau SK/Piagam Perpanjangan di Tandatangani Kepala Dinas LH ?

+ + sk_ttd == 1 ? 'checked' : '' }} type="radio" name="dokumen_2"> Ya
+ sk_ttd == 2 ? 'checked' : '' }} type="radio" name="dokumen_2"> Tidak
+ sk_ttd == 3 ? 'checked' : '' }} type="radio" name="dokumen_2"> Tidak Ada Bukti/Dokumen
+
+

Waktu Penetapan Penghargaan SAP

+ + waktu_penetapan == 1 ? 'checked' : '' }} type="radio" name="dokumen_3">  SAP tahun 2021/ 2022/ 2023/ 2024 ditetapkan SEBELUM 1 Agustus 2024
+ waktu_penetapan == 2 ? 'checked' : '' }} type="radio" name="dokumen_3">  SAP tahun 2021/ 2022 /2023/ 2024 ditetapkan SETELAH 1 Agustus 2024
+ waktu_penetapan == 3 ? 'checked' : '' }} type="radio" name="dokumen_3">  SAP/SAN/SAM perolehan tahun 2020 atau sebelumnya serta lolos perpanjangan sebagai SAP
+ waktu_penetapan == 4 ? 'checked' : '' }} type="radio" name="dokumen_3">  SAP perolehan tahun 2020 atau sebelumnya serta tidak ada SK/piagam perpanjangan sebagai SAP
+
+
+
+
+
+
    + @foreach($page as $hal) +
  • {{$hal}}
  • + @endforeach + +
+
+
+
+
I. Perencanaan Gerakan PBLHS
+
+
+
+ +
+ {!! formKriteria(1,$sekolah->MsSekolahId) !!} +
+
+ + @if(@$kuesioner->status < 4) +
+ +
+ @endif +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @if(@$kuesioner->status < 4) + + + + + @endif +
Usulan
Jenis Usulan CSA{{getUsulan($sekolah->MsSekolahId)}}
Penghargaan
Penghargaan Terakhir{{getPenghargaanTerakhir($sekolah->MsSekolahId)}}
Nomor SK-
Tanggal Penetapan SK-
Berdasarkan data usulan yang dilengkapi, dinyatakan bahwa {{@$sekolah->nama_sekolah}} :
Nilai Dokumen Administrasi0
Nilai Pemenuhan Kriteria0
Validasi + +
Catatan + +
+
+
+ + +
+
+
+ + + +@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 index f33928c..bdc7640 100644 --- a/resources/views/modules/usulan/csam/index.blade.php +++ b/resources/views/modules/usulan/csam/index.blade.php @@ -142,8 +142,8 @@ Nama Sekolah Wilayah Dokumen Administrasi - Pemenuhan Kriteria - Progress + Pemenuhan Kriteria + Progress SK diff --git a/resources/views/modules/usulan/csam/resume.blade.php b/resources/views/modules/usulan/csam/resume.blade.php new file mode 100644 index 0000000..c41f98d --- /dev/null +++ b/resources/views/modules/usulan/csam/resume.blade.php @@ -0,0 +1,258 @@ +@extends('layouts.master') + +@section('page-css') + + +@endsection +@section('content') +
+

+ {{$title}} +

+
+
+
+ @if ($errors->any()) +
+
    + @foreach ($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif +
+ {{csrf_field()}} +
+
+
+
+ + + + + + + + + + + + + +
+ +
NPSN: {{$sekolah->npsn}}

{{$sekolah->nama_sekolah}}

{{$sekolah->tingkat->name}} {{$sekolah->status}}
+
+
+
+

 Anda Belum Melakukan Finalisasi Proses Data Kriteria

+

 Klik Progress Usulan untuk melakukan Finalisasi Proses Data Kriteria

+
+
+
+
    +
  • +
  • Resume
  • +
+
+
+ +
+ @foreach($page as $dataNumber) +
+
+ {{$dataNumber}} +
+
+ {!! formKriteria($dataNumber,$sekolah->MsSekolahId) !!} +
+
+ @endforeach +
+
+ +
+
+ +
+
+
+
+@endsection +@section('page-js') + +@endsection \ No newline at end of file diff --git a/resources/views/modules/usulan/csan/form.blade.php b/resources/views/modules/usulan/csan/form.blade.php new file mode 100644 index 0000000..5006ae1 --- /dev/null +++ b/resources/views/modules/usulan/csan/form.blade.php @@ -0,0 +1,639 @@ +@extends('layouts.master') + +@section('page-css') + + +@endsection +@section('content') +
+

+ {{$title}} +

+
+
+
+ @if ($errors->any()) +
+
    + @foreach ($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif +
+ + {{csrf_field()}} +
+
+
+
+ + + + + + + + + + + + + +
+ +
NPSN: {{$sekolah->npsn}}

{{$sekolah->nama_sekolah}}

{{$sekolah->tingkat->name}} {{$sekolah->status}}
+
+
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Profile Sekolah
NPSN{{@$sekolah->npsn}}
Nama Sekolag{{@$sekolah->nama_sekolah}}
Tingkat Sekolah{{@$sekolah->tingkat->name}}
Status Sekolah{{@$sekolah->status}}
Alamat Sekolah
Provinsi{{@$sekolah->provinsi->name}}
Kabupaten/Kota{{@$sekolah->kabupaten->name}}
Kecamatan{{@$sekolah->kecamatan->name}}
Alamat Lengkap{{@$sekolah->profile->alamat_sekolah}}
Kontak Person{{@$sekolah->profile->kontak_person}}
Telp{{@$sekolah->profile->telp}}
Data Jumlah
Jumlah Peserta Didik + +
Jumlah Tenaga Pendidik + +
Jumlah Tenaga kependidikan + +
Jumlah Warga Sekolah Lainnya + +
Jumlah Biopori + +
Jumlah Sumur Resapan + +
Jumlah Pohon/Tanaman yang ditanam dan tumbuh + +
Penghematan air sebelum dan setelah melaksanakan gerakan PBLHS :
Sebelum melaksanakan gerakan PBLHS
(Meter Kubik/Bulan)
+ +
Setelah melaksanakan gerakan PBLHS
(Meter Kubik/Bulan dalam Tahun ajaran 2022/2023)
+ +
Penghematan listrik sebelum dan setelah melaksanakan gerakan PBLHS :
Sebelum melaksanakan gerakan PBLHS
(KWH/Bulan)
+ +
+ +
Setelah melaksanakan gerakan PBLHS
(KWH/Bulan dalam Tahun ajaran 2022/2023)
+ +
Luas ruangan ber AC + +
Luas ruangan non AC + +
Jumlah Kader + +
+
+
+ + + + + + + + + + + + + + @if(@$kuesioner->status < 4) + + + + @endif +
Seleksi Isian Dokumen Administrasi CSA
+

Apakah nama CSAN tercantum dalam SK/Piagam Sekolah Adiwiyata Provinsi (untuk SAP 2021/2022/2023/2024/2025) atau SK/Piagam Perpanjangan Adiwiyata Tahun 2023/2024/2025

+ + nama_dalam_sk == 1 ? 'checked' : '' }} type="radio" name="dokumen_1"> Ya
+ nama_dalam_sk == 2 ? 'checked' : '' }} type="radio" name="dokumen_1"> Tidak
+ nama_dalam_sk == 3 ? 'checked' : '' }} type="radio" name="dokumen_1"> Tidak Ada Bukti/Dokumen
+
+

Apakah salinan SK/Piagam Sekolah Adiwiyata provinsi di tandatangani Gubernur atau pejabat yang diberi kewenangan untuk menandatangani atau SK/Piagam Perpanjangan di Tandatangani Kepala Dinas LH ?

+ + sk_ttd == 1 ? 'checked' : '' }} type="radio" name="dokumen_2"> Ya
+ sk_ttd == 2 ? 'checked' : '' }} type="radio" name="dokumen_2"> Tidak
+ sk_ttd == 3 ? 'checked' : '' }} type="radio" name="dokumen_2"> Tidak Ada Bukti/Dokumen
+
+

Waktu Penetapan Penghargaan SAP

+ + waktu_penetapan == 1 ? 'checked' : '' }} type="radio" name="dokumen_3">  SAP tahun 2021/ 2022/ 2023/ 2024 ditetapkan SEBELUM 1 Agustus 2024
+ waktu_penetapan == 2 ? 'checked' : '' }} type="radio" name="dokumen_3">  SAP tahun 2021/ 2022 /2023/ 2024 ditetapkan SETELAH 1 Agustus 2024
+ waktu_penetapan == 3 ? 'checked' : '' }} type="radio" name="dokumen_3">  SAP/SAN/SAM perolehan tahun 2020 atau sebelumnya serta lolos perpanjangan sebagai SAP
+ waktu_penetapan == 4 ? 'checked' : '' }} type="radio" name="dokumen_3">  SAP perolehan tahun 2020 atau sebelumnya serta tidak ada SK/piagam perpanjangan sebagai SAP
+
+
+
+
+
+
    + @foreach($page as $hal) +
  • {{$hal}}
  • + @endforeach + +
+
+
+
+
I. Perencanaan Gerakan PBLHS
+
+
+
+ +
+ {!! formKriteria(1,$sekolah->MsSekolahId) !!} +
+
+ + @if(@$kuesioner->status < 4) +
+ +
+ @endif +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @if(@$kuesioner->status < 4) + + + + + @endif +
Usulan
Jenis Usulan CSA{{getUsulan($sekolah->MsSekolahId)}}
Penghargaan
Penghargaan Terakhir{{getPenghargaanTerakhir($sekolah->MsSekolahId)}}
Nomor SK-
Tanggal Penetapan SK-
Berdasarkan data usulan yang dilengkapi, dinyatakan bahwa {{@$sekolah->nama_sekolah}} :
Nilai Dokumen Administrasi0
Nilai Pemenuhan Kriteria0
Validasi + +
Catatan + +
+
+
+ + +
+
+
+ +
+
+@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 index f33928c..bdc7640 100644 --- a/resources/views/modules/usulan/csan/index.blade.php +++ b/resources/views/modules/usulan/csan/index.blade.php @@ -142,8 +142,8 @@ Nama Sekolah Wilayah Dokumen Administrasi - Pemenuhan Kriteria - Progress + Pemenuhan Kriteria + Progress SK diff --git a/resources/views/modules/usulan/csan/resume.blade.php b/resources/views/modules/usulan/csan/resume.blade.php new file mode 100644 index 0000000..7c38e16 --- /dev/null +++ b/resources/views/modules/usulan/csan/resume.blade.php @@ -0,0 +1,258 @@ +@extends('layouts.master') + +@section('page-css') + + +@endsection +@section('content') +
+

+ {{$title}} +

+
+
+
+ @if ($errors->any()) +
+
    + @foreach ($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif +
+ {{csrf_field()}} +
+
+
+
+ + + + + + + + + + + + + +
+ +
NPSN: {{$sekolah->npsn}}

{{$sekolah->nama_sekolah}}

{{$sekolah->tingkat->name}} {{$sekolah->status}}
+
+
+
+

 Anda Belum Melakukan Finalisasi Proses Data Kriteria

+

 Klik Progress Usulan untuk melakukan Finalisasi Proses Data Kriteria

+
+
+
+
    +
  • +
  • Resume
  • +
+
+
+ +
+ @foreach($page as $dataNumber) +
+
+ {{$dataNumber}} +
+
+ {!! formKriteria($dataNumber,$sekolah->MsSekolahId) !!} +
+
+ @endforeach +
+
+ +
+
+ +
+
+
+
+@endsection +@section('page-js') + +@endsection \ No newline at end of file diff --git a/resources/views/modules/usulan/csap/form.blade.php b/resources/views/modules/usulan/csap/form.blade.php new file mode 100644 index 0000000..52e83ae --- /dev/null +++ b/resources/views/modules/usulan/csap/form.blade.php @@ -0,0 +1,639 @@ +@extends('layouts.master') + +@section('page-css') + + +@endsection +@section('content') +
+

+ {{$title}} +

+
+
+
+ @if ($errors->any()) +
+
    + @foreach ($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif +
+ + {{csrf_field()}} +
+
+
+
+ + + + + + + + + + + + + +
+ +
NPSN: {{$sekolah->npsn}}

{{$sekolah->nama_sekolah}}

{{$sekolah->tingkat->name}} {{$sekolah->status}}
+
+
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Profile Sekolah
NPSN{{@$sekolah->npsn}}
Nama Sekolag{{@$sekolah->nama_sekolah}}
Tingkat Sekolah{{@$sekolah->tingkat->name}}
Status Sekolah{{@$sekolah->status}}
Alamat Sekolah
Provinsi{{@$sekolah->provinsi->name}}
Kabupaten/Kota{{@$sekolah->kabupaten->name}}
Kecamatan{{@$sekolah->kecamatan->name}}
Alamat Lengkap{{@$sekolah->profile->alamat_sekolah}}
Kontak Person{{@$sekolah->profile->kontak_person}}
Telp{{@$sekolah->profile->telp}}
Data Jumlah
Jumlah Peserta Didik + +
Jumlah Tenaga Pendidik + +
Jumlah Tenaga kependidikan + +
Jumlah Warga Sekolah Lainnya + +
Jumlah Biopori + +
Jumlah Sumur Resapan + +
Jumlah Pohon/Tanaman yang ditanam dan tumbuh + +
Penghematan air sebelum dan setelah melaksanakan gerakan PBLHS :
Sebelum melaksanakan gerakan PBLHS
(Meter Kubik/Bulan)
+ +
Setelah melaksanakan gerakan PBLHS
(Meter Kubik/Bulan dalam Tahun ajaran 2022/2023)
+ +
Penghematan listrik sebelum dan setelah melaksanakan gerakan PBLHS :
Sebelum melaksanakan gerakan PBLHS
(KWH/Bulan)
+ +
+ +
Setelah melaksanakan gerakan PBLHS
(KWH/Bulan dalam Tahun ajaran 2022/2023)
+ +
Luas ruangan ber AC + +
Luas ruangan non AC + +
Jumlah Kader + +
+
+
+ + + + + + + + + + + + + + @if(@$kuesioner->status < 4) + + + + @endif +
Seleksi Isian Dokumen Administrasi CSA
+

Apakah nama CSAN tercantum dalam SK/Piagam Sekolah Adiwiyata Provinsi (untuk SAP 2021/2022/2023/2024/2025) atau SK/Piagam Perpanjangan Adiwiyata Tahun 2023/2024/2025

+ + nama_dalam_sk == 1 ? 'checked' : '' }} type="radio" name="dokumen_1"> Ya
+ nama_dalam_sk == 2 ? 'checked' : '' }} type="radio" name="dokumen_1"> Tidak
+ nama_dalam_sk == 3 ? 'checked' : '' }} type="radio" name="dokumen_1"> Tidak Ada Bukti/Dokumen
+
+

Apakah salinan SK/Piagam Sekolah Adiwiyata provinsi di tandatangani Gubernur atau pejabat yang diberi kewenangan untuk menandatangani atau SK/Piagam Perpanjangan di Tandatangani Kepala Dinas LH ?

+ + sk_ttd == 1 ? 'checked' : '' }} type="radio" name="dokumen_2"> Ya
+ sk_ttd == 2 ? 'checked' : '' }} type="radio" name="dokumen_2"> Tidak
+ sk_ttd == 3 ? 'checked' : '' }} type="radio" name="dokumen_2"> Tidak Ada Bukti/Dokumen
+
+

Waktu Penetapan Penghargaan SAP

+ + waktu_penetapan == 1 ? 'checked' : '' }} type="radio" name="dokumen_3">  SAP tahun 2021/ 2022/ 2023/ 2024 ditetapkan SEBELUM 1 Agustus 2024
+ waktu_penetapan == 2 ? 'checked' : '' }} type="radio" name="dokumen_3">  SAP tahun 2021/ 2022 /2023/ 2024 ditetapkan SETELAH 1 Agustus 2024
+ waktu_penetapan == 3 ? 'checked' : '' }} type="radio" name="dokumen_3">  SAP/SAN/SAM perolehan tahun 2020 atau sebelumnya serta lolos perpanjangan sebagai SAP
+ waktu_penetapan == 4 ? 'checked' : '' }} type="radio" name="dokumen_3">  SAP perolehan tahun 2020 atau sebelumnya serta tidak ada SK/piagam perpanjangan sebagai SAP
+
+
+
+
+
+
    + @foreach($page as $hal) +
  • {{$hal}}
  • + @endforeach + +
+
+
+
+
I. Perencanaan Gerakan PBLHS
+
+
+
+ +
+ {!! formKriteria(1,$sekolah->MsSekolahId) !!} +
+
+ + @if(@$kuesioner->status < 4) +
+ +
+ @endif +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @if(@$kuesioner->status < 4) + + + + + @endif +
Usulan
Jenis Usulan CSA{{getUsulan($sekolah->MsSekolahId)}}
Penghargaan
Penghargaan Terakhir{{getPenghargaanTerakhir($sekolah->MsSekolahId)}}
Nomor SK-
Tanggal Penetapan SK-
Berdasarkan data usulan yang dilengkapi, dinyatakan bahwa {{@$sekolah->nama_sekolah}} :
Nilai Dokumen Administrasi0
Nilai Pemenuhan Kriteria0
Validasi + +
Catatan + +
+
+
+ + +
+
+
+ +
+
+@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 index f33928c..bdc7640 100644 --- a/resources/views/modules/usulan/csap/index.blade.php +++ b/resources/views/modules/usulan/csap/index.blade.php @@ -142,8 +142,8 @@ Nama Sekolah Wilayah Dokumen Administrasi - Pemenuhan Kriteria - Progress + Pemenuhan Kriteria + Progress SK diff --git a/resources/views/modules/usulan/csap/resume.blade.php b/resources/views/modules/usulan/csap/resume.blade.php new file mode 100644 index 0000000..a66172d --- /dev/null +++ b/resources/views/modules/usulan/csap/resume.blade.php @@ -0,0 +1,258 @@ +@extends('layouts.master') + +@section('page-css') + + +@endsection +@section('content') +
+

+ {{$title}} +

+
+
+
+ @if ($errors->any()) +
+
    + @foreach ($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif +
+ {{csrf_field()}} +
+
+
+
+ + + + + + + + + + + + + +
+ +
NPSN: {{$sekolah->npsn}}

{{$sekolah->nama_sekolah}}

{{$sekolah->tingkat->name}} {{$sekolah->status}}
+
+
+
+

 Anda Belum Melakukan Finalisasi Proses Data Kriteria

+

 Klik Progress Usulan untuk melakukan Finalisasi Proses Data Kriteria

+
+
+
+
    +
  • +
  • Resume
  • +
+
+
+ +
+ @foreach($page as $dataNumber) +
+
+ {{$dataNumber}} +
+
+ {!! formKriteria($dataNumber,$sekolah->MsSekolahId) !!} +
+
+ @endforeach +
+
+ +
+
+ +
+
+
+
+@endsection +@section('page-js') + +@endsection \ No newline at end of file diff --git a/resources/views/modules/usulan/kriteria/form.blade.php b/resources/views/modules/usulan/kriteria/form.blade.php index 95ae6f4..df1afc1 100644 --- a/resources/views/modules/usulan/kriteria/form.blade.php +++ b/resources/views/modules/usulan/kriteria/form.blade.php @@ -60,6 +60,7 @@ @endif
{{csrf_field()}} +
@@ -116,7 +117,11 @@
@@ -166,11 +171,11 @@ }); $('.resume').on('click',function(e){ - window.location.href = "{{url('usulan/kriteria/resume/'.encode_id(session('sekolah_id')))}}"; + window.location.href = "{{url('usulan/adiwiyata/kriteria/resume/'.encode_id(session('sekolah_id')))}}"; }); $('.progress_usulan').on('click',function(e){ - window.location.href = "{{url('usulan/kriteria/progress/'.encode_id(session('sekolah_id')))}}"; + window.location.href = "{{url('usulan/adiwiyata/kriteria/progress/'.encode_id(session('sekolah_id')))}}"; }); $('#btnSave').on('click',function(e){ diff --git a/resources/views/modules/usulan/kriteria/progress.blade.php b/resources/views/modules/usulan/kriteria/progress.blade.php index 38f9cab..406519f 100644 --- a/resources/views/modules/usulan/kriteria/progress.blade.php +++ b/resources/views/modules/usulan/kriteria/progress.blade.php @@ -287,7 +287,7 @@ @if(session('group_alias') == 'sekolah') - @if($kuesioner->status == 1) + @if($kuesioner->status == 2)
@@ -357,11 +357,11 @@ }); $('.back').on('click',function(e){ - window.location.href = "{{url('usulan/kriteria')}}"; + window.location.href = "{{url('usulan/adiwiyata/kriteria')}}"; }); $('.progress_usulan').on('click',function(e){ - window.location.href = "{{url('usulan/kriteria/progress/'.encode_id(session('sekolah_id')))}}"; + window.location.href = "{{url('usulan/adiwiyata/kriteria/progress/'.encode_id(session('sekolah_id')))}}"; }); $('.btnSend').on('click',function(e){ @@ -375,7 +375,7 @@ } $.ajax({ - url: "{{url('usulan/kriteria/kirimData/'.@$secure_id.'/'.encode_id(@$kuesioner->KuesionerId))}}", // Ganti dengan URL API-mu + url: "{{url('usulan/adiwiyata/kriteria/kirimData/'.@$secure_id.'/'.encode_id(@$kuesioner->KuesionerId))}}", // Ganti dengan URL API-mu type: 'POST', // Bisa juga 'POST' kalau perlu data: { _token:'{{csrf_token()}}', @@ -385,10 +385,14 @@ $('#loading-spinner').show(); // Menampilkan spinner }, success: function (response) { - // console.log('Response:', response); - toastr.success("Berhasil menyimpan data", 'Success!', {positionClass: 'toast-bottom-right', containerId: 'toast-bottom-right'}); - - location.reload(); + if(response.type == 'error'){ + toastr.error(response.message, 'Error!', {positionClass: 'toast-bottom-right', containerId: 'toast-bottom-right'}); + }else{ + // console.log('Response:', response); + toastr.success("Berhasil menyimpan data", 'Success!', {positionClass: 'toast-bottom-right', containerId: 'toast-bottom-right'}); + location.reload(); + } + }, error: function (xhr, status, error) { toastr.error("Maaf Terjadi Kesalahan Menyimpan Data", 'Error!', {positionClass: 'toast-bottom-right', containerId: 'toast-bottom-right'}); diff --git a/resources/views/modules/usulan/kriteria/resume.blade.php b/resources/views/modules/usulan/kriteria/resume.blade.php index d5a6561..649b5df 100644 --- a/resources/views/modules/usulan/kriteria/resume.blade.php +++ b/resources/views/modules/usulan/kriteria/resume.blade.php @@ -169,11 +169,11 @@ }); $('.back').on('click',function(e){ - window.location.href = "{{url('usulan/kriteria')}}"; + window.location.href = "{{url('usulan/adiwiyata/kriteria')}}"; }); $('.progress_usulan').on('click',function(e){ - window.location.href = "{{url('usulan/kriteria/progress/'.encode_id(session('sekolah_id')))}}"; + window.location.href = "{{url('usulan/adiwiyata/kriteria/progress/'.encode_id(session('sekolah_id')))}}"; }); $('#btnSave').on('click',function(e){ diff --git a/resources/views/modules/usulan/sk/index.blade.php b/resources/views/modules/usulan/sk/index.blade.php index 01c1785..4e8ba42 100644 --- a/resources/views/modules/usulan/sk/index.blade.php +++ b/resources/views/modules/usulan/sk/index.blade.php @@ -142,13 +142,12 @@ # No - NPSN - Nama Sekolah - Wilayah - - Pemenuhan Kriteria - Progress - SK + Judul SK + Sekolah + Tanggal Penetapan SK + Tahun + Jenis Usulan + File diff --git a/routes/modules/modules.php b/routes/modules/modules.php index 3f0bbb7..9209659 100644 --- a/routes/modules/modules.php +++ b/routes/modules/modules.php @@ -66,16 +66,22 @@ Route::name('usulan.')->prefix('usulan')->group(function () { Route::name('csap.')->prefix('csap')->group(function () { Route::resource('/',CSAPController::class); + Route::get('update/{id}',[CSAPController::class,'update'])->name('update'); + Route::get('/resume/{sekolah_id}',[CSAPController::class,'resume'])->name('resume'); Route::get('/grid',[CSAPController::class,'grid'])->name('grid'); }); Route::name('csam.')->prefix('csam')->group(function () { Route::resource('/',CSAMController::class); + Route::get('update/{id}',[CSAMController::class,'update'])->name('update'); + Route::get('/resume/{sekolah_id}',[CSAMController::class,'resume'])->name('resume'); Route::get('/grid',[CSAMController::class,'grid'])->name('grid'); }); Route::name('csan.')->prefix('csan')->group(function () { Route::resource('/',CSANController::class); + Route::get('update/{id}',[CSANController::class,'update'])->name('update'); + Route::get('/resume/{sekolah_id}',[CSANController::class,'resume'])->name('resume'); Route::get('/grid',[CSANController::class,'grid'])->name('grid'); });