Commit 76cd5c23 by novan bagus setiawan

update progress jenis dan penilaian monev

parent e3c0877c
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use DB;
use URL;
use Auth;
use Uuid;
use Alert;
use Crypt;
use App\Models\JadwalKegiatan;
class JadwalKegiatanController extends Controller
{
public function index()
{
$data['jadwal_kegiatan'] = JadwalKegiatan::where('status_hapus', '0')->get();
return view('backend.jadwal_kegiatan.index', compact('data'))->withTitle('Jadwal Kegiatan');
}
/* AJAX request */
public function getData(Request $request){
}
public function create()
{
}
public function store(Request $request)
{
}
public function edit($id)
{
$jenis = Jenis::where('jenis_id', '=', Crypt::decrypt($id))->get();
$penilaian_monev = PenilaianMonev::where('jenis_id', '=', Crypt::decrypt($id))->get();
$data = [
'jenis' => $jenis,
'penilaian_monev' => $penilaian_monev
];
return view('backend.penilaian_monev.edit', compact('data'))->withTitle('Ubah Jenis PKM');
}
public function update(Request $request, $id)
{
$delete = PenilaianMonev::where('jenis_id', $id)->delete($id);
for($i=0; $i<count($request->nama); $i++)
{
$uuid = Uuid::generate();
$data['penilaian_monev_id'] = $uuid;
$data['jenis_id'] = $id;
$data['nama'] = $request->nama[$i];
$data['bobot'] = $request->bobot[$i];
PenilaianMonev::create($data);
}
Alert::success('Data berhasil disimpan.')->persistent('Ok');
return redirect()->route('penilaian_monev.index');
}
public function destroy($id)
{
try {
$delete = Jenis::where('jenis_id', Crypt::decrypt($id))->update(['status_hapus'=>'1']);
if ($delete == 1) {
$status = 'success';
$message = "Jenis PKM berhasil dihapus.";
}
else{
$status = 'error';
$message = "Jenis PKM tidak ada.";
}
return response()->json([
'status' => $status,
'message' => $message,
]);
} catch (\Exception $id) {
return response()->json([
'status' => 'error',
'message' => "Data gagal dihapus.",
]);
}
}
}
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use DB;
use URL;
use Auth;
use Uuid;
use Alert;
use Crypt;
use App\Models\Jenis;
class JenisController extends Controller
{
public function index()
{
return view('backend.jenis.index')->withTitle('Jenis PKM');
}
/* AJAX request */
public function getData(Request $request){
## Read value
$draw = $request->get('draw');
$start = $request->get("start");
$rowperpage = $request->get("length"); // Rows display per page
$columnIndex_arr = $request->get('order');
$columnName_arr = $request->get('columns');
$order_arr = $request->get('order');
$search_arr = $request->get('search');
$columnIndex = $columnIndex_arr[0]['column']; // Column index
$columnName = $columnName_arr[$columnIndex]['data']; // Column name
$columnSortOrder = $order_arr[0]['dir']; // asc or desc
$searchValue = strtoupper($search_arr['value']); // Search value
// Total records
$statementGlobal = " STATUS_HAPUS = '0' ";
$totalRecords = Jenis::select('count(1) as allcount')->whereRaw($statementGlobal)->count();
$statement = " AND (UPPER(NAMA) LIKE '%".$searchValue."%') ";
$totalRecordswithFilter = Jenis::select('count(1) as allcount')
->whereRaw($statementGlobal.$statement)->count();
// Fetch records
$records = Jenis::orderBy($columnName,$columnSortOrder)
->whereRaw($statementGlobal.$statement)
->select('jenis.*')
->skip($start)
->take($rowperpage)
->get();
$data_arr = array();
foreach($records as $record){
$jenis_id = $record->jenis_id;
$nama = $record->nama;
$keterangan = $record->keterangan;
// $edit = route('admin/users/create',$id);
$edit = URL::to('jenis/'.Crypt::encrypt($jenis_id).'/edit');
$delete = "confirmDelete('".Crypt::encrypt($jenis_id)."')";
$data_arr[] = array(
"jenis_id" => $jenis_id,
"nama" => $nama,
"keterangan" => $keterangan,
"aksi" => '<td class="table-action">
<a href="'.$edit.'" class="btn btn-icon-sm btn-primary"><i class="fas fa-edit"></i></a>
<a href="#!" class="btn btn-icon-sm btn-danger" onclick="'.$delete.'"><i class="fas fa-trash"></i></a>
</td>'
);
}
$response = array(
"draw" => intval($draw),
"iTotalRecords" => $totalRecords,
"iTotalDisplayRecords" => $totalRecordswithFilter,
"aaData" => $data_arr
);
echo json_encode($response);
exit;
}
public function create()
{
return view('backend.jenis.create')->withTitle('Tambah Jenis PKM');
}
public function store(Request $request)
{
$uuid = Uuid::generate();
$data['jenis_id'] = $uuid;
$data['nama'] = $request->input('nama');
$data['keterangan'] = $request->input('keterangan');
// $data['created_user'] = Auth::user()->name;
Post::where('id',3)->update(['title'=>'Updated title']);
if(Jenis::create($data))
{
Alert::success('Data berhasil disimpan')->persistent('Ok');
$successmessage = "Proses Tambah Kuesioner Berhasil.";
}
else
{
Alert::success('Data gagal disimpan')->persistent('Ok');
$successmessage = "Proses Tambah Kuesioner Gagal.";
}
return redirect()->route('jenis.index')->with('successMessage', $successmessage);
}
public function edit($id)
{
$jenis = Jenis::where('jenis_id', '=', Crypt::decrypt($id))->get();
$data = [
'jenis' => $jenis
];
return view('backend.jenis.edit', compact('data'))->withTitle('Ubah Jenis PKM');
}
public function update(Request $request, $id)
{
$data['nama'] = $request->input('nama');
$data['keterangan'] = $request->input('keterangan');
$jenis = Jenis::findOrFail($id);
$jenis->update($data);
Alert::success('Data berhasil disimpan.')->persistent('Ok');
return redirect()->route('jenis.index');
}
public function destroy($id)
{
try {
$delete = Jenis::where('jenis_id', Crypt::decrypt($id))->update(['status_hapus'=>'1']);
if ($delete == 1) {
$status = 'success';
$message = "Jenis PKM berhasil dihapus.";
}
else{
$status = 'error';
$message = "Jenis PKM tidak ada.";
}
return response()->json([
'status' => $status,
'message' => $message,
]);
} catch (\Exception $id) {
return response()->json([
'status' => 'error',
'message' => "Data gagal dihapus.",
]);
}
}
}
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use DB;
use URL;
use Auth;
use Uuid;
use Alert;
use Crypt;
use App\Models\Jenis;
use App\Models\PenilaianMonev;
class PenilaianMonevController extends Controller
{
public function index()
{
return view('backend.penilaian_monev.index')->withTitle('Jenis PKM');
}
/* AJAX request */
public function getData(Request $request){
## Read value
$draw = $request->get('draw');
$start = $request->get("start");
$rowperpage = $request->get("length"); // Rows display per page
$columnIndex_arr = $request->get('order');
$columnName_arr = $request->get('columns');
$order_arr = $request->get('order');
$search_arr = $request->get('search');
$columnIndex = $columnIndex_arr[0]['column']; // Column index
$columnName = $columnName_arr[$columnIndex]['data']; // Column name
$columnSortOrder = $order_arr[0]['dir']; // asc or desc
$searchValue = strtoupper($search_arr['value']); // Search value
// Total records
$statementGlobal = " STATUS_HAPUS = '0' ";
$totalRecords = Jenis::select('count(1) as allcount')->whereRaw($statementGlobal)->count();
$statement = " AND (UPPER(NAMA) LIKE '%".$searchValue."%') ";
$totalRecordswithFilter = Jenis::select('count(1) as allcount')
->whereRaw($statementGlobal.$statement)->count();
// Fetch records
$records = Jenis::orderBy($columnName,$columnSortOrder)
->whereRaw($statementGlobal.$statement)
->select('jenis.*')
->selectRaw('ambil_jumlah_penilaian_monev(jenis.jenis_id) jumlah_komponen')
->skip($start)
->take($rowperpage)
->get();
$data_arr = array();
foreach($records as $record){
$jenis_id = $record->jenis_id;
$nama = $record->nama;
$keterangan = $record->keterangan;
$jumlah_komponen = $record->jumlah_komponen;
$edit = URL::to('penilaian_monev/'.Crypt::encrypt($jenis_id).'/edit');
$data_arr[] = array(
"jenis_id" => $jenis_id,
"nama" => $nama,
"keterangan" => $keterangan,
"jumlah_komponen" => $jumlah_komponen,
"aksi" => '<td class="table-action">
<a href="'.$edit.'" class="btn btn-icon-sm btn-primary"><i class="fas fa-clipboard-list"></i></a>
</td>'
);
}
$response = array(
"draw" => intval($draw),
"iTotalRecords" => $totalRecords,
"iTotalDisplayRecords" => $totalRecordswithFilter,
"aaData" => $data_arr
);
echo json_encode($response);
exit;
}
public function create()
{
}
public function store(Request $request)
{
}
public function edit($id)
{
$jenis = Jenis::where('jenis_id', '=', Crypt::decrypt($id))->get();
$penilaian_monev = PenilaianMonev::where('jenis_id', '=', Crypt::decrypt($id))->get();
$data = [
'jenis' => $jenis,
'penilaian_monev' => $penilaian_monev
];
return view('backend.penilaian_monev.edit', compact('data'))->withTitle('Ubah Jenis PKM');
}
public function update(Request $request, $id)
{
$delete = PenilaianMonev::where('jenis_id', $id)->delete($id);
for($i=0; $i<count($request->nama); $i++)
{
$uuid = Uuid::generate();
$data['penilaian_monev_id'] = $uuid;
$data['jenis_id'] = $id;
$data['nama'] = $request->nama[$i];
$data['bobot'] = $request->bobot[$i];
PenilaianMonev::create($data);
}
Alert::success('Data berhasil disimpan.')->persistent('Ok');
return redirect()->route('penilaian_monev.index');
}
public function destroy($id)
{
try {
$delete = Jenis::where('jenis_id', Crypt::decrypt($id))->update(['status_hapus'=>'1']);
if ($delete == 1) {
$status = 'success';
$message = "Jenis PKM berhasil dihapus.";
}
else{
$status = 'error';
$message = "Jenis PKM tidak ada.";
}
return response()->json([
'status' => $status,
'message' => $message,
]);
} catch (\Exception $id) {
return response()->json([
'status' => 'error',
'message' => "Data gagal dihapus.",
]);
}
}
}
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class JadwalKegiatan extends Model
{
protected $table = 'jadwal_kegiatan';
protected $primaryKey = 'jadwal_kegiatan_id';
public $incrementing = false;
protected $fillable = [
'jadwal_kegiatan_id', 'nama', 'keterangan', 'tanggal_mulai', 'tanggal_selesai', 'status_hapus', 'urut'
];
}
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Jenis extends Model
{
protected $table = 'jenis';
protected $primaryKey = 'jenis_id';
public $incrementing = false;
protected $fillable = [
'jenis_id', 'nama', 'keterangan', 'status_hapus'
];
public function rPenilaianMonev()
{
return $this->hasMany(\App\Models\PenilaianMonev::class, 'jenis_id', 'jenis_id');
}
}
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class PenilaianMonev extends Model
{
protected $table = 'penilaian_monev';
protected $primaryKey = 'penilaian_monev_id';
public $incrementing = false;
protected $fillable = [
'penilaian_monev_id', 'jenis_id', 'nama', 'bobot'
];
}
...@@ -13,7 +13,10 @@ ...@@ -13,7 +13,10 @@
"fruitcake/laravel-cors": "^2.0", "fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1", "guzzlehttp/guzzle": "^7.0.1",
"laravel/framework": "^8.0", "laravel/framework": "^8.0",
"laravel/tinker": "^2.0" "laravel/tinker": "^2.0",
"laravelcollective/html": "^6.3",
"realrashid/sweet-alert": "^5.1",
"webpatser/laravel-uuid": "4.0"
}, },
"require-dev": { "require-dev": {
"facade/ignition": "^2.3.6", "facade/ignition": "^2.3.6",
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "7b56bfb5d21eaae286e532c3ed2f8941", "content-hash": "5aae18a12609b60b15550982e9f3cf1d",
"packages": [ "packages": [
{ {
"name": "asm89/stack-cors", "name": "asm89/stack-cors",
...@@ -1316,6 +1316,78 @@ ...@@ -1316,6 +1316,78 @@
"time": "2022-03-23T12:38:24+00:00" "time": "2022-03-23T12:38:24+00:00"
}, },
{ {
"name": "laravelcollective/html",
"version": "v6.3.0",
"source": {
"type": "git",
"url": "https://github.com/LaravelCollective/html.git",
"reference": "78c3cb516ac9e6d3d76cad9191f81d217302dea6"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/LaravelCollective/html/zipball/78c3cb516ac9e6d3d76cad9191f81d217302dea6",
"reference": "78c3cb516ac9e6d3d76cad9191f81d217302dea6",
"shasum": ""
},
"require": {
"illuminate/http": "^6.0|^7.0|^8.0|^9.0",
"illuminate/routing": "^6.0|^7.0|^8.0|^9.0",
"illuminate/session": "^6.0|^7.0|^8.0|^9.0",
"illuminate/support": "^6.0|^7.0|^8.0|^9.0",
"illuminate/view": "^6.0|^7.0|^8.0|^9.0",
"php": ">=7.2.5"
},
"require-dev": {
"illuminate/database": "^6.0|^7.0|^8.0|^9.0",
"mockery/mockery": "~1.0",
"phpunit/phpunit": "~8.5|^9.5.10"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "6.x-dev"
},
"laravel": {
"providers": [
"Collective\\Html\\HtmlServiceProvider"
],
"aliases": {
"Form": "Collective\\Html\\FormFacade",
"Html": "Collective\\Html\\HtmlFacade"
}
}
},
"autoload": {
"files": [
"src/helpers.php"
],
"psr-4": {
"Collective\\Html\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Adam Engebretson",
"email": "adam@laravelcollective.com"
},
{
"name": "Taylor Otwell",
"email": "taylorotwell@gmail.com"
}
],
"description": "HTML and Form Builders for the Laravel Framework",
"homepage": "https://laravelcollective.com",
"support": {
"issues": "https://github.com/LaravelCollective/html/issues",
"source": "https://github.com/LaravelCollective/html"
},
"time": "2022-02-08T21:02:54+00:00"
},
{
"name": "league/commonmark", "name": "league/commonmark",
"version": "2.3.3", "version": "2.3.3",
"source": { "source": {
...@@ -2850,6 +2922,96 @@ ...@@ -2850,6 +2922,96 @@
"time": "2021-09-25T23:10:38+00:00" "time": "2021-09-25T23:10:38+00:00"
}, },
{ {
"name": "realrashid/sweet-alert",
"version": "v5.1.0",
"source": {
"type": "git",
"url": "https://github.com/realrashid/sweet-alert.git",
"reference": "fb837beaa52568fb3106d311ff3c7a7b8e543608"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/realrashid/sweet-alert/zipball/fb837beaa52568fb3106d311ff3c7a7b8e543608",
"reference": "fb837beaa52568fb3106d311ff3c7a7b8e543608",
"shasum": ""
},
"require": {
"laravel/framework": "^5.6|^6.0|^7.0|^8.0|^9.0|^9.11|9.14.*",
"php": "^7.2|^8.0"
},
"require-dev": {
"symfony/thanks": "^1.0"
},
"type": "library",
"extra": {
"laravel": {
"providers": [
"RealRashid\\SweetAlert\\SweetAlertServiceProvider"
],
"aliases": {
"Alert": "RealRashid\\SweetAlert\\Facades\\Alert"
}
}
},
"autoload": {
"files": [
"src/functions.php"
],
"psr-4": {
"RealRashid\\SweetAlert\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Rashid Ali",
"email": "realrashid05@gmail.com",
"homepage": "https://realrashid.com",
"role": "Developer"
}
],
"description": "A BEAUTIFUL, RESPONSIVE, CUSTOMIZABLE, ACCESSIBLE (WAI-ARIA) REPLACEMENT FOR JAVASCRIPT'S POPUP BOXES FOR LARAVEL BY RASHID ALI",
"homepage": "https://github.com/realrashid/sweet-alert",
"keywords": [
"alert",
"laravel",
"laravel-package",
"notifier",
"noty",
"sweet-alert",
"sweet-alert2",
"toast"
],
"support": {
"docs": "https://realrashid.github.io/sweet-alert/",
"email": "realrashid05@gmail.com",
"issues": "https://github.com/realrashid/sweet-alert/issues",
"source": "https://github.com/realrashid/sweet-alert"
},
"funding": [
{
"url": "https://ko-fi.com/realrashid",
"type": "custom"
},
{
"url": "https://www.buymeacoffee.com/realrashid",
"type": "custom"
},
{
"url": "https://issuehunt.io/r/realrashid",
"type": "issuehunt"
},
{
"url": "https://tidelift.com/funding/github/packagist/realrashid/sweet-alert",
"type": "tidelift"
}
],
"time": "2022-05-28T13:28:03+00:00"
},
{
"name": "swiftmailer/swiftmailer", "name": "swiftmailer/swiftmailer",
"version": "v6.3.0", "version": "v6.3.0",
"source": { "source": {
...@@ -5389,6 +5551,64 @@ ...@@ -5389,6 +5551,64 @@
"source": "https://github.com/webmozarts/assert/tree/1.11.0" "source": "https://github.com/webmozarts/assert/tree/1.11.0"
}, },
"time": "2022-06-03T18:03:27+00:00" "time": "2022-06-03T18:03:27+00:00"
},
{
"name": "webpatser/laravel-uuid",
"version": "4.0",
"source": {
"type": "git",
"url": "https://github.com/webpatser/laravel-uuid.git",
"reference": "ac2d27479fc362cb24132b6b597039ff60ae93cc"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/webpatser/laravel-uuid/zipball/ac2d27479fc362cb24132b6b597039ff60ae93cc",
"reference": "ac2d27479fc362cb24132b6b597039ff60ae93cc",
"shasum": ""
},
"require": {
"php": "^7.0|^8.0"
},
"require-dev": {
"fakerphp/faker": "~1.12",
"phpunit/phpunit": "~9.3.8"
},
"type": "library",
"extra": {
"laravel": {
"providers": [
"Webpatser\\Uuid\\UuidServiceProvider"
],
"aliases": {
"Uuid": "Webpatser\\Uuid\\Uuid"
}
}
},
"autoload": {
"psr-4": {
"Webpatser\\Uuid\\": "src/Webpatser/Uuid/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Christoph Kempen",
"email": "christoph@downsized.nl"
}
],
"description": "Laravel package to generate and to validate a universally unique identifier (UUID) according to the RFC 4122 standard. Support for version 1, 3, 4 and 5 UUIDs are built-in.",
"homepage": "https://github.com/webpatser/laravel-uuid",
"keywords": [
"UUID RFC4122"
],
"support": {
"issues": "https://github.com/webpatser/laravel-uuid/issues",
"source": "https://github.com/webpatser/laravel-uuid"
},
"time": "2020-12-14T12:45:59+00:00"
} }
], ],
"packages-dev": [ "packages-dev": [
...@@ -7835,5 +8055,5 @@ ...@@ -7835,5 +8055,5 @@
"php": "^7.3" "php": "^7.3"
}, },
"platform-dev": [], "platform-dev": [],
"plugin-api-version": "2.0.0" "plugin-api-version": "2.1.0"
} }
...@@ -175,6 +175,9 @@ return [ ...@@ -175,6 +175,9 @@ return [
App\Providers\EventServiceProvider::class, App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class, App\Providers\RouteServiceProvider::class,
Collective\Html\HtmlServiceProvider::class,
RealRashid\SweetAlert\SweetAlertServiceProvider::class,
], ],
/* /*
...@@ -227,6 +230,9 @@ return [ ...@@ -227,6 +230,9 @@ return [
'Validator' => Illuminate\Support\Facades\Validator::class, 'Validator' => Illuminate\Support\Facades\Validator::class,
'View' => Illuminate\Support\Facades\View::class, 'View' => Illuminate\Support\Facades\View::class,
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
'Alert' => RealRashid\SweetAlert\Facades\Alert::class,
], ],
]; ];
<?php
return [
/*
|--------------------------------------------------------------------------
| CDN LINK
|--------------------------------------------------------------------------
| By default SweetAlert2 use its local sweetalert.all.js
| file.
| However, you can use its cdn if you want.
|
*/
'cdn' => env('SWEET_ALERT_CDN'),
/*
|--------------------------------------------------------------------------
| Always load the sweetalert.all.js
|--------------------------------------------------------------------------
| There might be situations where you will always want the sweet alert
| js package to be there for you. (for eg. you might use it heavily to
| show notifications or you might want to use the native js) then this
| might be handy.
|
*/
'alwaysLoadJS' => env('SWEET_ALERT_ALWAYS_LOAD_JS', false),
/*
|--------------------------------------------------------------------------
| Never load the sweetalert.all.js
|--------------------------------------------------------------------------
| If you want to handle the sweet alert js package by yourself
| (for eg. you might want to use laravel mix) then this can be
| handy.
| If you set always load js to true & never load js to false,
| it's going to prioritize the never load js.
|
| alwaysLoadJs = true & neverLoadJs = true => js will not be loaded
| alwaysLoadJs = true & neverLoadJs = false => js will be loaded
| alwaysLoadJs = false & neverLoadJs = false => js will be loaded when
| you set alert/toast by using the facade/helper functions.
*/
'neverLoadJS' => env('SWEET_ALERT_NEVER_LOAD_JS', false),
/*
|--------------------------------------------------------------------------
| AutoClose Timer
|--------------------------------------------------------------------------
|
| This is for the all Modal windows.
| For specific modal just use the autoClose() helper method.
|
*/
'timer' => env('SWEET_ALERT_TIMER', 5000),
/*
|--------------------------------------------------------------------------
| Width
|--------------------------------------------------------------------------
|
| Modal window width, including paddings (box-sizing: border-box).
| Can be in px or %.
| The default width is 32rem.
| This is for the all Modal windows.
| for particular modal just use the width() helper method.
*/
'width' => env('SWEET_ALERT_WIDTH', '32rem'),
/*
|--------------------------------------------------------------------------
| Height Auto
|--------------------------------------------------------------------------
| By default, SweetAlert2 sets html's and body's CSS height to auto !important.
| If this behavior isn't compatible with your project's layout,
| set heightAuto to false.
|
*/
'height_auto' => env('SWEET_ALERT_HEIGHT_AUTO', true),
/*
|--------------------------------------------------------------------------
| Padding
|--------------------------------------------------------------------------
|
| Modal window padding.
| Can be in px or %.
| The default padding is 1.25rem.
| This is for the all Modal windows.
| for particular modal just use the padding() helper method.
*/
'padding' => env('SWEET_ALERT_PADDING', '1.25rem'),
/*
|--------------------------------------------------------------------------
| Animation
|--------------------------------------------------------------------------
| Custom animation with [Animate.css](https://daneden.github.io/animate.css/)
| If set to false, modal CSS animation will be use default ones.
| For specific modal just use the animation() helper method.
|
*/
'animation' => [
'enable' => env('SWEET_ALERT_ANIMATION_ENABLE', false),
],
'animatecss' => env('SWEET_ALERT_ANIMATECSS', 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css'),
/*
|--------------------------------------------------------------------------
| ShowConfirmButton
|--------------------------------------------------------------------------
| If set to false, a "Confirm"-button will not be shown.
| It can be useful when you're using custom HTML description.
| This is for the all Modal windows.
| For specific modal just use the showConfirmButton() helper method.
|
*/
'show_confirm_button' => env('SWEET_ALERT_CONFIRM_BUTTON', true),
/*
|--------------------------------------------------------------------------
| ShowCloseButton
|--------------------------------------------------------------------------
| If set to true, a "Close"-button will be shown,
| which the user can click on to dismiss the modal.
| This is for the all Modal windows.
| For specific modal just use the showCloseButton() helper method.
|
*/
'show_close_button' => env('SWEET_ALERT_CLOSE_BUTTON', false),
/*
|--------------------------------------------------------------------------
| Toast position
|--------------------------------------------------------------------------
| Modal window or toast position, can be 'top',
| 'top-start', 'top-end', 'center', 'center-start',
| 'center-end', 'bottom', 'bottom-start', or 'bottom-end'.
| For specific modal just use the position() helper method.
|
*/
'toast_position' => env('SWEET_ALERT_TOAST_POSITION', 'top-end'),
/*
|--------------------------------------------------------------------------
| Progress Bar
|--------------------------------------------------------------------------
| If set to true, a progress bar at the bottom of a popup will be shown.
| It can be useful with toasts.
|
*/
'timer_progress_bar' => env('SWEET_ALERT_TIMER_PROGRESS_BAR', false),
/*
|--------------------------------------------------------------------------
| Middleware
|--------------------------------------------------------------------------
| Modal window or toast, config for the Middleware
|
*/
'middleware' => [
'autoClose' => env('SWEET_ALERT_MIDDLEWARE_AUTO_CLOSE', false),
'toast_position' => env('SWEET_ALERT_MIDDLEWARE_TOAST_POSITION', 'top-end'),
'toast_close_button' => env('SWEET_ALERT_MIDDLEWARE_TOAST_CLOSE_BUTTON', true),
'timer' => env('SWEET_ALERT_MIDDLEWARE_ALERT_CLOSE_TIME', 6000),
'auto_display_error_messages' => env('SWEET_ALERT_AUTO_DISPLAY_ERROR_MESSAGES', false),
],
/*
|--------------------------------------------------------------------------
| Custom Class
|--------------------------------------------------------------------------
| A custom CSS class for the modal:
|
*/
'customClass' => [
'container' => env('SWEET_ALERT_CONTAINER_CLASS'),
'popup' => env('SWEET_ALERT_POPUP_CLASS'),
'header' => env('SWEET_ALERT_HEADER_CLASS'),
'title' => env('SWEET_ALERT_TITLE_CLASS'),
'closeButton' => env('SWEET_ALERT_CLOSE_BUTTON_CLASS'),
'icon' => env('SWEET_ALERT_ICON_CLASS'),
'image' => env('SWEET_ALERT_IMAGE_CLASS'),
'content' => env('SWEET_ALERT_CONTENT_CLASS'),
'input' => env('SWEET_ALERT_INPUT_CLASS'),
'actions' => env('SWEET_ALERT_ACTIONS_CLASS'),
'confirmButton' => env('SWEET_ALERT_CONFIRM_BUTTON_CLASS'),
'cancelButton' => env('SWEET_ALERT_CANCEL_BUTTON_CLASS'),
'footer' => env('SWEET_ALERT_FOOTER_CLASS'),
],
];
!function(t){"use strict";function s(){for(var e=document.getElementById("topnav-menu-content").getElementsByTagName("a"),t=0,n=e.length;t<n;t++)"nav-item dropdown active"===e[t].parentElement.getAttribute("class")&&(e[t].parentElement.classList.remove("active"),e[t].nextElementSibling.classList.remove("show"))}function n(e){1==t("#light-mode-switch").prop("checked")&&"light-mode-switch"===e?(t("html").removeAttr("dir"),t("#dark-mode-switch").prop("checked",!1),t("#rtl-mode-switch").prop("checked",!1),t("#bootstrap-style").attr("href","assets/css/bootstrap.min.css"),t("#app-style").attr("href","assets/css/app.min.css"),sessionStorage.setItem("is_visited","light-mode-switch")):1==t("#dark-mode-switch").prop("checked")&&"dark-mode-switch"===e?(t("html").removeAttr("dir"),t("#light-mode-switch").prop("checked",!1),t("#rtl-mode-switch").prop("checked",!1),t("#bootstrap-style").attr("href","assets/css/bootstrap-dark.min.css"),t("#app-style").attr("href","assets/css/app-dark.min.css"),sessionStorage.setItem("is_visited","dark-mode-switch")):1==t("#rtl-mode-switch").prop("checked")&&"rtl-mode-switch"===e&&(t("#light-mode-switch").prop("checked",!1),t("#dark-mode-switch").prop("checked",!1),t("#bootstrap-style").attr("href","assets/css/bootstrap-rtl.min.css"),t("#app-style").attr("href","assets/css/app-rtl.min.css"),t("html").attr("dir","rtl"),sessionStorage.setItem("is_visited","rtl-mode-switch"))}function e(){document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement||(console.log("pressed"),t("body").removeClass("fullscreen-enable"))}var a;t("#side-menu").metisMenu(),t("#vertical-menu-btn").on("click",function(e){e.preventDefault(),t("body").toggleClass("sidebar-enable"),992<=t(window).width()?t("body").toggleClass("vertical-collpsed"):t("body").removeClass("vertical-collpsed")}),t("#sidebar-menu a").each(function(){var e=window.location.href.split(/[?#]/)[0];this.href==e&&(t(this).addClass("active"),t(this).parent().addClass("mm-active"),t(this).parent().parent().addClass("mm-show"),t(this).parent().parent().prev().addClass("mm-active"),t(this).parent().parent().parent().addClass("mm-active"),t(this).parent().parent().parent().parent().addClass("mm-show"),t(this).parent().parent().parent().parent().parent().addClass("mm-active"))}),t(".navbar-nav a").each(function(){var e=window.location.href.split(/[?#]/)[0];this.href==e&&(t(this).addClass("active"),t(this).parent().addClass("active"),t(this).parent().parent().addClass("active"),t(this).parent().parent().parent().addClass("active"),t(this).parent().parent().parent().parent().addClass("active"),t(this).parent().parent().parent().parent().parent().addClass("active"))}),t(document).ready(function(){var e;0<t("#sidebar-menu").length&&0<t("#sidebar-menu .mm-active .active").length&&(300<(e=t("#sidebar-menu .mm-active .active").offset().top)&&(e-=300,t(".vertical-menu .simplebar-content-wrapper").animate({scrollTop:e},"slow")))}),t('[data-bs-toggle="fullscreen"]').on("click",function(e){e.preventDefault(),t("body").toggleClass("fullscreen-enable"),document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement?document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen():document.documentElement.requestFullscreen?document.documentElement.requestFullscreen():document.documentElement.mozRequestFullScreen?document.documentElement.mozRequestFullScreen():document.documentElement.webkitRequestFullscreen&&document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}),document.addEventListener("fullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),document.addEventListener("mozfullscreenchange",e),t(".right-bar-toggle").on("click",function(e){t("body").toggleClass("right-bar-enabled")}),t(document).on("click","body",function(e){0<t(e.target).closest(".right-bar-toggle, .right-bar").length||t("body").removeClass("right-bar-enabled")}),function(){if(document.getElementById("topnav-menu-content")){for(var e=document.getElementById("topnav-menu-content").getElementsByTagName("a"),t=0,n=e.length;t<n;t++)e[t].onclick=function(e){"#"===e.target.getAttribute("href")&&(e.target.parentElement.classList.toggle("active"),e.target.nextElementSibling.classList.toggle("show"))};window.addEventListener("resize",s)}}(),t(function(){t('[data-bs-toggle="tooltip"]').tooltip()}),t(function(){t('[data-bs-toggle="popover"]').popover()}),window.sessionStorage&&((a=sessionStorage.getItem("is_visited"))?(t(".right-bar input:checkbox").prop("checked",!1),t("#"+a).prop("checked",!0),n(a)):sessionStorage.setItem("is_visited","light-mode-switch")),t("#light-mode-switch, #dark-mode-switch, #rtl-mode-switch").on("change",function(e){n(e.target.id)}),t(window).on("load",function(){t("#status").fadeOut(),t("#preloader").delay(350).fadeOut("slow")}),Waves.init()}(jQuery); !function(t){"use strict";function s(){for(var e=document.getElementById("topnav-menu-content").getElementsByTagName("a"),t=0,n=e.length;t<n;t++)"nav-item dropdown active"===e[t].parentElement.getAttribute("class")&&(e[t].parentElement.classList.remove("active"),e[t].nextElementSibling.classList.remove("show"))}function n(e){1==t("#light-mode-switch").prop("checked")&&"light-mode-switch"===e?(t("html").removeAttr("dir"),t("#dark-mode-switch").prop("checked",!1),t("#rtl-mode-switch").prop("checked",!1),t("#bootstrap-style").attr("href",globalUrl+"theme/css/bootstrap.min.css"),t("#app-style").attr("href",globalUrl+"theme/css/app.min.css"),sessionStorage.setItem("is_visited","light-mode-switch")):1==t("#dark-mode-switch").prop("checked")&&"dark-mode-switch"===e?(t("html").removeAttr("dir"),t("#light-mode-switch").prop("checked",!1),t("#rtl-mode-switch").prop("checked",!1),t("#bootstrap-style").attr("href",globalUrl+"theme/css/bootstrap-dark.min.css"),t("#app-style").attr("href",globalUrl+"theme/css/app-dark.min.css"),sessionStorage.setItem("is_visited","dark-mode-switch")):1==t("#rtl-mode-switch").prop("checked")&&"rtl-mode-switch"===e&&(t("#light-mode-switch").prop("checked",!1),t("#dark-mode-switch").prop("checked",!1),t("#bootstrap-style").attr("href",globalUrl+"theme/css/bootstrap-rtl.min.css"),t("#app-style").attr("href",globalUrl+"theme/css/app-rtl.min.css"),t("html").attr("dir","rtl"),sessionStorage.setItem("is_visited","rtl-mode-switch"))}function e(){document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement||(console.log("pressed"),t("body").removeClass("fullscreen-enable"))}var a;t("#side-menu").metisMenu(),t("#vertical-menu-btn").on("click",function(e){e.preventDefault(),t("body").toggleClass("sidebar-enable"),992<=t(window).width()?t("body").toggleClass("vertical-collpsed"):t("body").removeClass("vertical-collpsed")}),t("#sidebar-menu a").each(function(){var e=window.location.href.split(/[?#]/)[0];this.href==e&&(t(this).addClass("active"),t(this).parent().addClass("mm-active"),t(this).parent().parent().addClass("mm-show"),t(this).parent().parent().prev().addClass("mm-active"),t(this).parent().parent().parent().addClass("mm-active"),t(this).parent().parent().parent().parent().addClass("mm-show"),t(this).parent().parent().parent().parent().parent().addClass("mm-active"))}),t(".navbar-nav a").each(function(){var e=window.location.href.split(/[?#]/)[0];this.href==e&&(t(this).addClass("active"),t(this).parent().addClass("active"),t(this).parent().parent().addClass("active"),t(this).parent().parent().parent().addClass("active"),t(this).parent().parent().parent().parent().addClass("active"),t(this).parent().parent().parent().parent().parent().addClass("active"))}),t(document).ready(function(){var e;0<t("#sidebar-menu").length&&0<t("#sidebar-menu .mm-active .active").length&&(300<(e=t("#sidebar-menu .mm-active .active").offset().top)&&(e-=300,t(".vertical-menu .simplebar-content-wrapper").animate({scrollTop:e},"slow")))}),t('[data-bs-toggle="fullscreen"]').on("click",function(e){e.preventDefault(),t("body").toggleClass("fullscreen-enable"),document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement?document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen():document.documentElement.requestFullscreen?document.documentElement.requestFullscreen():document.documentElement.mozRequestFullScreen?document.documentElement.mozRequestFullScreen():document.documentElement.webkitRequestFullscreen&&document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}),document.addEventListener("fullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),document.addEventListener("mozfullscreenchange",e),t(".right-bar-toggle").on("click",function(e){t("body").toggleClass("right-bar-enabled")}),t(document).on("click","body",function(e){0<t(e.target).closest(".right-bar-toggle, .right-bar").length||t("body").removeClass("right-bar-enabled")}),function(){if(document.getElementById("topnav-menu-content")){for(var e=document.getElementById("topnav-menu-content").getElementsByTagName("a"),t=0,n=e.length;t<n;t++)e[t].onclick=function(e){"#"===e.target.getAttribute("href")&&(e.target.parentElement.classList.toggle("active"),e.target.nextElementSibling.classList.toggle("show"))};window.addEventListener("resize",s)}}(),t(function(){t('[data-bs-toggle="tooltip"]').tooltip()}),t(function(){t('[data-bs-toggle="popover"]').popover()}),window.sessionStorage&&((a=sessionStorage.getItem("is_visited"))?(t(".right-bar input:checkbox").prop("checked",!1),t("#"+a).prop("checked",!0),n(a)):sessionStorage.setItem("is_visited","light-mode-switch")),t("#light-mode-switch, #dark-mode-switch, #rtl-mode-switch").on("change",function(e){n(e.target.id)}),t(window).on("load",function(){t("#status").fadeOut(),t("#preloader").delay(350).fadeOut("slow")}),Waves.init()}(jQuery);
\ No newline at end of file
@extends('layouts.master')
@section('title')
Dashboard
@endsection
@section('header')
<div class="page-title">
<h3>Dashboard</h3>
</div>
@endsection
@section('contents')
<!-- start page title -->
<div class="page-title-box">
<div class="row align-items-center">
<div class="col-md-8">
<h6 class="page-title">{!! $title !!}</h6>
<ol class="breadcrumb m-0">
<li class="breadcrumb-item">Setting</li>
<li class="breadcrumb-item">{!! $title !!}</li>
</ol>
</div>
<div class="col-md-4">
<div class="float-end d-none d-md-block">
<button class="btn btn-primary waves-effect waves-light"> <i class="fas fa-plus-circle"></i> Edit Jadwal</button>
</div>
</div>
</div>
</div>
<!-- end page title -->
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<table id="example" class="table table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>Nama Kegiatan</th>
<th>Tanggal Mulai</th>
<th>Tanggal Selesai</th>
</tr>
</thead>
<tbody>
@foreach ($data['jadwal_kegiatan'] as $item => $val)
<tr>
<td>{{ $val->nama }}</td>
<td>
<div class="input-group">
<input type="text" class="form-control" placeholder="dd-mm-yyyy"
data-date-format="dd-mm-yyyy" data-date-container='#datepicker2' data-provide="datepicker"
data-date-autoclose="true">
<span class="input-group-text"><i class="mdi mdi-calendar"></i></span>
</div>
</td>
<td>
<div class="input-group">
<input type="text" class="form-control" placeholder="dd-mm-yyyy"
data-date-format="dd-mm-yyyy" data-date-container='#datepicker2' data-provide="datepicker"
data-date-autoclose="true">
<span class="input-group-text"><i class="mdi mdi-calendar"></i></span>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div> <!-- end col -->
</div> <!-- end row -->
@endsection
@section('js')
<script>
</script>
@endsection
@extends('layouts.master')
@section('title')
Dashboard
@endsection
@section('header')
<div class="page-title">
<h3>Dashboard</h3>
</div>
@endsection
@section('contents')
<!-- start page title -->
<div class="page-title-box">
<div class="row align-items-center">
<div class="col-md-8">
<h6 class="page-title">{!! $title !!}</h6>
<ol class="breadcrumb m-0">
<li class="breadcrumb-item">Setting</li>
<li class="breadcrumb-item"><a href="{{ URL::to('jenis') }}">Jenis PKM</a></li>
<li class="breadcrumb-item">{!! $title !!}</li>
</ol>
</div>
</div>
</div>
<!-- end page title -->
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
{!! Form::open(array('url' => route('jenis.store'), 'method' => 'POST', 'id' => 'ff', 'class' => 'form-horizontal')) !!}
{!! csrf_field() !!}
<div class="row mb-3">
<label for="example-text-input" class="col-sm-2 col-form-label">Jenis PKM</label>
<div class="col-sm-10">
{{ Form::text('nama', old('nama'), array('class' => 'form-control', 'placeholder' => 'Masukkan Jenis PKM')) }}
@if ($errors->has('nama'))
<span class="help-block">{{$errors->first('nama')}}</span>
@endif
</div>
</div>
<div class="row mb-3">
<label for="example-search-input" class="col-sm-2 col-form-label">Deskripsi</label>
<div class="col-sm-10">
{{ Form::textarea('keterangan', old('keterangan'), array('class' => 'form-control', 'id' => 'keterangan', 'data-info' => 'keterangan')) }}
@if ($errors->has('keterangan'))
<span class="help-block">{{$errors->first('keterangan')}}</span>
@endif
</div>
</div>
<div class="mb-0">
<div>
<button type="submit" class="btn btn-primary waves-effect waves-light me-1">
Submit
</button>
<button type="reset" class="btn btn-secondary waves-effect">
Cancel
</button>
</div>
</div>
</form>
</div>
</div>
</div> <!-- end col -->
</div> <!-- end row -->
@endsection
@section('js')
<script>
</script>
@endsection
@extends('layouts.master')
@section('title')
Dashboard
@endsection
@section('header')
<div class="page-title">
<h3>Dashboard</h3>
</div>
@endsection
@php
$jenis = $data['jenis']['0'];
$id = $jenis->jenis_id;
@endphp
@section('contents')
<!-- start page title -->
<div class="page-title-box">
<div class="row align-items-center">
<div class="col-md-8">
<h6 class="page-title">{!! $title !!}</h6>
<ol class="breadcrumb m-0">
<li class="breadcrumb-item">Setting</li>
<li class="breadcrumb-item"><a href="{{ URL::to('jenis') }}">Jenis PKM</a></li>
<li class="breadcrumb-item">{!! $title !!}</li>
</ol>
</div>
</div>
</div>
<!-- end page title -->
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
{!! Form::model($jenis, ['route' => ['jenis.update', $id], 'method'=>'patch', 'class'=>'form-horizontal']) !!}
{!! csrf_field() !!}
<div class="row mb-3">
<label for="example-text-input" class="col-sm-2 col-form-label">Jenis PKM</label>
<div class="col-sm-10">
{{ Form::text('nama', null, array('class' => 'form-control', 'placeholder' => 'Masukkan Jenis PKM')) }}
@if ($errors->has('nama'))
<span class="help-block">{{$errors->first('nama')}}</span>
@endif
</div>
</div>
<div class="row mb-3">
<label for="example-search-input" class="col-sm-2 col-form-label">Deskripsi</label>
<div class="col-sm-10">
{{ Form::textarea('keterangan', null, array('class' => 'form-control', 'id' => 'keterangan', 'data-info' => 'keterangan')) }}
@if ($errors->has('keterangan'))
<span class="help-block">{{$errors->first('keterangan')}}</span>
@endif
</div>
</div>
<div class="mb-0">
<div>
<button type="submit" class="btn btn-primary waves-effect waves-light me-1">
Submit
</button>
<button type="reset" class="btn btn-secondary waves-effect">
Cancel
</button>
</div>
</div>
</form>
</div>
</div>
</div> <!-- end col -->
</div> <!-- end row -->
@endsection
@section('js')
<script>
</script>
@endsection
@extends('layouts.master')
@section('title')
Dashboard
@endsection
@section('header')
<div class="page-title">
<h3>Dashboard</h3>
</div>
@endsection
@section('contents')
<!-- start page title -->
<div class="page-title-box">
<div class="row align-items-center">
<div class="col-md-8">
<h6 class="page-title">{!! $title !!}</h6>
<ol class="breadcrumb m-0">
<li class="breadcrumb-item">Setting</li>
<li class="breadcrumb-item">{!! $title !!}</li>
</ol>
</div>
<div class="col-md-4">
<div class="float-end d-none d-md-block">
<a href="{{ URL::to('jenis/create') }}" type="button" class="btn btn-primary waves-effect waves-light"> <i class="fas fa-plus-circle"></i> Tambah Data</a>
</div>
</div>
</div>
</div>
<!-- end page title -->
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<table id="example" class="table table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>id</th>
<th>Jenis PKM</th>
<th>Deskripsi</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div> <!-- end col -->
</div> <!-- end row -->
@endsection
@section('js')
<script>
$(document).ready(function(){
// DataTable
var oTable = $('#example').DataTable({
processing: true,
serverSide: true,
ajax: {
"url" : "{{route('getJenis')}}"
},
columns: [
{ data: 'jenis_id' },
{ data: 'nama' },
{ data: 'keterangan' },
{ data: 'aksi' },
],
columnDefs: [
{
"targets": [ 0 ],
"visible": false,
"searchable": false
}
]
});
});
function confirmDelete(reqId)
{
Swal.fire({
title: "Apakah Anda Yakin?",
text: "Anda akan menghapus data ini!",
icon: "warning",
showCancelButton: !0,
confirmButtonText: "Ya, Hapus data!",
cancelButtonText: "Tidak, Kembali!",
confirmButtonClass: "btn btn-success mt-2",
cancelButtonClass: "btn btn-danger ms-2 mt-2",
buttonsStyling: !1,
allowOutsideClick: !1,
showLoaderOnConfirm: true
}).then((result) => {
if (result.value){
$.ajax({
url:'{{url("/jenis/")}}/' +reqId,
type:'DELETE',
data:{
"_token": "{{ csrf_token() }}",
},
dataType: "JSON",
})
.done(function(response){
swal.fire('Deleted!', response.message, response.status).then(function(){
location.reload();
});
})
.fail(function(){
swal.fire('Oops...', 'Something went wrong with ajax !', 'error');
});
}
else
{
swal.fire('Batal!', 'Data batal dihapus.', 'error');
}
})
}
// }).then(function(t) {
// t.value ? Swal.fire({
// icon: "success",
// title: "Sukses!",
// text: "Data berhasil dihapus.",
// type: "success"
// }) : t.dismiss === Swal.DismissReason.cancel && Swal.fire({
// icon: "error",
// title: "Batal!",
// text: "Data batal dihapus.",
// type: "error"
// })
// });
// }
// function confirmDelete(reqId) {
// swal({
// title: "Apakah Anda Yakin?",
// text: "Anda akan menghapus data ini!",
// icon: "warning",
// buttons: true,
// dangerMode: true,
// })
// .then((willDelete) => {
// if (willDelete) {
// $.ajax({
// type:'DELETE',
// url:'{{url("/jenis/")}}/' +reqId,
// data:{
// "_token": "{{ csrf_token() }}",
// },
// dataType: "JSON",
// success: function (result) {
// // console.log(result);
// swal("Sukses!", "Data berhasil dihapus.", "success").then(function(){
// location.reload();
// });
// },
// error: function (xhr, ajaxOptions, thrownError) {
// swal("Error!", "Data gagal dihapus.", "error").then(function(){
// location.reload();
// });
// }
// });
// // document.location.reload();
// } else {
// swal("Data batal dihapus.", {
// icon: "error",
// });
// }
// });
// };
</script>
@endsection
@extends('layouts.master')
@section('title')
Dashboard
@endsection
@section('header')
<div class="page-title">
<h3>Dashboard</h3>
</div>
@endsection
@php
$jenis = $data['jenis']['0'];
$id = $jenis->jenis_id;
$penilaian_monev = $data['penilaian_monev'];
@endphp
@section('contents')
<!-- start page title -->
<div class="page-title-box">
<div class="row align-items-center">
<div class="col-md-8">
<h6 class="page-title">{!! $title !!}</h6>
<ol class="breadcrumb m-0">
<li class="breadcrumb-item">Setting</li>
<li class="breadcrumb-item"><a href="{{ URL::to('penilaian_monev') }}">Penilaian Monev Internal</a></li>
<li class="breadcrumb-item">{!! $title !!}</li>
</ol>
</div>
</div>
</div>
<!-- end page title -->
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
{!! Form::model($jenis, ['route' => ['penilaian_monev.update', $id], 'method'=>'patch', 'class'=>'form-horizontal']) !!}
{!! csrf_field() !!}
<div class="row mb-3">
<label for="example-text-input" class="col-sm-2 col-form-label">Jenis PKM </label>
<div class="col-sm-10">
<label for="example-text-input" class="col-sm-2 col-form-label">: {{ $jenis->nama }}</label>
</div>
</div>
<div class="row mb-3">
<label for="example-text-input" class="col-sm-2 col-form-label">Komponen Penilaian </label>
<div class="col-sm-10">
<label for="example-text-input" class="col-sm-2 col-form-label">: </label>
<div class="float-end d-none d-md-block">
<a href="javascript:void(0)" onclick="createRow()" type="button" class="btn btn-warning waves-effect waves-light btn-sm"> <i class="fas fa-plus-circle"></i> Tambah Komponen</a>
</div>
</div>
</div>
<div class="table-responsive">
<table class="table table-hover table-centered table-nowrap mb-0" id="tbData">
<thead>
<tr>
<th scope="col" width="75%">Komponen</th>
<th scope="col" width="10%">Bobot</th>
<th scope="col" width="15%">Aksi</th>
</tr>
</thead>
<tbody>
@if(count($penilaian_monev) > 0)
@foreach ($penilaian_monev as $key => $val)
<tr>
<td>
<input type="text" class="form-control" name="nama[]" required value="{{ $val->nama }}">
</td>
<td>
<input class="form-control input-mask reqBobot" data-inputmask="'mask': '9', 'repeat': 3, 'greedy' : false" name="bobot[]" maxlength="3" value="{{ $val->bobot }}">
</td>
<td>
<a onclick="$(this).parent().parent().remove();" class="btn btn-danger btn-sm btn-delete">Delete</a>
</td>
</tr>
@endforeach
@else
<tr>
<td>
<input type="text" class="form-control" name="nama[]" required>
</td>
<td>
<input class="form-control input-mask reqBobot" data-inputmask="'mask': '9', 'repeat': 3, 'greedy' : false" name="bobot[]" maxlength="3">
</td>
<td>
<a onclick="$(this).parent().parent().remove();" class="btn btn-danger btn-sm btn-delete">Delete</a>
</td>
</tr>
@endif
</tbody>
<tfoot>
<tr>
<td style="text-align: right">
<label>TOTAL BOBOT <span class="badge bg-info">(total bobot harus 100)</span></label>
</td>
<td>
<input class="form-control reqBobotTotal" readonly>
</td>
<td>
</td>
</tr>
</tfoot>
</table>
</div>
<div class="mt-3">
<div>
<button type="submit" class="btn btn-primary waves-effect waves-light me-1" style="display: none" id="btnSubmit">
Submit
</button>
<a href="javascript:void(0)" class="btn btn-primary" onclick="submitForm()">Submit</a>
<button type="reset" class="btn btn-secondary waves-effect">
Cancel
</button>
</div>
</div>
</form>
</div>
</div>
</div> <!-- end col -->
</div> <!-- end row -->
@endsection
@section('js')
<script>
$(document).ready(function()
{
hitung();
$(".input-mask").inputmask('integer',{min:1, max:100});
$(".input-mask").maxlength({
alwaysShow: !0,
warningClass: "badge bg-success",
limitReachedClass: "badge bg-danger",
separator: " / ",
validate: !0
});
});
$(document).on("keyup", ".reqBobot", function() {
hitung();
});
$(document).on('click','.btn-delete', function(){
hitung();
});
function createRow()
{
$(function () {
$.get("{{URL::to('rowPenilaianMonev')}}", function (data) {
$("#tbData").append(data);
});
});
}
function submitForm()
{
var sum = hitung();
if(sum != '100')
{
Swal.fire({
title: "Gagal",
text: "Total Bobot harus 100",
icon: "error",
confirmButtonColor: "#556ee6"
});
}
else
{
$('#btnSubmit').click();
}
}
function hitung()
{
var sum = 0;
$(".reqBobot").each(function(){
sum += +$(this).val();
});
$(".reqBobotTotal").val(sum);
return sum;
}
</script>
@endsection
@extends('layouts.master')
@section('title')
Dashboard
@endsection
@section('header')
<div class="page-title">
<h3>Dashboard</h3>
</div>
@endsection
@section('contents')
<!-- start page title -->
<div class="page-title-box">
<div class="row align-items-center">
<div class="col-md-8">
<h6 class="page-title">{!! $title !!}</h6>
<ol class="breadcrumb m-0">
<li class="breadcrumb-item">Setting</li>
<li class="breadcrumb-item">{!! $title !!}</li>
</ol>
</div>
<div class="col-md-4">
<div class="float-end d-none d-md-block">
<a href="{{ URL::to('jenis/create') }}" type="button" class="btn btn-primary waves-effect waves-light"> <i class="fas fa-plus-circle"></i> Tambah Data</a>
</div>
</div>
</div>
</div>
<!-- end page title -->
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<table id="example" class="table table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>id</th>
<th>Jenis PKM</th>
<th>Deskripsi</th>
<th>Jumlah Komponen</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div> <!-- end col -->
</div> <!-- end row -->
@endsection
@section('js')
<script>
$(document).ready(function(){
// DataTable
var oTable = $('#example').DataTable({
processing: true,
serverSide: true,
ajax: {
"url" : "{{route('getPenilaianMonev')}}"
},
columns: [
{ data: 'jenis_id' },
{ data: 'nama' },
{ data: 'keterangan' },
{ data: 'jumlah_komponen' },
{ data: 'aksi' },
],
columnDefs: [
{
"targets": [ 0 ],
"visible": false,
"searchable": false
}
]
});
});
function confirmDelete(reqId)
{
Swal.fire({
title: "Apakah Anda Yakin?",
text: "Anda akan menghapus data ini!",
icon: "warning",
showCancelButton: !0,
confirmButtonText: "Ya, Hapus data!",
cancelButtonText: "Tidak, Kembali!",
confirmButtonClass: "btn btn-success mt-2",
cancelButtonClass: "btn btn-danger ms-2 mt-2",
buttonsStyling: !1,
allowOutsideClick: !1,
showLoaderOnConfirm: true
}).then((result) => {
if (result.value){
$.ajax({
url:'{{url("/jenis/")}}/' +reqId,
type:'DELETE',
data:{
"_token": "{{ csrf_token() }}",
},
dataType: "JSON",
})
.done(function(response){
swal.fire('Deleted!', response.message, response.status).then(function(){
location.reload();
});
})
.fail(function(){
swal.fire('Oops...', 'Something went wrong with ajax !', 'error');
});
}
else
{
swal.fire('Batal!', 'Data batal dihapus.', 'error');
}
})
}
// }).then(function(t) {
// t.value ? Swal.fire({
// icon: "success",
// title: "Sukses!",
// text: "Data berhasil dihapus.",
// type: "success"
// }) : t.dismiss === Swal.DismissReason.cancel && Swal.fire({
// icon: "error",
// title: "Batal!",
// text: "Data batal dihapus.",
// type: "error"
// })
// });
// }
// function confirmDelete(reqId) {
// swal({
// title: "Apakah Anda Yakin?",
// text: "Anda akan menghapus data ini!",
// icon: "warning",
// buttons: true,
// dangerMode: true,
// })
// .then((willDelete) => {
// if (willDelete) {
// $.ajax({
// type:'DELETE',
// url:'{{url("/jenis/")}}/' +reqId,
// data:{
// "_token": "{{ csrf_token() }}",
// },
// dataType: "JSON",
// success: function (result) {
// // console.log(result);
// swal("Sukses!", "Data berhasil dihapus.", "success").then(function(){
// location.reload();
// });
// },
// error: function (xhr, ajaxOptions, thrownError) {
// swal("Error!", "Data gagal dihapus.", "error").then(function(){
// location.reload();
// });
// }
// });
// // document.location.reload();
// } else {
// swal("Data batal dihapus.", {
// icon: "error",
// });
// }
// });
// };
</script>
@endsection
<tr>
<td>
<script>
$(".input-mask").inputmask('integer',{min:1, max:100});
$(".input-mask").maxlength({
alwaysShow: !0,
warningClass: "badge bg-success",
limitReachedClass: "badge bg-danger",
separator: " / ",
validate: !0
});
</script>
<input type="text" class="form-control" name="nama[]" required>
</td>
<td>
<input class="form-control input-mask reqBobot" data-inputmask="'mask': '9', 'repeat': 3, 'greedy' : false" name="bobot[]" maxlength="3">
</td>
<td>
<a onclick="$(this).parent().parent().remove();" class="btn btn-danger btn-sm btn-delete">Delete</a>
</td>
</tr>
...@@ -9,15 +9,26 @@ ...@@ -9,15 +9,26 @@
<meta content="Premium Multipurpose Admin & Dashboard Template" name="description"> <meta content="Premium Multipurpose Admin & Dashboard Template" name="description">
<meta content="Themesbrand" name="author"> <meta content="Themesbrand" name="author">
<!-- App favicon --> <!-- App favicon -->
<link rel="shortcut icon" href="{{ url('theme/images/favicon.ico') }}"> <link rel="shortcut icon" href="{{ asset('theme/images/favicon.ico') }}">
<link href="{{ url('theme/libs/chartist/chartist.min.css') }}" rel="stylesheet">
<link href="{{ asset('theme/libs/chartist/chartist.min.css') }}" rel="stylesheet">
<!-- DataTables -->
<link href="{{ asset('theme/libs/datatables.net-bs4/css/dataTables.bootstrap4.min.css') }}" rel="stylesheet" type="text/css">
<link href="{{ asset('theme/libs/datatables.net-buttons-bs4/css/buttons.bootstrap4.min.css') }}" rel="stylesheet" type="text/css">
<!-- Responsive datatable examples -->
<link href="{{ asset('theme/libs/datatables.net-responsive-bs4/css/responsive.bootstrap4.min.css') }}" rel="stylesheet" type="text/css">
<!-- Bootstrap Css --> <!-- Bootstrap Css -->
<link href="{{ url('theme/css/bootstrap.min.css') }}" id="bootstrap-style" rel="stylesheet" type="text/css"> <link href="{{ asset('theme/css/bootstrap.min.css') }}" id="bootstrap-style" rel="stylesheet" type="text/css">
<!-- Icons Css --> <!-- Icons Css -->
<link href="{{ url('theme/css/icons.min.css') }}" rel="stylesheet" type="text/css"> <link href="{{ asset('theme/css/icons.min.css') }}" rel="stylesheet" type="text/css">
<!-- App Css--> <!-- App Css-->
<link href="{{ url('theme/css/app.min.css') }}" id="app-style" rel="stylesheet" type="text/css"> <link href="{{ asset('theme/css/app.min.css') }}" id="app-style" rel="stylesheet" type="text/css">
<!-- Sweet Alert-->
<link href="{{ asset('theme/libs/sweetalert2/sweetalert2.min.css') }}" rel="stylesheet" type="text/css" />
</head> </head>
<!-- JAVASCRIPT --> <script>
<script src="{{ url('theme/libs/jquery/jquery.min.js') }}"></script> var globalUrl = "{{ asset('') }}";
<script src="{{ url('theme/libs/bootstrap/js/bootstrap.bundle.min.js') }}"></script> </script>
<script src="{{ url('theme/libs/metismenu/metisMenu.min.js') }}"></script>
<script src="{{ url('theme/libs/simplebar/simplebar.min.js') }}"></script>
<script src="{{ url('theme/libs/node-waves/waves.min.js') }}"></script>
<!-- JAVASCRIPT -->
<script src="{{ asset('theme/libs/jquery/jquery.min.js') }}"></script>
<script src="{{ asset('theme/libs/bootstrap/js/bootstrap.bundle.min.js') }}"></script>
<script src="{{ asset('theme/libs/metismenu/metisMenu.min.js') }}"></script>
<script src="{{ asset('theme/libs/simplebar/simplebar.min.js') }}"></script>
<script src="{{ asset('theme/libs/node-waves/waves.min.js') }}"></script>
<!-- Peity chart--> <!-- Peity chart-->
<script src="{{ url('theme/libs/peity/jquery.peity.min.js') }}"></script> <script src="{{ asset('theme/libs/peity/jquery.peity.min.js') }}"></script>
<!-- Plugin Js--> <!-- Plugin Js-->
<script src="{{ url('theme/libs/chartist/chartist.min.js') }}"></script> <script src="{{ asset('theme/libs/chartist/chartist.min.js') }}"></script>
<script src="{{ url('theme/libs/chartist-plugin-tooltips/chartist-plugin-tooltip.min.js') }}"></script> {{-- <script src="{{ asset('theme/libs/chartist-plugin-tooltips/chartist-plugin-tooltip.min.js') }}"></script> --}}
<script src="{{ url('theme/js/pages/dashboard.init.js') }}"></script> {{-- <script src="{{ asset('theme/js/pages/dashboard.init.js') }}"></script> --}}
<script src="{{ asset('theme/js/app.js') }}"></script>
<script src="{{ url('theme/js/app.js') }}"></script>
<!-- Required datatable js -->
<script src="{{ asset('theme/libs/datatables.net/js/jquery.dataTables.min.js') }}"></script>
<script src="{{ asset('theme/libs/datatables.net-bs4/js/dataTables.bootstrap4.min.js') }}"></script>
<!-- Buttons examples -->
<script src="{{ asset('theme/libs/datatables.net-buttons/js/dataTables.buttons.min.js') }}"></script>
<script src="{{ asset('theme/libs/datatables.net-buttons-bs4/js/buttons.bootstrap4.min.js') }}"></script>
<script src="{{ asset('theme/libs/jszip/jszip.min.js') }}"></script>
<script src="{{ asset('theme/libs/pdfmake/build/pdfmake.min.js') }}"></script>
<script src="{{ asset('theme/libs/pdfmake/build/vfs_fonts.js') }}"></script>
<script src="{{ asset('theme/libs/datatables.net-buttons/js/buttons.html5.min.js') }}"></script>
<script src="{{ asset('theme/libs/datatables.net-buttons/js/buttons.print.min.js') }}"></script>
<script src="{{ asset('theme/libs/datatables.net-buttons/js/buttons.colVis.min.js') }}"></script>
<!-- Responsive examples -->
<script src="{{ asset('theme/libs/datatables.net-responsive/js/dataTables.responsive.min.js') }}"></script>
<script src="{{ asset('theme/libs/datatables.net-responsive-bs4/js/responsive.bootstrap4.min.js') }}"></script>
{{-- <script src="{{ asset('theme/js/sweetalert.min.js') }}"></script> --}}
<script src="{{ asset('theme/libs/sweetalert2/sweetalert2.min.js') }}"></script>
<script src="{{ asset('theme/libs/inputmask/min/jquery.inputmask.bundle.min.js') }}"></script>
<script src="{{ asset('theme/libs/bootstrap-maxlength/bootstrap-maxlength.min.js') }}"></script>
<script src="{{ asset('theme/libs/bootstrap-datepicker/js/bootstrap-datepicker.min.js') }}"></script>
@php
/*
@endphp
<script src="{{ asset('theme/js/eModal.js') }}"></script>
<script>
function openPopup(linkUrl) {
eModal.iframe(linkUrl, 'Program Kreativitas Mahasiswa')
}
</script>
@php
*/
@endphp
@yield('js') @yield('js')
@include('sweetalert::alert')
...@@ -14,19 +14,19 @@ ...@@ -14,19 +14,19 @@
<div class="navbar-brand-box"> <div class="navbar-brand-box">
<a href="index.html" class="logo logo-dark"> <a href="index.html" class="logo logo-dark">
<span class="logo-sm"> <span class="logo-sm">
<img src="assets/images/logo-sm.png" alt="" height="22"> <img src="{{ asset('theme/images/logo-sm.png') }}" alt="" height="22">
</span> </span>
<span class="logo-lg"> <span class="logo-lg">
<img src="assets/images/logo-dark.png" alt="" height="17"> <img src="{{ asset('theme/images/logo-dark.png') }}" alt="" height="17">
</span> </span>
</a> </a>
<a href="index.html" class="logo logo-light"> <a href="index.html" class="logo logo-light">
<span class="logo-sm"> <span class="logo-sm">
<img src="assets/images/logo-sm.png" alt="" height="22"> <img src="{{ asset('theme/images/logo-sm.png') }}" alt="" height="22">
</span> </span>
<span class="logo-lg"> <span class="logo-lg">
<img src="assets/images/logo-light.png" alt="" height="18"> <img src="{{ asset('theme/images/logo-light.png') }}" alt="" height="18">
</span> </span>
</a> </a>
</div> </div>
...@@ -85,33 +85,33 @@ ...@@ -85,33 +85,33 @@
<div class="dropdown d-none d-md-block ms-2"> <div class="dropdown d-none d-md-block ms-2">
<button type="button" class="btn header-item waves-effect" <button type="button" class="btn header-item waves-effect"
data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<img class="me-2" src="assets/images/flags/us_flag.jpg" alt="Header Language" height="16"> English <span class="mdi mdi-chevron-down"></span> <img class="me-2" src="{{ asset('theme/images/flags/us_flag.jpg') }}" alt="Header Language" height="16"> English <span class="mdi mdi-chevron-down"></span>
</button> </button>
<div class="dropdown-menu dropdown-menu-end"> <div class="dropdown-menu dropdown-menu-end">
<!-- item--> <!-- item-->
<a href="javascript:void(0);" class="dropdown-item notify-item"> <a href="javascript:void(0);" class="dropdown-item notify-item">
<img src="assets/images/flags/germany_flag.jpg" alt="user-image" class="me-1" height="12"> <span class="align-middle"> German </span> <img src="{{ asset('theme/images/flags/germany_flag.jpg') }}" alt="user-image" class="me-1" height="12"> <span class="align-middle"> German </span>
</a> </a>
<!-- item--> <!-- item-->
<a href="javascript:void(0);" class="dropdown-item notify-item"> <a href="javascript:void(0);" class="dropdown-item notify-item">
<img src="assets/images/flags/italy_flag.jpg" alt="user-image" class="me-1" height="12"> <span class="align-middle"> Italian </span> <img src="{{ asset('theme/images/flags/italy_flag.jpg') }}" alt="user-image" class="me-1" height="12"> <span class="align-middle"> Italian </span>
</a> </a>
<!-- item--> <!-- item-->
<a href="javascript:void(0);" class="dropdown-item notify-item"> <a href="javascript:void(0);" class="dropdown-item notify-item">
<img src="assets/images/flags/french_flag.jpg" alt="user-image" class="me-1" height="12"> <span class="align-middle"> French </span> <img src="{{ asset('theme/images/flags/french_flag.jpg') }}" alt="user-image" class="me-1" height="12"> <span class="align-middle"> French </span>
</a> </a>
<!-- item--> <!-- item-->
<a href="javascript:void(0);" class="dropdown-item notify-item"> <a href="javascript:void(0);" class="dropdown-item notify-item">
<img src="assets/images/flags/spain_flag.jpg" alt="user-image" class="me-1" height="12"> <span class="align-middle"> Spanish </span> <img src="{{ asset('theme/images/flags/spain_flag.jpg') }}" alt="user-image" class="me-1" height="12"> <span class="align-middle"> Spanish </span>
</a> </a>
<!-- item--> <!-- item-->
<a href="javascript:void(0);" class="dropdown-item notify-item"> <a href="javascript:void(0);" class="dropdown-item notify-item">
<img src="assets/images/flags/russia_flag.jpg" alt="user-image" class="me-1" height="12"> <span class="align-middle"> Russian </span> <img src="{{ asset('theme/images/flags/russia_flag.jpg') }}" alt="user-image" class="me-1" height="12"> <span class="align-middle"> Russian </span>
</a> </a>
</div> </div>
</div> </div>
...@@ -240,7 +240,7 @@ ...@@ -240,7 +240,7 @@
<div class="dropdown d-inline-block"> <div class="dropdown d-inline-block">
<button type="button" class="btn header-item waves-effect" id="page-header-user-dropdown" <button type="button" class="btn header-item waves-effect" id="page-header-user-dropdown"
data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<img class="rounded-circle header-profile-user" src="assets/images/users/user-4.jpg" <img class="rounded-circle header-profile-user" src="{{ asset('theme/images/users/user-4.jpg') }}"
alt="Header Avatar"> alt="Header Avatar">
</button> </button>
<div class="dropdown-menu dropdown-menu-end"> <div class="dropdown-menu dropdown-menu-end">
...@@ -316,7 +316,7 @@ ...@@ -316,7 +316,7 @@
<div class="p-4"> <div class="p-4">
<div class="mb-2"> <div class="mb-2">
<img src="assets/images/layouts/layout-1.jpg" class="img-fluid img-thumbnail" alt=""> <img src="{{ asset('theme/images/layouts/layout-1.jpg') }}" class="img-fluid img-thumbnail" alt="">
</div> </div>
<div class="form-check form-switch mb-3"> <div class="form-check form-switch mb-3">
<input type="checkbox" class="form-check-input theme-choice" id="light-mode-switch" checked /> <input type="checkbox" class="form-check-input theme-choice" id="light-mode-switch" checked />
...@@ -324,7 +324,7 @@ ...@@ -324,7 +324,7 @@
</div> </div>
<div class="mb-2"> <div class="mb-2">
<img src="assets/images/layouts/layout-2.jpg" class="img-fluid img-thumbnail" alt=""> <img src="{{ asset('theme/images/layouts/layout-2.jpg') }}" class="img-fluid img-thumbnail" alt="">
</div> </div>
<div class="form-check form-switch mb-3"> <div class="form-check form-switch mb-3">
<input type="checkbox" class="form-check-input theme-choice" id="dark-mode-switch" data-bsStyle="assets/css/bootstrap-dark.min.css" <input type="checkbox" class="form-check-input theme-choice" id="dark-mode-switch" data-bsStyle="assets/css/bootstrap-dark.min.css"
...@@ -333,7 +333,7 @@ ...@@ -333,7 +333,7 @@
</div> </div>
<div class="mb-2"> <div class="mb-2">
<img src="assets/images/layouts/layout-3.jpg" class="img-fluid img-thumbnail" alt=""> <img src="{{ asset('theme/images/layouts/layout-3.jpg') }}" class="img-fluid img-thumbnail" alt="">
</div> </div>
<div class="form-check form-switch mb-5"> <div class="form-check form-switch mb-5">
<input type="checkbox" class="form-check-input theme-choice" id="rtl-mode-switch" data-appStyle="assets/css/app-rtl.min.css" /> <input type="checkbox" class="form-check-input theme-choice" id="rtl-mode-switch" data-appStyle="assets/css/app-rtl.min.css" />
......
...@@ -6,6 +6,46 @@ ...@@ -6,6 +6,46 @@
<div id="sidebar-menu"> <div id="sidebar-menu">
<!-- Left Menu Start --> <!-- Left Menu Start -->
<ul class="metismenu list-unstyled" id="side-menu"> <ul class="metismenu list-unstyled" id="side-menu">
<li class="menu-title">Setting</li>
<li class="{{ (request()->is('jenis*')) ? 'mm-active' : '' }}">
<a href="{{ URL::to('jenis') }}" class="waves-effect">
<i class="ti-home"></i>
<span>Jenis PKM</span>
</a>
</li>
<li class="{{ (request()->is('penilaian_monev*')) ? 'mm-active' : '' }}">
<a href="{{ URL::to('penilaian_monev') }}" class="waves-effect">
<i class="ti-home"></i>
<span>Penilaian Monev Internal</span>
</a>
</li>
<li class="{{ (request()->is('jadwal_kegiatan*')) ? 'mm-active' : '' }}">
<a href="{{ URL::to('jadwal_kegiatan') }}" class="waves-effect">
<i class="ti-home"></i>
<span>Jadwal Kegiatan</span>
</a>
</li>
<li>
<a href="calendar.html" class=" waves-effect">
<i class="ti-calendar"></i>
<span>Calendar</span>
</a>
</li>
<li>
<a href="javascript: void(0);" class="has-arrow waves-effect">
<i class="ti-email"></i>
<span>Email</span>
</a>
<ul class="sub-menu" aria-expanded="false">
<li><a href="email-inbox.html">Inbox</a></li>
<li><a href="email-read.html">Email Read</a></li>
<li><a href="email-compose.html">Email Compose</a></li>
</ul>
</li>
<li class="menu-title">Main</li> <li class="menu-title">Main</li>
<li> <li>
......
@if (config('sweetalert.alwaysLoadJS') === true && config('sweetalert.neverLoadJS') === false )
<script src="{{ $cdn ?? asset('vendor/sweetalert/sweetalert.all.js') }}"></script>
@endif
@if (Session::has('alert.config'))
@if(config('sweetalert.animation.enable'))
<link rel="stylesheet" href="{{ config('sweetalert.animatecss') }}">
@endif
@if (config('sweetalert.alwaysLoadJS') === false && config('sweetalert.neverLoadJS') === false)
<script src="{{ $cdn ?? asset('vendor/sweetalert/sweetalert.all.js') }}"></script>
@endif
<script>
Swal.fire({!! Session::pull('alert.config') !!});
</script>
@endif
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
@if (Route::has('login')) @if (Route::has('login'))
<div class="hidden fixed top-0 right-0 px-6 py-4 sm:block"> <div class="hidden fixed top-0 right-0 px-6 py-4 sm:block">
@auth @auth
<a href="{{ url('/home') }}" class="text-sm text-gray-700 underline">Home</a> <a href="{{ asset('/home') }}" class="text-sm text-gray-700 underline">Home</a>
@else @else
<a href="{{ route('login') }}" class="text-sm text-gray-700 underline">Login</a> <a href="{{ route('login') }}" class="text-sm text-gray-700 underline">Login</a>
......
<?php <?php
use Illuminate\Support\Facades\Route; use Illuminate\Support\Facades\Route;
use App\Http\Controllers\JenisController;
use App\Http\Controllers\PenilaianMonevController;
use App\Http\Controllers\JadwalKegiatanController;
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
...@@ -16,3 +19,14 @@ use Illuminate\Support\Facades\Route; ...@@ -16,3 +19,14 @@ use Illuminate\Support\Facades\Route;
Route::get('/', function () { Route::get('/', function () {
return view('mahasiswa.index'); return view('mahasiswa.index');
}); });
Route::resource('jenis', JenisController::class);
Route::get('getJenis', [JenisController::class, 'getData'])->name('getJenis');
Route::resource('penilaian_monev', PenilaianMonevController::class);
Route::get('getPenilaianMonev', [PenilaianMonevController::class, 'getData'])->name('getPenilaianMonev');
Route::get('rowPenilaianMonev', function () {
return view('backend/penilaian_monev/row');
});
Route::resource('jadwal_kegiatan', JadwalKegiatanController::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