diff --git a/app/Http/Controllers/SampahBelumTerkelolaController.php b/app/Http/Controllers/SampahBelumTerkelolaController.php
new file mode 100644
index 0000000..c81a31a
--- /dev/null
+++ b/app/Http/Controllers/SampahBelumTerkelolaController.php
@@ -0,0 +1,178 @@
+title;
+ $data['route'] = $this->route;
+ return view($this->template.'.index', $data);
+ }
+
+ /**
+ * Show the form for creating a new resource.
+ */
+ public function create()
+ {
+ //
+ }
+
+ public function grid(Request $request)
+ {
+ if(session('group_alias') == 'sekolah'){
+ $data = SampahBelumTerkelola::where('ms_sekolah_id',session('sekolah_id'))
+ ->orderBy('tahun','DESC')
+ ->orderBy('bulan','ASC');
+ }else{
+ if(session('kabupaten_id') != ''){
+ $data = SampahBelumTerkelola::whereHas('sekolah',function($query){
+ $query->where('ms_kabupaten_id',session('kabupaten_id'));
+ })->orderBy('tahun','DESC')
+ ->orderBy('bulan','ASC');
+
+ }else{
+ $data = SampahBelumTerkelola::with(['sekolah'])->orderBy('tahun','DESC')
+ ->orderBy('bulan','ASC');
+ }
+ }
+
+ if(@request()->tahun){
+ $tahun = request()->tahun;
+ }else{
+ $tahun = date('Y');
+ }
+
+ $data->where('tahun',$tahun);
+
+
+ $_data = [];
+
+
+
+ foreach ($data->get() as $key => $row) {
+
+ $action = '';
+ $action .= 'Edit';
+
+
+ $sekolah = '';
+ $sekolah .= @$row->sekolah->nama_sekolah.'
';
+ $sekolah .= '
| # | --}} +No | + @if(session('group_alias') == 'sekolah') +# | + @endif + @if(session('group_alias') != 'sekolah') +Sekolah | + @endif + {{--Mitra | --}} +Tahun | +Bulan | +Organik (Kg) | +An Organik (Kg) | +B3 (Kg) | +Residu (Kg) | +
|---|