Commit 0ed4ead1 by Farendi Giotivano R.P

menu master

parent 632752ab
<?php
namespace App\Http\Controllers\Admin;
use Alert;
use Crypt;
use App\Http\Controllers\Controller;
use App\Repositories\Admin\MsBidangPenelitianRepository;
use Illuminate\Http\Request;
class BidangPenelitianController extends Controller
{
private $bidangpenelitianRepo;
public function __construct(MsBidangPenelitianRepository $bidangpenelitianRepo)
{
$this->bidangpenelitianRepo = $bidangpenelitianRepo;
}
public function index()
{
//
$menu = 'bidangpenelitian';
$bidangpenelitian = $this->bidangpenelitianRepo->get();
$data = [
'bidangpenelitian' => $bidangpenelitian,
'menu' => $menu
];
return view('admin.bidang.index', $data);
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
//
return view('admin.bidangpenelitian.create');
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
//
$data = $request->except('_token');
$data['user_id'] = auth()->user()->id;
$bidangpenelitian = $this->bidangpenelitianRepo->store($data);
$data = [
'bidangpenelitian' => $bidangpenelitian->id,
];
Alert::success('Berhasil', 'bidangpenelitian berhasil disimpan');
return redirect()->route('bidang.index', $data);
}
/**
* Display the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function show($id)
{
//
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function edit($id)
{
//
$menu = 'bidangpenelitian';
$bidangpenelitian = $this->bidangpenelitianRepo->findId(null, $id);
$data = [
'menu' => $menu,
'bidangpenelitian' => $bidangpenelitian,
];
return view('admin.bidang.edit', $data);
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
*/
public function update(Request $request, $id)
{
//
$data = $request->except('_token');
$data['userid_updated'] = auth()->user()->id;
$bidangpenelitian = $this->bidangpenelitianRepo->findId(null, $id);
$this->bidangpenelitianRepo->update($data, $bidangpenelitian);
$data = [
'bidangpenelitian' => $bidangpenelitian->id,
];
Alert::success('Berhasil', 'bidangpenelitian berhasil diupdated');
return redirect()->route('bidang.index', $data);
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function destroy($id)
{
//
$model = $this->bidangpenelitianRepo->findId(null, Crypt::decrypt($id));
$this->bidangpenelitianRepo->destroy($model);
Alert::success('Data berhasil dihapus')->persistent('Ok');
return redirect()->route('bidang.index');
}
}
......@@ -62,5 +62,6 @@ class Kernel extends HttpKernel
'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
'role' => \Spatie\Permission\Middlewares\RoleMiddleware::class,
];
}
......@@ -14,4 +14,13 @@ class MsBidangPenelitian extends Model
public $incrementing = false;
protected $table = 'ms_bidang_penelitian';
protected $keyType = 'string';
protected $fillable = [
'id', 'id_kategori', 'nama', 'userid_created', 'userid_updated', 'created_at', 'updated_at',
];
public function rKategori()
{
return $this->belongsTo(MsBidangPenelitian::class, 'id', 'id_kategori');
}
}
......@@ -15,6 +15,10 @@ class MsBidangPenelitianKategori extends Model
protected $table = 'ms_bidang_penelitian_kategori';
protected $keyType = 'string';
protected $fillable = [
'id', 'namabidang', 'userid_created', 'userid_updated', 'created_at', 'updated_at',
];
public function children()
{
return $this->hasMany(MsBidangPenelitian::class, 'id_kategori', 'id');
......
......@@ -8,6 +8,7 @@ use Illuminate\Notifications\Notifiable;
use Laravel\Fortify\TwoFactorAuthenticatable;
use Laravel\Jetstream\HasProfilePhoto;
use Laravel\Sanctum\HasApiTokens;
use Spatie\Permission\Traits\HasRoles;
class User extends Authenticatable
{
......@@ -16,6 +17,7 @@ class User extends Authenticatable
use HasProfilePhoto;
use Notifiable;
use TwoFactorAuthenticatable;
use HasRoles;
public $incrementing = false;
......
<?php
namespace App\Repositories\Admin;
use App\Models\Admin\MsBidangPenelitian;
use App\Repositories\Repository;
class MsBidangPenelitianRepository extends Repository
{
protected $model;
public function __construct(MsBidangPenelitian $model)
{
$this->model = $model;
}
public function get($with = null, $search = null, $id = null)
{
return $this->model->when($with, function ($query) use ($with) {
return $query->with($with);
})
->when($search, function ($query) use ($search) {
return $query->where('search', $search);
})
->when($id, function ($query) use ($id) {
return $query->where('id', $id);
})
->get();
}
}
<?php
namespace App\Repositories\Admin;
use App\Models\Admin\MsTujuanSosial;
use App\Repositories\Repository;
class MsTujuanSosialRepository extends Repository
{
protected $model;
public function __construct(MsTujuanSosial $model)
{
$this->model = $model;
}
public function get($with = null, $search = null, $id = null)
{
return $this->model->when($with, function ($query) use ($with) {
return $query->with($with);
})
->when($search, function ($query) use ($search) {
return $query->where('search', $search);
})
->when($id, function ($query) use ($id) {
return $query->where('id', $id);
})
->get();
}
}
......@@ -925,7 +925,7 @@ code {
.topbar-nav.header nav#topbar ul.menu-categories li.menu:not(:last-child) > a {
border-right: 1px solid #515365; }
.topbar-nav.header nav#topbar ul.menu-categories li.menu a > div svg:not(.feather-chevron-down) {
width: 40px; /*Di ubah*/
width: 25px;
height: 25px;
color: #e0e6ed;
vertical-align: bottom;
......@@ -960,7 +960,7 @@ code {
text-align: left;
margin-right: auto;
margin-left: auto;
width: 100%; /*Di ubah*/
width: 200px;
padding: 15px 0;
border-radius: 4px;
box-shadow: 0 1.5rem 4rem rgba(22, 28, 45, 0.15);
......@@ -981,7 +981,7 @@ code {
display: flex;
justify-content: space-between;
color: #888ea8;
white-space: wrap;
white-space: normal;
align-items: center;
transition: all 0.2s ease-in-out;
padding: 4px 24px;
......@@ -1011,7 +1011,7 @@ code {
left: auto;
right: -200px;
min-width: 160px;
width: 100%;
width: 200px;
padding: 12px 0;
border-radius: 6px; }
.topbar-nav.header nav#topbar ul.menu-categories li.menu .submenu .sub-sub-submenu-list:hover ul.sub-submenu {
......@@ -1023,7 +1023,7 @@ code {
font-weight: 400;
padding: 4px 24px;
color: #888ea8;
white-space: wrap;
white-space: normal;
font-size: 14.5px;
align-items: center;
transition: all 0.2s ease-in-out;
......
@extends('layouts.master')
@section('title')
Bidang Penelitian
@endsection
@section('header')
<div class="page-title">
<h3>Bidang Penelitian</h3>
</div>
@endsection
@section('contents')
@php
$menu = 'dashboard';
@endphp
<div class="row layout-top-spacing" id="cancel-row">
<div class="col-xl-12 col-lg-12 col-sm-12 layout-spacing">
<div class="widget-content widget-content-area br-6">
<div class="table-responsive mb-4 mt-4">
<a href="{{ url('admin/bidangpenelitian/create') }}" class="btn btn-primary mb-2"><i data-feather="file-plus"></i> Tambah</a>
<table id="zero-config" class="table table-hover" style="width:100%">
<thead>
<tr>
<th>No</th>
<th>Nama Unit</th>
<th>No SK</th>
<th>Status</th>
<th style="width: 20%">Aksi</th>
</tr>
</thead>
<tbody>
@php $no = 1; @endphp
@foreach ($fasilitas as $value)
<tr>
<td>{{ $no++ }}</td>
<td>{{ $value->namaunit }}</td>
<td>{{ $value->nosk }}</td>
<td>{{ $value->status }}</td>
<td>
<a href="{{ url('fasilitas/'.$value->id.'/edit') }}" class="btn btn-warning mb-2"><i data-feather="edit"></i> Edit</a> |
<button class="btn btn-danger mb-2 delete" data-id="{{ $value->id }}" data-file="{{$value->id}}"><i data-feather="trash-2"></i> Delete</button>
{{ Form::open(['url'=>route('fasilitas.destroy', [Crypt::encrypt($value->id)]), 'method'=>'delete', 'id' => $value->id, 'style' => 'display: none;']) }}
{{ csrf_field() }}
{{ Form::close() }}
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
@endsection
@section('js')
<script src="{{ url('theme/plugins/table/datatable/datatables.js') }}"></script>
<script>
$('#zero-config').DataTable({
"oLanguage": {
"oPaginate": { "sPrevious": '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left"><line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline></svg>', "sNext": '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>' },
"sInfo": "Showing page _PAGE_ of _PAGES_",
"sSearch": '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>',
"sSearchPlaceholder": "Search...",
"sLengthMenu": "Results : _MENU_",
},
"stripeClasses": [],
"lengthMenu": [10, 20, 50],
"pageLength": 10
});
var url = "{{ route('admin.bidangpenelitian.index') }}";
$("body").on("click", ".delete", function (e) {
e.preventDefault();
var id = $(this).data('id');
Swal.fire({
title: "Apakah Anda Yakin?",
text: "Anda akan menghapus data ini!",
icon: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Yes",
cancelButtonText: "No"
}).then((result) => {
if (result.value) {
Swal.close();
$("#"+id).submit();
} else if (result.dismiss === Swal.DismissReason.cancel) {
Swal.fire('Dibatalkan', 'Data batal dihapus', 'error');
}
});
});
</script>
@endsection
@extends('layouts.master')
@section('title')
Master Tujuan Sosial Ekonomi
@endsection
@section('header')
<div class="page-title">
<h3>Tujuan Sosial Ekonomi</h3>
</div>
@endsection
@section('contents')
@php
$menu = 'dashboard';
@endphp
<div class="row layout-top-spacing" id="cancel-row">
<div class="col-xl-12 col-lg-12 col-sm-12 layout-spacing">
<div class="widget-content widget-content-area br-6">
<div class="table-responsive mb-4 mt-4">
{{-- table --}}
</div>
</div>
</div>
</div>
@endsection
@section('js')
<script src="{{ url('theme/plugins/table/datatable/datatables.js') }}"></script>
<script>
$('#zero-config').DataTable({
"oLanguage": {
"oPaginate": { "sPrevious": '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left"><line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline></svg>', "sNext": '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>' },
"sInfo": "Showing page _PAGE_ of _PAGES_",
"sSearch": '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>',
"sSearchPlaceholder": "Search...",
"sLengthMenu": "Results : _MENU_",
},
"stripeClasses": [],
"lengthMenu": [10, 20, 50],
"pageLength": 10
});
var url = "{{ route('user.index') }}";
$("body").on("click", ".delete", function (e) {
e.preventDefault();
var id = $(this).data('id');
Swal.fire({
title: "Apakah Anda Yakin?",
text: "Anda akan menghapus data ini!",
icon: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Yes",
cancelButtonText: "No"
}).then((result) => {
if (result.value) {
Swal.close();
$("#"+id).submit();
} else if (result.dismiss === Swal.DismissReason.cancel) {
Swal.fire('Dibatalkan', 'Data batal dihapus', 'error');
}
});
});
</script>
@endsection
@extends('layouts.master')
@section('title')
Master User
@endsection
@section('header')
<div class="page-title">
<h3>Master User</h3>
</div>
@endsection
@section('contents')
@php
$menu = 'dashboard';
@endphp
<div class="row layout-top-spacing" id="cancel-row">
<div class="col-xl-12 col-lg-12 col-sm-12 layout-spacing">
<div class="widget-content widget-content-area br-6">
<div class="table-responsive mb-4 mt-4">
{{-- table --}}
</div>
</div>
</div>
</div>
@endsection
@section('js')
<script src="{{ url('theme/plugins/table/datatable/datatables.js') }}"></script>
<script>
$('#zero-config').DataTable({
"oLanguage": {
"oPaginate": { "sPrevious": '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left"><line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline></svg>', "sNext": '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>' },
"sInfo": "Showing page _PAGE_ of _PAGES_",
"sSearch": '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>',
"sSearchPlaceholder": "Search...",
"sLengthMenu": "Results : _MENU_",
},
"stripeClasses": [],
"lengthMenu": [10, 20, 50],
"pageLength": 10
});
var url = "{{ route('user.index') }}";
$("body").on("click", ".delete", function (e) {
e.preventDefault();
var id = $(this).data('id');
Swal.fire({
title: "Apakah Anda Yakin?",
text: "Anda akan menghapus data ini!",
icon: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Yes",
cancelButtonText: "No"
}).then((result) => {
if (result.value) {
Swal.close();
$("#"+id).submit();
} else if (result.dismiss === Swal.DismissReason.cancel) {
Swal.fire('Dibatalkan', 'Data batal dihapus', 'error');
}
});
});
</script>
@endsection
......@@ -32,7 +32,6 @@
</ul>
<ul class="navbar-item flex-row nav-dropdowns">
<li class="nav-item dropdown user-profile-dropdown order-lg-0 order-1">
<a href="javascript:void(0);" class="nav-link dropdown-toggle user" id="user-profile-dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
......@@ -42,12 +41,12 @@
<h6><span>Hi,</span> {{ Auth::user()->name }}</h6>
</div>
</div>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9"></polyline></svg>
<i data-feather="chevron-down"></i><span>
</a>
<div class="dropdown-menu position-absolute animated fadeInUp" aria-labelledby="user-profile-dropdown">
<div class="">
<div class="dropdown-item">
<a class="" href="user_profile.html"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg> My Profile</a>
<a class="" href="user_profile.html"><i data-feather="user"></i><span> My Profile</a>
</div>
<div class="dropdown-item">
<a href="{{ route('logout') }}" onclick="event.preventDefault();document.getElementById('logout-form').submit();" ><i data-feather="log-out"></i>Logout</a>
......@@ -70,7 +69,39 @@
<div class="search-overlay"></div>
<!-- BEGIN TOPBAR -->
@include('layouts.menu')
<div class="topbar-nav header navbar" role="banner">
<nav id="topbar">
<ul class="navbar-nav theme-brand flex-row text-center">
{{-- <li class="nav-item theme-logo">
<a href="{{ url('dashboard') }}">
<img src="assets/img/90x90.jpg" class="navbar-logo" alt="logo">
</a>
</li> --}}
<li class="nav-item theme-text">
<a href="{{ url('dashboard') }}" class="nav-link"> SIMLITABMAS </a>
</li>
</ul>
<ul class="list-unstyled menu-categories" id="topAccordion">
<li class="menu single-menu active">
<a href="#dashboard" data-toggle="collapse" aria-expanded="true" class="dropdown-toggle autodroprown">
<div class="">
<i data-feather="home"></i><span class="icon-name"> Dashboard</span>
</div>
</a>
</li>
@hasrole('admin')
@include('layouts.menuadmin')
@endrole
@hasrole('user')
@include('layouts.menu')
@endrole
</ul>
</nav>
</div>
<!-- END TOPBAR -->
<!-- BEGIN CONTENT PART -->
......
<li class="menu single-menu">
<a href="#tables" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">
<div class="">
<i data-feather="database"></i><span>Master</span>
</div>
</a>
<ul class="collapse submenu list-unstyled" id="tables" data-parent="#topAccordion">
<li>
<a href="{{ url('user') }}"> User </a>
</li>
<li class="sub-sub-submenu-list">
<a href="#datatable" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle"> Bidang Penelitian <i data-feather="chevron-right"> </i></a>
<ul class="collapse list-unstyled sub-submenu" id="datatable" data-parent="#datatable">
<li>
<a href="{{ url('admin/bidangkategori') }}"> Kategori </a>
</li>
<li>
<a href="{{ url('admin/bidangpenelitian') }}"> Bidang Penelitian </a>
</li>
</ul>
</li>
<li class="sub-sub-submenu-list">
<a href="#datatable" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle"> Tujuan Sosial Ekonomi <i data-feather="chevron-right"> </i> </a>
<ul class="collapse list-unstyled sub-submenu" id="datatable" data-parent="#datatable">
<li>
<a href="{{ url('admin/tujuankategori') }}"> Kategori </a>
</li>
<li>
<a href="{{ url('admin/tujuansosial') }}"> Tujuan Sosial Ekonomi </a>
</li>
</ul>
</li>
</ul>
</li>
......@@ -13,6 +13,10 @@ use App\Http\Controllers\User\PublikasiArtikelController;
use App\Http\Controllers\User\PublikasiJurnalController;
use App\Http\Controllers\User\StafPendukungController;
use App\Http\Controllers\User\UnitBisnisController;
use App\Http\Controllers\Admin\BidangPenelitianController as AdminBidangPenelitianController;
use App\Http\Controllers\Admin\TujuanSosialController as AdminTujuanSosialController;
use Illuminate\Support\Facades\Route;
/*
......@@ -27,43 +31,57 @@ use Illuminate\Support\Facades\Route;
*/
Route::get('/', function () {
return view('dashboard');
return view('auth.login');
});
Route::get('login', [LoginController::class, 'index'])->name('login');
Route::get('sso/{email}/{sessionid}', [LoginController::class, 'sso']);
Route::group(['namespace' => 'Authentication'], function () {
Route::get('sso/{email}/{sessionid}', [LoginController::class, 'sso']);
});
Route::middleware(['auth:sanctum', 'verified'])->group(function () {
Route::group(['middleware' => ['auth:sanctum', 'verified']], function () {
Route::get('/dashboard', function () {
return view('dashboard');
})->name('dashboard');
Route::get('/get-biodata', [GetDataController::class, 'getBiodata'])->name('get-biodata');
// Route::get('/get-row-anggota', [PenelitianSumberDanaController::class, 'getRowAnggota'])->name('get-row-anggota');
Route::get('/get-children', [GetDataController::class, 'getChildren'])->name('get-children');
Route::resource('/bukuajar', BukuAjarController::class);
Route::resource('/fasilitas', FasilitasController::class);
Route::resource('/kekayaanintelek', KekayaanIntelController::class);
Route::resource('/kontrakkerja', KontrakKerjaController::class);
Route::resource('/penelitiansumber', PenelitianSumberDanaController::class);
Route::get('/penelitiansumber/next-form/{id}', [PenelitianSumberDanaController::class, 'nextForm'])->name('penelitiansumber.next-form');
Route::get('/penelitiansumber/edit-anggota/{id}', [PenelitianSumberDanaController::class, 'editAnggota'])->name('penelitiansumber.edit-anggota');
Route::post('/penelitiansumber/simpan-anggota/{id}', [PenelitianSumberDanaController::class, 'simpanAnggota'])->name('penelitiansumber.simpan-anggota');
Route::post('/penelitiansumber/delete-anggota', [PenelitianSumberDanaController::class, 'deleteAnggota'])->name('penelitiansumber.delete-anggota');
Route::post('/penelitiansumber/cek-simpan-anggota', [PenelitianSumberDanaController::class, 'cekSimpanAnggota'])->name('penelitiansumber.cek-simpan-anggota');
Route::resource('/penelitiasing', PenelitiAsingController::class);
Route::resource('/publikasiartikel', PublikasiArtikelController::class);
Route::resource('/publikasijurnal', PublikasiJurnalController::class);
Route::get('/publikasijurnal/next-form/{id}', [PublikasiJurnalController::class, 'nextForm'])->name('publikasijurnal.next-form');
Route::get('/publikasijurnal/edit-anggota/{id}', [PublikasiJurnalController::class, 'editAnggota'])->name('publikasijurnal.edit-anggota');
Route::post('/publikasijurnal/simpan-anggota/{id}', [PublikasiJurnalController::class, 'simpanAnggota'])->name('publikasijurnal.simpan-anggota');
Route::post('/publikasijurnal/delete-anggota', [PublikasiJurnalController::class, 'deleteAnggota'])->name('publikasijurnal.delete-anggota');
Route::resource('/penyelenggaraseminar', PenyelenggaraanSeminarController::class);
Route::resource('/stafpendukung', StafPendukungController::class);
Route::resource('/unitbisnis', UnitBisnisController::class);
Route::name('admin')->prefix('admin')->middleware(['role:admin'])->group(function () {
Route::resource('/bidangpenelitian', AdminBidangPenelitianController::class);
Route::get('/bidangkategori', [AdminBidangPenelitianController::class, 'bidangkategori'])->name('bidangkategori');
Route::resource('/tujuansosial', AdminTujuanSosialController::class);
Route::get('/tujuankategori', [AdminTujuanSosialController::class, 'tujuankategori'])->name('tujuankategori');
});
Route::group(['middleware' => ['role:admin|user']], function () {
Route::get('/get-biodata', [GetDataController::class, 'getBiodata'])->name('get-biodata');
// Route::get('/get-row-anggota', [PenelitianSumberDanaController::class, 'getRowAnggota'])->name('get-row-anggota');
Route::get('/get-children', [GetDataController::class, 'getChildren'])->name('get-children');
Route::resource('/bukuajar', BukuAjarController::class);
Route::resource('/fasilitas', FasilitasController::class);
Route::resource('/kekayaanintelek', KekayaanIntelController::class);
Route::resource('/kontrakkerja', KontrakKerjaController::class);
Route::resource('/penelitiansumber', PenelitianSumberDanaController::class);
Route::get('/penelitiansumber/next-form/{id}', [PenelitianSumberDanaController::class, 'nextForm'])->name('penelitiansumber.next-form');
Route::get('/penelitiansumber/edit-anggota/{id}', [PenelitianSumberDanaController::class, 'editAnggota'])->name('penelitiansumber.edit-anggota');
Route::post('/penelitiansumber/simpan-anggota/{id}', [PenelitianSumberDanaController::class, 'simpanAnggota'])->name('penelitiansumber.simpan-anggota');
Route::post('/penelitiansumber/delete-anggota', [PenelitianSumberDanaController::class, 'deleteAnggota'])->name('penelitiansumber.delete-anggota');
Route::post('/penelitiansumber/cek-simpan-anggota', [PenelitianSumberDanaController::class, 'cekSimpanAnggota'])->name('penelitiansumber.cek-simpan-anggota');
Route::resource('/penelitiasing', PenelitiAsingController::class);
Route::resource('/publikasiartikel', PublikasiArtikelController::class);
Route::resource('/publikasijurnal', PublikasiJurnalController::class);
Route::get('/publikasijurnal/next-form/{id}', [PublikasiJurnalController::class, 'nextForm'])->name('publikasijurnal.next-form');
Route::get('/publikasijurnal/edit-anggota/{id}', [PublikasiJurnalController::class, 'editAnggota'])->name('publikasijurnal.edit-anggota');
Route::post('/publikasijurnal/simpan-anggota/{id}', [PublikasiJurnalController::class, 'simpanAnggota'])->name('publikasijurnal.simpan-anggota');
Route::post('/publikasijurnal/delete-anggota', [PublikasiJurnalController::class, 'deleteAnggota'])->name('publikasijurnal.delete-anggota');
Route::resource('/penyelenggaraseminar', PenyelenggaraanSeminarController::class);
Route::resource('/stafpendukung', StafPendukungController::class);
Route::resource('/unitbisnis', UnitBisnisController::class);
});
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment