<?php

use App\Http\Controllers\adminabsensicontroller;
use App\Http\Controllers\adminapicontroller;
use App\Http\Controllers\adminbanksoalcontroller;
use App\Http\Controllers\admindashboardcontroller;
use App\Http\Controllers\admingeneratebanksoalcontroller;
use App\Http\Controllers\admingurucontroller;
use App\Http\Controllers\adminkelascontroller;
use App\Http\Controllers\adminkompetensidasarcontroller;
use App\Http\Controllers\adminmapelcontroller;
use App\Http\Controllers\adminmateripokokcontroller;
use App\Http\Controllers\adminpelanggarancontroller;
use App\Http\Controllers\adminpenilaiancontroller;
use App\Http\Controllers\adminprosescontroller;
use App\Http\Controllers\adminseedercontroller;
use App\Http\Controllers\adminsettingscontroller;
use App\Http\Controllers\adminsilabuscontroller;
use App\Http\Controllers\adminsiswacontroller;
use App\Http\Controllers\adminsynccontroller;
use App\Http\Controllers\admintapelcontroller;
use App\Http\Controllers\adminuserscontroller;

use App\Http\Controllers\adminkkocontroller;
use App\Http\Controllers\adminpembayarancontroller;
use App\Http\Controllers\admintagihancontroller;
use App\Http\Controllers\guruabsensicontroller;
use App\Http\Controllers\gurukelascontroller;
use App\Http\Controllers\gurukompetensidasarcontroller;
use App\Http\Controllers\gurumateripokokcontroller;
use App\Http\Controllers\gurupelanggarancontroller;
use App\Http\Controllers\gurupenilaiancontroller;
use App\Http\Controllers\gurusilabuscontroller;
use App\Http\Controllers\siswadataajarcontroller;
use App\Http\Controllers\siswaekskulcontroller;
use Illuminate\Support\Facades\Route;
use Illuminate\Http\Request;
use SimpleSoftwareIO\QrCode\Facades\QrCode;


Route::get('/', function () {
    return view('landing');
});


//halaman admin fixed
Route::group(['middleware' => ['auth:web', 'verified']], function() {

    //DASHBOARD-MENU
    Route::get('/dashboard', [admindashboardcontroller::class, 'index'])->name('dashboard');
    //settings
    Route::get('/admin/settings', [adminsettingscontroller::class, 'index'])->name('settings');
    Route::put('/admin/settings/{id}', [adminsettingscontroller::class, 'update'])->name('settings.update');
    Route::get('/admin/settings/resetpassword', [adminsettingscontroller::class, 'resetpassword'])->name('settings.resetpassword');
    Route::get('/admin/settings/resetpassword/cari', [adminsettingscontroller::class, 'resetpasswordcari'])->name('settings.resetpassword.cari');
    Route::get('/admin/settings/resetpassword/resetsemua', [adminsettingscontroller::class, 'resetsemua'])->name('settings.resetpassword.resetsemua');
    Route::get('/admin/settings/passwordujian', [adminsettingscontroller::class, 'passwordujian'])->name('settings.passwordujian');
    Route::post('/admin/settings/passwordujian/generate', [adminsettingscontroller::class, 'passwordujiangenerate'])->name('settings.passwordujian.generate');
//export
    Route::get('/admin/settings/passwordujian/export', [adminsettingscontroller::class, 'passwordujianexport'])->name('settings.passwordujian.export');

    //MASTERING
    //USER
    Route::get('/admin/users', [adminuserscontroller::class, 'index'])->name('users');
    Route::get('/admin/users/{id}', [adminuserscontroller::class, 'edit'])->name('users.edit');
    Route::put('/admin/users/{id}', [adminuserscontroller::class, 'update'])->name('users.update');
    Route::delete('/admin/users/{id}', [adminuserscontroller::class, 'destroy'])->name('users.destroy');
    Route::get('/admin/datausers/cari', [adminuserscontroller::class, 'cari'])->name('users.cari');
    Route::get('/admin/datausers/create', [adminuserscontroller::class, 'create'])->name('users.create');
    Route::post('/admin/datausers', [adminuserscontroller::class, 'store'])->name('users.store');
    Route::delete('/admin/datausers/multidel', [adminuserscontroller::class, 'multidel'])->name('users.multidel');

    //tapel
    Route::get('/admin/tapel', [admintapelcontroller::class, 'index'])->name('tapel');
    Route::get('/admin/tapel/{id}', [admintapelcontroller::class, 'edit'])->name('tapel.edit');
    Route::put('/admin/tapel/{id}', [admintapelcontroller::class, 'update'])->name('tapel.update');
    Route::delete('/admin/tapel/{id}', [admintapelcontroller::class, 'destroy'])->name('tapel.destroy');
    Route::get('/admin/datatapel/cari', [admintapelcontroller::class, 'cari'])->name('tapel.cari');
    Route::get('/admin/datatapel/create', [admintapelcontroller::class, 'create'])->name('tapel.create');
    Route::post('/admin/datatapel', [admintapelcontroller::class, 'store'])->name('tapel.store');
    Route::delete('/admin/datatapel/multidel', [admintapelcontroller::class, 'multidel'])->name('tapel.multidel');


    //guru
    Route::get('/admin/guru', [admingurucontroller::class, 'index'])->name('guru');
    Route::get('/admin/guru/{id}', [admingurucontroller::class, 'edit'])->name('guru.edit');
    Route::put('/admin/guru/{id}', [admingurucontroller::class, 'update'])->name('guru.update');
    Route::delete('/admin/guru/{id}', [admingurucontroller::class, 'destroy'])->name('guru.destroy');
    Route::get('/admin/dataguru/cari', [admingurucontroller::class, 'cari'])->name('guru.cari');
    Route::get('/admin/dataguru/create', [admingurucontroller::class, 'create'])->name('guru.create');
    Route::post('/admin/dataguru', [admingurucontroller::class, 'store'])->name('guru.store');
    Route::delete('/admin/dataguru/multidel', [admingurucontroller::class, 'multidel'])->name('guru.multidel');


    //kelas
    Route::get('/admin/kelas', [adminkelascontroller::class, 'index'])->name('kelas');
    Route::get('/admin/kelas/{id}', [adminkelascontroller::class, 'edit'])->name('kelas.edit');
    Route::put('/admin/kelas/{id}', [adminkelascontroller::class, 'update'])->name('kelas.update');
    Route::delete('/admin/kelas/{id}', [adminkelascontroller::class, 'destroy'])->name('kelas.destroy');
    Route::get('/admin/datakelas/cari', [adminkelascontroller::class, 'cari'])->name('kelas.cari');
    Route::get('/admin/datakelas/create', [adminkelascontroller::class, 'create'])->name('kelas.create');
    Route::post('/admin/datakelas', [adminkelascontroller::class, 'store'])->name('kelas.store');
    Route::delete('/admin/datakelas/multidel', [adminkelascontroller::class, 'multidel'])->name('kelas.multidel');
//walikelas
    Route::post('/admin/store/walikelas/{id}', [adminkelascontroller::class, 'walikelasstore'])->name('store.walikelas');
    Route::post('/admin/store/pengajar/{id}', [adminsilabuscontroller::class, 'pengajarstore'])->name('store.pengajar');


    //siswa
    Route::get('/admin/siswa', [adminsiswacontroller::class, 'index'])->name('siswa');
    Route::get('/admin/siswa/{id}', [adminsiswacontroller::class, 'edit'])->name('siswa.edit');
    Route::post('/admin/siswa/{id}/reset', [adminsiswacontroller::class, 'reset'])->name('siswa.reset');
    Route::put('/admin/siswa/{id}', [adminsiswacontroller::class, 'update'])->name('siswa.update');
    Route::delete('/admin/siswa/{id}', [adminsiswacontroller::class, 'destroy'])->name('siswa.destroy');
    Route::get('/admin/datasiswa/cari', [adminsiswacontroller::class, 'cari'])->name('siswa.cari');
    Route::get('/admin/datasiswa/create', [adminsiswacontroller::class, 'create'])->name('siswa.create');
    Route::post('/admin/datasiswa', [adminsiswacontroller::class, 'store'])->name('siswa.store');
    Route::delete('/admin/datasiswa/multidel', [adminsiswacontroller::class, 'multidel'])->name('siswa.multidel');


    //mapel
    Route::get('/admin/mapel', [adminmapelcontroller::class, 'index'])->name('mapel');
    Route::get('/admin/mapel/{id}', [adminmapelcontroller::class, 'edit'])->name('mapel.edit');
    Route::put('/admin/mapel/{id}', [adminmapelcontroller::class, 'update'])->name('mapel.update');
    Route::delete('/admin/mapel/{id}', [adminmapelcontroller::class, 'destroy'])->name('mapel.destroy');
    Route::get('/admin/datamapel/cari', [adminmapelcontroller::class, 'cari'])->name('mapel.cari');
    Route::get('/admin/datamapel/create', [adminmapelcontroller::class, 'create'])->name('mapel.create');
    Route::post('/admin/datamapel', [adminmapelcontroller::class, 'store'])->name('mapel.store');
    Route::delete('/admin/datamapel/multidel', [adminmapelcontroller::class, 'multidel'])->name('mapel.multidel');


    //kko
    Route::get('/admin/kko', [adminkkocontroller::class, 'index'])->name('kko');
    Route::get('/admin/kko/{id}', [adminkkocontroller::class, 'edit'])->name('kko.edit');
    Route::put('/admin/kko/{id}', [adminkkocontroller::class, 'update'])->name('kko.update');
    Route::delete('/admin/kko/{id}', [adminkkocontroller::class, 'destroy'])->name('kko.destroy');
    Route::get('/admin/datakko/cari', [adminkkocontroller::class, 'cari'])->name('kko.cari');
    Route::get('/admin/datakko/create', [adminkkocontroller::class, 'create'])->name('kko.create');
    Route::post('/admin/datakko', [adminkkocontroller::class, 'store'])->name('kko.store');
    Route::delete('/admin/datakko/multidel', [adminkkocontroller::class, 'multidel'])->name('kko.multidel');

    //silabus
    Route::get('/admin/silabus', [adminsilabuscontroller::class, 'index'])->name('silabus');
    Route::get('/admin/datasilabus/cari', [adminsilabuscontroller::class, 'cari'])->name('silabus.cari');


    //banksoal
    Route::get('/admin/dataajar/{dataajar}/banksoal', [adminbanksoalcontroller::class, 'index'])->name('dataajar.banksoal');
    Route::get('/admin/dataajar/{dataajar}/banksoal/create', [adminbanksoalcontroller::class, 'create'])->name('dataajar.banksoal.create');
    Route::get('/admin/dataajar/{dataajar}/banksoal/cari', [adminbanksoalcontroller::class, 'cari'])->name('dataajar.banksoal.cari');
    Route::post('/admin/dataajar/{dataajar}/banksoal/store', [adminbanksoalcontroller::class, 'store'])->name('dataajar.banksoal.store');
    Route::get('/admin/dataajar/{dataajar}/banksoal/edit/{id}', [adminbanksoalcontroller::class, 'edit'])->name('dataajar.banksoal.edit');
    Route::post('/admin/dataajar/{dataajar}/banksoal/update/{id}', [adminbanksoalcontroller::class, 'update'])->name('dataajar.banksoal.update');
    Route::delete('/admin/dataajar/{dataajar}/banksoal/delete/{id}', [adminbanksoalcontroller::class, 'destroy'])->name('dataajar.banksoal.delete');
    Route::delete('/admin/multidel/dataajar/{dataajar}/banksoal', [adminbanksoalcontroller::class, 'multidel'])->name('dataajar.banksoal.multidel');

    //generatebanksoal
    Route::get('/admin/dataajar/{dataajar}/generatebanksoal', [admingeneratebanksoalcontroller::class, 'index'])->name('dataajar.generatebanksoal');
    Route::get('/admin/dataajar/{dataajar}/generatebanksoal/create', [admingeneratebanksoalcontroller::class, 'create'])->name('dataajar.generatebanksoal.create');
    Route::post('/admin/dataajar/{dataajar}/generatebanksoal/store', [admingeneratebanksoalcontroller::class, 'store'])->name('dataajar.generatebanksoal.store');
    Route::delete('/admin/dataajar/{dataajar}/generatebanksoal/delete/{id}', [admingeneratebanksoalcontroller::class, 'destroy'])->name('dataajar.generatebanksoal.delete');
    //generate pdf dan xml cetak soal
    Route::get('/admin/dataajar/{dataajar}/generatebanksoal/{id}/pdfsoal', [admingeneratebanksoalcontroller::class, 'pdfsoal'])->name('dataajar.generatebanksoal.pdfsoal');
    Route::get('/admin/dataajar/{dataajar}/generatebanksoal/{id}/pdfkunci', [admingeneratebanksoalcontroller::class, 'pdfkunci'])->name('dataajar.generatebanksoal.pdfkunci');
    Route::get('/admin/dataajar/{dataajar}/generatebanksoal/{id}/xml', [admingeneratebanksoalcontroller::class, 'xml'])->name('dataajar.generatebanksoal.xml');
    //export
    Route::get('/admin/dataajar/{dataajar}/exportmateripokok', [admingeneratebanksoalcontroller::class, 'exportsoal'])->name('dataajar.exportsoaldanjawaban');
    //import
    Route::post('admin/dataajar/{dataajar}/importmateripokok',[admingeneratebanksoalcontroller::class, 'importsoal'])->name('dataajar.importsoaldanjawaban');

    //kompetensidasar
    Route::get('/admin/dataajar/{dataajar}/kompetensidasar', [adminkompetensidasarcontroller::class, 'index'])->name('dataajar.kompetensidasar');
    Route::get('/admin/dataajar/{dataajar}/kompetensidasar/create', [adminkompetensidasarcontroller::class, 'create'])->name('dataajar.kompetensidasar.create');
    Route::get('/admin/dataajar/{dataajar}/kompetensidasar/cari', [adminkompetensidasarcontroller::class, 'cari'])->name('dataajar.kompetensidasar.cari');
    Route::post('/admin/dataajar/{dataajar}/kompetensidasar/store', [adminkompetensidasarcontroller::class, 'store'])->name('dataajar.kompetensidasar.store');
    Route::get('/admin/dataajar/{dataajar}/kompetensidasar/edit/{id}', [adminkompetensidasarcontroller::class, 'edit'])->name('dataajar.kompetensidasar.edit');
    Route::post('/admin/dataajar/{dataajar}/kompetensidasar/update/{id}', [adminkompetensidasarcontroller::class, 'update'])->name('dataajar.kompetensidasar.update');
    Route::delete('/admin/dataajar/{dataajar}/kompetensidasar/delete/{id}', [adminkompetensidasarcontroller::class, 'destroy'])->name('dataajar.kompetensidasar.delete');
    Route::delete('/admin/multidel/dataajar/{dataajar}/kompetensidasar', [adminkompetensidasarcontroller::class, 'multidel'])->name('dataajar.kompetensidasar.multidel');
    //export
    Route::get('/admin/dataajar/{dataajar}/exportkd', [adminkompetensidasarcontroller::class, 'exportkd'])->name('dataajar.kompetensidasar.exportkd');
    //import
    Route::post('admin/dataajar/{dataajar}/importkdk',[adminkompetensidasarcontroller::class, 'importkd'])->name('dataajar.kompetensidasar.importkd');

    //materipokok
    Route::get('/admin/dataajar/{dataajar}/kompetensidasar/materipokok/{kd}', [adminmateripokokcontroller::class, 'index'])->name('dataajar.kompetensidasar.materipokok.index');
    Route::get('/admin/dataajar/{dataajar}/kompetensidasar/materipokok/{kd}/create', [adminmateripokokcontroller::class, 'create'])->name('dataajar.kompetensidasar.materipokok.create');
    Route::post('/admin/dataajar/{dataajar}/kompetensidasar/materipokok/{kd}/store', [adminmateripokokcontroller::class, 'store'])->name('dataajar.kompetensidasar.materipokok.store');
    Route::get('/admin/dataajar/{dataajar}/kompetensidasar/materipokok/{kd}/edit/{id}', [adminmateripokokcontroller::class, 'edit'])->name('dataajar.kompetensidasar.materipokok.edit');
    Route::post('/admin/dataajar/{dataajar}/kompetensidasar/materipokok/{kd}/update/{id}', [adminmateripokokcontroller::class, 'update'])->name('dataajar.kompetensidasar.materipokok.update');
    Route::delete('/admin/dataajar/{dataajar}/kompetensidasar/materipokok/{kd}/delete/{id}', [adminmateripokokcontroller::class, 'destroy'])->name('dataajar.kompetensidasar.materipokok.delete');
    Route::delete('/admin/multidel/dataajar/{dataajar}/kompetensidasar/materipokok/{kd}', [adminmateripokokcontroller::class, 'multidel'])->name('dataajar.kompetensidasar.materipokok.multidel');
    //export
    Route::get('/admin/datakd/{kd}/exportmateri', [adminmateripokokcontroller::class, 'exportmateri'])->name('dataajar.kompetensidasar.materipokok.exportmateri');
    //import
    Route::post('admin/datakd/{kd}/importmateri',[adminmateripokokcontroller::class, 'importmateri'])->name('dataajar.kompetensidasar.materipokok.importmateri');



    //penilaian
    Route::get('/admin/penilaian', [adminpenilaiancontroller::class, 'index'])->name('penilaian');
    Route::get('/admin/datapenilaian/cari', [adminpenilaiancontroller::class, 'cari'])->name('penilaian.cari');
    //inputnilai
    Route::get('/admin/datapenilaian/inputnilai/{dataajar}', [adminpenilaiancontroller::class, 'inputnilai'])->name('penilaian.inputnilai');
    //export
    Route::get('/admin/datapenilaianexportmateripokok/{dataajar}/materipokok/{materipokok}', [adminpenilaiancontroller::class, 'exportnilaipermateri'])->name('penilaian.inputnilai.exportmateripokok');
    Route::get('/admin/datapenilaianexportkd/{dataajar}/kd/{kompetensidasar}', [adminpenilaiancontroller::class, 'exportnilaiperkd'])->name('penilaian.inputnilai.exportkd');
    //import
    Route::post('admin/datapenilaianimportmateri/{dataajar}/materi/{materipokok}',[adminpenilaiancontroller::class, 'importnilaipermateri'])->name('penilaian.inpunilai.importnilaipermateri');


    //absensi
    Route::get('/admin/absensi', [adminabsensicontroller::class, 'index'])->name('absensi');
    Route::get('/admin/dataabsensi/cari', [adminabsensicontroller::class, 'cari'])->name('absensi.cari');
    Route::get('/admin/absensi/detail/{kelas}', [adminabsensicontroller::class, 'detail'])->name('absensi.detail');
    Route::post('/admin/absensi/detail/{kelas}/store', [adminabsensicontroller::class, 'store'])->name('absensi.store');
    Route::post('/admin/absensi/detail/{kelas}/storev2', [adminabsensicontroller::class, 'storev2'])->name('absensi.storev2');
    Route::delete('/admin/dataabsensi/{kelas}/data/{id}', [adminabsensicontroller::class, 'destroy'])->name('absensi.delete');

    //pelanggaran
    Route::get('/admin/pelanggaran', [adminpelanggarancontroller::class, 'index'])->name('pelanggaran');
    Route::get('/admin/pelanggaran/detail/{kelas}', [adminpelanggarancontroller::class, 'detail'])->name('pelanggaran.detail');
    Route::post('/admin/pelanggaran/detail/{kelas}/store', [adminpelanggarancontroller::class, 'store'])->name('pelanggaran.store');


    //tagihan
    Route::get('/admin/tagihan', [admintagihancontroller::class, 'index'])->name('tagihan');
    Route::get('/admin/tagihan/{id}', [admintagihancontroller::class, 'edit'])->name('tagihan.edit');
    Route::put('/admin/tagihan/{id}', [admintagihancontroller::class, 'update'])->name('tagihan.update');
    Route::delete('/admin/tagihan/{id}', [admintagihancontroller::class, 'destroy'])->name('tagihan.destroy');
    Route::get('/admin/datatagihan/cari', [admintagihancontroller::class, 'cari'])->name('tagihan.cari');
    Route::get('/admin/datatagihan/create', [admintagihancontroller::class, 'create'])->name('tagihan.create');
    Route::post('/admin/datatagihan', [admintagihancontroller::class, 'store'])->name('tagihan.store');
    Route::delete('/admin/datatagihan/multidel', [admintagihancontroller::class, 'multidel'])->name('tagihan.multidel');


    //pembayaran
    Route::get('/admin/pembayaran', [adminpembayarancontroller::class, 'index'])->name('pembayaran');


    // api
    Route::get('/api/admin/inputnilai/store/{dataajar}', [adminapicontroller::class, 'inputnilaistore'])->name('api.admin.inputnilai.store');
    Route::get('/api/admin/siswaperkelas/{kelas}', [adminapicontroller::class, 'siswaperkelas'])->name('api.admin.siswaperkelas');
    Route::get('/api/admin/banksoal/periksatingkatkesulitan', [adminapicontroller::class, 'periksatingkatkesulitan'])->name('api.banksoal.periksatingkatkesulitan');

    Route::get('/api/admin/banksoal/kompetensidasargeneratekode/{dataajar}', [adminapicontroller::class, 'kompetensidasargeneratekode'])->name('api.banksoal.kompetensidasargeneratekode');

    //sync
    Route::get('/admin/sync/mapeltodataajar', [adminsynccontroller::class, 'mapeltodataajar'])->name('sync.mapeltodataajar');
    Route::get('/admin/sync/tagihantodetail', [adminsynccontroller::class, 'tagihantodetail'])->name('sync.tagihantodetail');

    //Seeder
    Route::post('/admin/seeder/kelas', [adminseedercontroller::class, 'kelas'])->name('seeder.kelas');
    Route::post('/admin/seeder/siswa', [adminseedercontroller::class, 'siswa'])->name('seeder.siswa');
    Route::post('/admin/seeder/guru', [adminseedercontroller::class, 'guru'])->name('seeder.guru');
    Route::post('/admin/seeder/mapel', [adminseedercontroller::class, 'mapel'])->name('seeder.mapel');
    Route::post('/admin/seeder/hard', [adminseedercontroller::class, 'hard'])->name('seeder.hard');

    //proseslainlain
    Route::post('/admin/proses/cleartemp', [adminprosescontroller::class, 'cleartemp'])->name('cleartemp');


    // hakakses guru
    //kelas
    Route::get('/guru/kelas', [gurukelascontroller::class, 'index'])->name('guru.kelas');
    Route::get('/guru/datakelas/cari', [gurukelascontroller::class, 'cari'])->name('guru.kelas.cari');
    //silabus
    Route::get('/guru/silabus', [gurusilabuscontroller::class, 'index'])->name('guru.silabus');
    Route::get('/guru/datasilabus/cari', [gurusilabuscontroller::class, 'cari'])->name('guru.silabus.cari');


    //penilaian
    Route::get('/guru/penilaian', [gurupenilaiancontroller::class, 'index'])->name('guru.penilaian');
    Route::get('/guru/datapenilaian/cari', [gurupenilaiancontroller::class, 'cari'])->name('guru.penilaian.cari');
    //inputnilai
    Route::get('/guru/datapenilaian/inputnilai/{dataajar}', [gurupenilaiancontroller::class, 'inputnilai'])->name('guru.penilaian.inputnilai');

    //absensi
    Route::get('/guru/absensi', [guruabsensicontroller::class, 'index'])->name('guru.absensi');
    Route::get('/guru/dataabsensi/cari', [guruabsensicontroller::class, 'cari'])->name('guru.absensi.cari');
    Route::get('/guru/absensi/detail/{kelas}', [guruabsensicontroller::class, 'detail'])->name('guru.absensi.detail');
    Route::post('/guru/absensi/detail/{kelas}/store', [guruabsensicontroller::class, 'store'])->name('guru.absensi.store');

    //pelanggaran
    Route::get('/guru/pelanggaran', [gurupelanggarancontroller::class, 'index'])->name('guru.pelanggaran');
    Route::get('/guru/pelanggaran/detail/{kelas}', [gurupelanggarancontroller::class, 'detail'])->name('guru.pelanggaran.detail');
    Route::post('/guru/pelanggaran/detail/{kelas}/store', [gurupelanggarancontroller::class, 'store'])->name('guru.pelanggaran.store');

    //menusiswa

    Route::put('/menusiswa/siswa/{id}', [admindashboardcontroller::class, 'siswaupdate'])->name('siswa.siswa.update');

    Route::get('/menusiswa/dataajar', [siswadataajarcontroller::class, 'index'])->name('menusiswa.dataajar');
    Route::get('/menusiswa/penilaian', [siswadataajarcontroller::class, 'lihatnilai'])->name('menusiswa.lihatnilai');
    Route::get('/menusiswa/detailpenilaian/{dataajar}', [siswadataajarcontroller::class, 'detailpenilaian'])->name('menusiswa.detailpenilaian');
    Route::get('/menusiswa/dataajar/eksul', [siswaekskulcontroller::class, 'index'])->name('menusiswa.ekskul');
    Route::get('/gumenusiswaru/dataajar/cari', [siswadataajarcontroller::class, 'cari'])->name('menusiswa.dataajar.cari');
    Route::get('/menusiswa/materi/{dataajar}', [siswadataajarcontroller::class, 'materi'])->name('menusiswa.materi');
    Route::get('/menusiswa/materi/{dataajar}/detail/{kd}', [siswadataajarcontroller::class, 'materidetail'])->name('menusiswa.materi.detail');

});
