Update Data Kriteria
This commit is contained in:
parent
72ae10ab07
commit
2ba29a0dae
|
@ -11,6 +11,7 @@
|
|||
use Illuminate\Support\Facades\Password;
|
||||
use Illuminate\Support\Facades\Cookie;
|
||||
use Illuminate\Support\Facades\Session;
|
||||
use RealRashid\SweetAlert\Facades\Alert;
|
||||
|
||||
class AuthController extends Controller
|
||||
{
|
||||
|
@ -21,17 +22,17 @@ public function showLoginForm()
|
|||
|
||||
public function login(Request $request)
|
||||
{
|
||||
$credentials = $request->only(['username', 'password']);
|
||||
// $credentials = $request->only(['username', 'password']);
|
||||
|
||||
if (Auth::attempt($credentials)) {
|
||||
$user = Auth::user();
|
||||
// if (Auth::attempt($credentials)) {
|
||||
// $user = Auth::user();
|
||||
|
||||
if ($user->role === 'wakil_kepala') {
|
||||
return redirect()->intended('/wakil_kepala/dashboard');
|
||||
} elseif ($user->role === 'siswa') {
|
||||
return redirect()->intended('/siswa/dashboard');
|
||||
}
|
||||
}
|
||||
// if ($user->role === 'wakil_kepala') {
|
||||
// return redirect()->intended('/wakil_kepala/dashboard');
|
||||
// } elseif ($user->role === 'siswa') {
|
||||
// return redirect()->intended('/siswa/dashboard');
|
||||
// }
|
||||
// }
|
||||
|
||||
$validator = Validator::make($request->all(), [
|
||||
'username' => 'required',
|
||||
|
@ -61,7 +62,7 @@ public function login(Request $request)
|
|||
$token = $user->createToken("auth-token")->plainTextToken;
|
||||
$user->update(['remember_token' => $token]);
|
||||
|
||||
return redirect('/dashboard')->with('success', 'Login berhasil!');
|
||||
return redirect('/dashboard/index')->with('success', 'Login berhasil!');
|
||||
} else {
|
||||
return redirect('/login')
|
||||
->withErrors(['username' => 'Username atau password salah.'])
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Criteria;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
use RealRashid\SweetAlert\Facades\Alert;
|
||||
|
||||
class CriteriaController extends Controller
|
||||
{
|
||||
|
@ -11,7 +13,8 @@ class CriteriaController extends Controller
|
|||
*/
|
||||
public function index()
|
||||
{
|
||||
//
|
||||
$criterias = Criteria::all();
|
||||
return view('kriteria.index', compact('criterias'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -27,7 +30,21 @@ public function create()
|
|||
*/
|
||||
public function store(Request $request)
|
||||
{
|
||||
//
|
||||
$validator = Validator::make($request->all(), [
|
||||
'nama' => 'required',
|
||||
'prioritas' => 'required',
|
||||
]);
|
||||
|
||||
if ($validator->fails()) {
|
||||
return redirect()->back()->withErrors($validator)->withInput();
|
||||
}
|
||||
|
||||
Criteria::create([
|
||||
'nama'=>$request->nama,
|
||||
'prioritas'=>$request->prioritas,
|
||||
]);
|
||||
|
||||
return redirect()->route('kriteria.index')->with('success', 'Tambah Data Berhasil!');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
"guzzlehttp/guzzle": "^7.2",
|
||||
"laravel/framework": "^10.10",
|
||||
"laravel/sanctum": "^3.2",
|
||||
"laravel/tinker": "^2.8"
|
||||
"laravel/tinker": "^2.8",
|
||||
"realrashid/sweet-alert": "^7.1"
|
||||
},
|
||||
"require-dev": {
|
||||
"fakerphp/faker": "^1.9.1",
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "aa322c53454393ed775cfe4807d54a50",
|
||||
"content-hash": "a47c4c4dd117ce52e4b5d03d7487513b",
|
||||
"packages": [
|
||||
{
|
||||
"name": "brick/math",
|
||||
|
@ -3183,6 +3183,96 @@
|
|||
],
|
||||
"time": "2023-11-08T05:53:05+00:00"
|
||||
},
|
||||
{
|
||||
"name": "realrashid/sweet-alert",
|
||||
"version": "v7.1.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/realrashid/sweet-alert.git",
|
||||
"reference": "769f951053cd3363fd7fb7a1dd30f9828b619b44"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/realrashid/sweet-alert/zipball/769f951053cd3363fd7fb7a1dd30f9828b619b44",
|
||||
"reference": "769f951053cd3363fd7fb7a1dd30f9828b619b44",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"laravel/framework": "^5.6|^6.0|^7.0|^8.0|^9.0|^9.11|9.14.*|^10.0",
|
||||
"php": "^7.2|^8.0|^8.1"
|
||||
},
|
||||
"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": "Laravel Sweet Alert Is A Package For Laravel Provides An Easy Way To Display Alert Messages Using The SweetAlert2 Library.",
|
||||
"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": "2023-08-07T19:23:17+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/console",
|
||||
"version": "v6.4.1",
|
||||
|
@ -8157,5 +8247,5 @@
|
|||
"php": "^8.1"
|
||||
},
|
||||
"platform-dev": [],
|
||||
"plugin-api-version": "2.2.0"
|
||||
"plugin-api-version": "2.6.0"
|
||||
}
|
||||
|
|
|
@ -159,7 +159,7 @@
|
|||
/*
|
||||
* Package Service Providers...
|
||||
*/
|
||||
|
||||
RealRashid\SweetAlert\SweetAlertServiceProvider::class,
|
||||
/*
|
||||
* Application Service Providers...
|
||||
*/
|
||||
|
@ -184,5 +184,6 @@
|
|||
'aliases' => Facade::defaultAliases()->merge([
|
||||
// 'Example' => App\Facades\Example::class,
|
||||
])->toArray(),
|
||||
'Alert' => RealRashid\SweetAlert\Facades\Alert::class,
|
||||
|
||||
];
|
||||
|
|
|
@ -1 +1,22 @@
|
|||
ini halaman index
|
||||
@extends('layout.main')
|
||||
@section('body')
|
||||
|
||||
@include('layout.navbar')
|
||||
@include('layout.sidebar')
|
||||
|
||||
<div class="main-container">
|
||||
<div class="pd-ltr-20">
|
||||
<div class="card-box pd-20 height-50-p mb-30">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-md-8">
|
||||
<h1 class="font-20 weight-500 mb-10 text-capitalize">
|
||||
Welcome Back!
|
||||
<div class="weight-600 font-20 text-blue">{{ auth()->user()->name }}</div>
|
||||
</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
|
|
|
@ -0,0 +1,119 @@
|
|||
@extends('layout.main')
|
||||
@section('body')
|
||||
@php
|
||||
$menu = 'Data Master';
|
||||
$pageTitle = 'Data Kriteria';
|
||||
@endphp
|
||||
|
||||
@include('layout.page')
|
||||
@include('layout.navbar')
|
||||
@include('layout.sidebar')
|
||||
|
||||
{{-- Main Content --}}
|
||||
<div class="main-container">
|
||||
<div class="pd-ltr-20 xs-pd-20-10">
|
||||
<div class="min-height-10px">
|
||||
<div class="card-box mb-30">
|
||||
<div class="pd-20">
|
||||
<h4 class="text-blue h4">Data Kriteria</h4>
|
||||
</div>
|
||||
<div class="card-header">
|
||||
<!-- Button trigger modal -->
|
||||
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#add-criteria">Tambah
|
||||
Kriteria</button>
|
||||
</div>
|
||||
<div class="pb-10">
|
||||
<div class="table-responsive">
|
||||
<table class="data-table table stripe hover nowrap">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Nama Kriteria</th>
|
||||
<th>Prioritas</th>
|
||||
<th>Bobot</th>
|
||||
<th>Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($criterias as $criteria)
|
||||
<tr>
|
||||
<td>{{ $loop->iteration }}</td>
|
||||
<td>{{ $criteria->nama }}</td>
|
||||
<td>{{ $criteria->prioritas }}</td>
|
||||
<td>{{ $criteria->bobot }}</td>
|
||||
<td>
|
||||
<button type="button" class="badge btn-success" title="View">
|
||||
<i class="icon dw dw-eye"></i>
|
||||
</button>
|
||||
<button type="button" class="badge btn-primary" title="Edit">
|
||||
<i class="icon dw dw-edit2"></i>
|
||||
</button>
|
||||
<button type="button" class="badge btn-danger" title="Delete">
|
||||
<i class="icon dw dw-delete-3"></i>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- Modal Add --}}
|
||||
<div class="modal fade" id="add-criteria" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel"
|
||||
style="display: none;" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered">
|
||||
<div class="modal-content">
|
||||
@if(session('error'))
|
||||
<div class="alert alert-danger">{{ session('error') }}</div>
|
||||
@endif
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title" id="myLargeModalLabel">
|
||||
Tambah Kriteria
|
||||
</h4>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form action="{{ route('kriteria.store') }}" class="needs-validation" novalidate="" method="POST">
|
||||
@csrf
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">Nama</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" id="name" name="name" required="">
|
||||
<div class="invalid-feedback">
|
||||
Tolong isi Nama Kriteria!
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@if($errors->has('nama'))
|
||||
<div class="alert alert-danger">{{ $errors->first('nama') }}</div>
|
||||
@endif
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">Prioritas</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" id="prioritas" name="prioritas"
|
||||
required="">
|
||||
<div class="invalid-feedback">
|
||||
Tolong isi Urutan Prioritas!
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@if($errors->has('prioritas'))
|
||||
<div class="alert alert-danger">{{ $errors->first('prioritas') }}</div>
|
||||
@endif
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Batal</button>
|
||||
<button type="submit" class="btn btn-primary" data-target="#add-criteria">Simpan</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
|
@ -17,6 +17,7 @@
|
|||
<!-- Google Font -->
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap"
|
||||
rel="stylesheet" />
|
||||
|
||||
<!-- CSS -->
|
||||
<link rel="stylesheet" type="text/css" href="{{ asset('vendors/styles/core.css') }}" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ asset('vendors/styles/icon-font.min.css') }}" />
|
||||
|
@ -26,6 +27,9 @@
|
|||
href="{{ asset('src/plugins/datatables/css/responsive.bootstrap4.min.css') }}" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ asset('vendors/styles/style.css') }}" />
|
||||
|
||||
{{-- <!-- Bootstrap CSS -->
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet"> --}}
|
||||
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-GBZ3SGGX85"></script>
|
||||
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2973766580778258"
|
||||
|
@ -74,18 +78,26 @@ function gtag() {
|
|||
<script src="{{ asset('vendors/scripts/process.js') }}"></script>
|
||||
<script src="{{ asset('vendors/scripts/layout-settings.js') }}"></script>
|
||||
<script src="{{ asset('src/plugins/apexcharts/apexcharts.min.js') }}"></script>
|
||||
<script src="{{ asset('src/plugins/datatables/js/jquery.dataTables.min.js') }}"></script>
|
||||
{{-- <script src="{{ asset('src/plugins/datatables/js/jquery.dataTables.min.js') }}"></script>
|
||||
<script src="{{ asset('src/plugins/datatables/js/dataTables.bootstrap4.min.js') }}"></script>
|
||||
<script src="{{ asset('src/plugins/datatables/js/dataTables.responsive.min.js') }}"></script>
|
||||
<script src="{{ asset('src/plugins/datatables/js/responsive.bootstrap4.min.js') }}"></script>
|
||||
<script src="{{ asset('src/plugins/datatables/js/responsive.bootstrap4.min.js') }}"></script> --}}
|
||||
<script src="{{ asset('vendors/scripts/dashboard.js') }}"></script>
|
||||
|
||||
<!-- add sweet alert js & css in footer -->
|
||||
<script src="{{ asset('src/plugins/sweetalert2/sweetalert2.all.js') }}"></script>
|
||||
<script src="{{ asset('src/plugins/sweetalert2/sweet-alert.init.js') }}"></script>
|
||||
|
||||
{{-- <!-- Bootstrap JS and Popper.js -->
|
||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js"></script> --}}
|
||||
|
||||
<!-- Google Tag Manager (noscript) -->
|
||||
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NXZMQSS" height="0" width="0"
|
||||
style="display: none; visibility: hidden"></iframe></noscript>
|
||||
<!-- End Google Tag Manager (noscript) -->
|
||||
|
||||
{{-- @include('sweetalert::alert') --}}
|
||||
@include('sweetalert::alert')
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
|
@ -7,34 +7,24 @@
|
|||
<div class="row">
|
||||
<div class="col-md-6 col-sm-12">
|
||||
<div class="title">
|
||||
<h4>blank</h4>
|
||||
<h4>{{ $menu }}</h4>
|
||||
</div>
|
||||
<nav aria-label="breadcrumb" role="navigation">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="index.html">Home</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">blank</li>
|
||||
<li class="breadcrumb-item"><a href="{{ route('dashboard.index') }}">Dashboard</a></li>
|
||||
@if(isset($pageTitle))
|
||||
<li class="breadcrumb-item active" aria-current="page">{{ $pageTitle }}</li>
|
||||
@else
|
||||
<li class="breadcrumb-item active" aria-current="page"></li>
|
||||
@endif
|
||||
</ol>
|
||||
</nav>
|
||||
</div>
|
||||
<div class="col-md-6 col-sm-12 text-right">
|
||||
<div class="dropdown">
|
||||
<a class="btn btn-primary dropdown-toggle" href="#" role="button" data-toggle="dropdown">
|
||||
January 2018
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-right">
|
||||
<a class="dropdown-item" href="#">Export List</a>
|
||||
<a class="dropdown-item" href="#">Policies</a>
|
||||
<a class="dropdown-item" href="#">View Assets</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pd-20 bg-white border-radius-4 box-shadow mb-30">
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer-wrap pd-20 mb-20 card-box">
|
||||
DeskApp - Bootstrap 4 Admin Template By <a href="https://github.com/dropways" target="_blank">Ankit Hingarajiya</a>
|
||||
</div>
|
||||
{{-- <div class="footer-wrap pd-20 mb-20 card-box">
|
||||
Sistem Pendukung Keputusan Pemilihan Ekstrakurikuler Metode SMARTER
|
||||
</div> --}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<div class="left-side-bar">
|
||||
<div class="brand-logo">
|
||||
<a href="index.html">
|
||||
<a>
|
||||
<img src="{{ asset('vendors/images/deskapp-logo.svg') }}" alt="" class="dark-logo" />
|
||||
<img src="{{ asset('vendors/images/deskapp-logo-white.svg') }}" alt="" class="light-logo" />
|
||||
</a>
|
||||
|
@ -13,63 +13,43 @@
|
|||
<div class="menu-block customscroll">
|
||||
<div class="sidebar-menu">
|
||||
<ul id="accordion-menu">
|
||||
<li>
|
||||
<div class="sidebar-small-cap">Home</div>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('siswa.dashboard') }}" class="dropdown-toggle no-arrow">
|
||||
<span class="micon bi bi-house"></span><span class="mtext">Dashboard</span>
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle">
|
||||
<span class="micon bi bi-house"></span><span class="mtext">Home</span>
|
||||
</a>
|
||||
<ul class="submenu">
|
||||
<li><a href="{{ route('dashboard.index') }}">Dashboard</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<div class="dropdown-divider"></div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="sidebar-small-cap">Master</div>
|
||||
</li>
|
||||
<li>
|
||||
<a href="invoice.html" class="dropdown-toggle no-arrow">
|
||||
<span class="micon bi bi-house"></span><span class="mtext">Data Kriteria</span>
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle">
|
||||
<span class="micon bi bi-textarea-resize"></span><span class="mtext">Master</span>
|
||||
</a>
|
||||
<ul class="submenu">
|
||||
<li><a href="{{ route('kriteria.index') }}">Data Kriteria</a></li>
|
||||
<li><a href="">Data Sub Kriteria</a></li>
|
||||
<li><a href="">Data User</a></li>
|
||||
<li><a href="">Data Ekstrakurikuler</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="invoice.html" class="dropdown-toggle no-arrow">
|
||||
<span class="micon bi bi-house"></span><span class="mtext">Data Sub Kriteria</span>
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle">
|
||||
<span class="micon bi bi-table"></span><span class="mtext">Perhitungan</span>
|
||||
</a>
|
||||
<ul class="submenu">
|
||||
<li><a href="">Hasil Hitung Kriteria</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="invoice.html" class="dropdown-toggle no-arrow">
|
||||
<span class="micon bi bi-house"></span><span class="mtext">Data Ekstrakurikuler</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="invoice.html" class="dropdown-toggle no-arrow">
|
||||
<span class="micon bi bi-house"></span><span class="mtext">Data User</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<div class="dropdown-divider"></div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="sidebar-small-cap">Perhitungan</div>
|
||||
</li>
|
||||
<li>
|
||||
<a href="invoice.html" class="dropdown-toggle no-arrow">
|
||||
<span class="micon bi bi-house"></span><span class="mtext">Hasil Hitung Kriteria</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<div class="dropdown-divider"></div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="sidebar-small-cap">Penilaian</div>
|
||||
</li>
|
||||
<li>
|
||||
<a href="invoice.html" class="dropdown-toggle no-arrow">
|
||||
<span class="micon bi bi-house"></span><span class="mtext">Input Penilaian</span>
|
||||
<li class="dropdown">
|
||||
<a href="javascript:;" class="dropdown-toggle">
|
||||
<span class="micon bi bi-table"></span><span class="mtext">Penilaian</span>
|
||||
</a>
|
||||
<ul class="submenu">
|
||||
<li><a href="">Input Penilaian</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
</div>
|
||||
|
|
|
@ -1,230 +1,42 @@
|
|||
@extends('layouts.wakil_kepala')
|
||||
@extends('layout.main')
|
||||
@section('body')
|
||||
|
||||
@include('layout.navbar')
|
||||
@include('layout.sidebar')
|
||||
|
||||
<div class="main-container">
|
||||
<div class="pd-ltr-20">
|
||||
<div class="card-box pd-20 height-50-p mb-30">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-md-4">
|
||||
<img src="{{ asset('vendors/images/banner-img.png') }}" alt="" />
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<h4 class="font-20 weight-500 mb-10 text-capitalize">
|
||||
Welcome back
|
||||
<div class="weight-600 font-30 text-blue">Johnny Brown!</div>
|
||||
</h4>
|
||||
<p class="font-18 max-width-600">
|
||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Unde
|
||||
hic non repellendus debitis iure, doloremque assumenda. Autem
|
||||
modi, corrupti, nobis ea iure fugiat, veniam non quaerat
|
||||
mollitia animi error corporis.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xl-3 mb-30">
|
||||
<div class="card-box height-100-p widget-style1">
|
||||
<div class="d-flex flex-wrap align-items-center">
|
||||
<div class="progress-data">
|
||||
<div id="chart"></div>
|
||||
</div>
|
||||
<div class="widget-data">
|
||||
<div class="h4 mb-0">2020</div>
|
||||
<div class="weight-600 font-14">Contact</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xl-3 mb-30">
|
||||
<div class="card-box height-100-p widget-style1">
|
||||
<div class="d-flex flex-wrap align-items-center">
|
||||
<div class="progress-data">
|
||||
<div id="chart2"></div>
|
||||
</div>
|
||||
<div class="widget-data">
|
||||
<div class="h4 mb-0">400</div>
|
||||
<div class="weight-600 font-14">Deals</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xl-3 mb-30">
|
||||
<div class="card-box height-100-p widget-style1">
|
||||
<div class="d-flex flex-wrap align-items-center">
|
||||
<div class="progress-data">
|
||||
<div id="chart3"></div>
|
||||
</div>
|
||||
<div class="widget-data">
|
||||
<div class="h4 mb-0">350</div>
|
||||
<div class="weight-600 font-14">Campaign</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xl-3 mb-30">
|
||||
<div class="card-box height-100-p widget-style1">
|
||||
<div class="d-flex flex-wrap align-items-center">
|
||||
<div class="progress-data">
|
||||
<div id="chart4"></div>
|
||||
</div>
|
||||
<div class="widget-data">
|
||||
<div class="h4 mb-0">$6060</div>
|
||||
<div class="weight-600 font-14">Worth</div>
|
||||
<h1 class="font-20 weight-500 mb-10 text-capitalize">
|
||||
Welcome Back!
|
||||
<div class="weight-600 font-20 text-blue">{{ auth()->user()->name }}</div>
|
||||
</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-box mb-30">
|
||||
<h2 class="h4 pd-20">Best Selling Products</h2>
|
||||
<table class="data-table table nowrap">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="table-plus datatable-nosort">Product</th>
|
||||
<th>Name</th>
|
||||
<th>Color</th>
|
||||
<th>Size</th>
|
||||
<th>Price</th>
|
||||
<th>Oty</th>
|
||||
<th class="datatable-nosort">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="table-plus">
|
||||
<img src="{{ asset('vendors/images/product-1.jpg') }}" width="70" height="70"
|
||||
alt="" />
|
||||
</td>
|
||||
<td>
|
||||
<h5 class="font-16">Shirt</h5>
|
||||
by John Doe
|
||||
</td>
|
||||
<td>Black</td>
|
||||
<td>M</td>
|
||||
<td>$1000</td>
|
||||
<td>1</td>
|
||||
<td>
|
||||
<div class="dropdown">
|
||||
<a class="btn btn-link font-24 p-0 line-height-1 no-arrow dropdown-toggle"
|
||||
href="#" role="button" data-toggle="dropdown">
|
||||
<i class="dw dw-more"></i>
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-right dropdown-menu-icon-list">
|
||||
<a class="dropdown-item" href="#"><i class="dw dw-eye"></i> View</a>
|
||||
<a class="dropdown-item" href="#"><i class="dw dw-edit2"></i> Edit</a>
|
||||
<a class="dropdown-item" href="#"><i class="dw dw-delete-3"></i> Delete</a>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="table-plus">
|
||||
<img src="{{ asset('vendors/images/product-2.jpg') }}" width="70" height="70"
|
||||
alt="" />
|
||||
</td>
|
||||
<td>
|
||||
<h5 class="font-16">Boots</h5>
|
||||
by Lea R. Frith
|
||||
</td>
|
||||
<td>brown</td>
|
||||
<td>9UK</td>
|
||||
<td>$900</td>
|
||||
<td>1</td>
|
||||
<td>
|
||||
<div class="dropdown">
|
||||
<a class="btn btn-link font-24 p-0 line-height-1 no-arrow dropdown-toggle"
|
||||
href="#" role="button" data-toggle="dropdown">
|
||||
<i class="dw dw-more"></i>
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-right dropdown-menu-icon-list">
|
||||
<a class="dropdown-item" href="#"><i class="dw dw-eye"></i> View</a>
|
||||
<a class="dropdown-item" href="#"><i class="dw dw-edit2"></i> Edit</a>
|
||||
<a class="dropdown-item" href="#"><i class="dw dw-delete-3"></i> Delete</a>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="table-plus">
|
||||
<img src="{{ asset('vendors/images/product-3.jpg') }}" width="70" height="70" alt="" />
|
||||
</td>
|
||||
<td>
|
||||
<h5 class="font-16">Hat</h5>
|
||||
by Erik L. Richards
|
||||
</td>
|
||||
<td>Orange</td>
|
||||
<td>M</td>
|
||||
<td>$100</td>
|
||||
<td>4</td>
|
||||
<td>
|
||||
<div class="dropdown">
|
||||
<a class="btn btn-link font-24 p-0 line-height-1 no-arrow dropdown-toggle"
|
||||
href="#" role="button" data-toggle="dropdown">
|
||||
<i class="dw dw-more"></i>
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-right dropdown-menu-icon-list">
|
||||
<a class="dropdown-item" href="#"><i class="dw dw-eye"></i> View</a>
|
||||
<a class="dropdown-item" href="#"><i class="dw dw-edit2"></i> Edit</a>
|
||||
<a class="dropdown-item" href="#"><i class="dw dw-delete-3"></i> Delete</a>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="table-plus">
|
||||
<img src="{{ asset('vendors/images/product-4.jpg') }}" width="70" height="70" alt="" />
|
||||
</td>
|
||||
<td>
|
||||
<h5 class="font-16">Long Dress</h5>
|
||||
by Renee I. Hansen
|
||||
</td>
|
||||
<td>Gray</td>
|
||||
<td>L</td>
|
||||
<td>$1000</td>
|
||||
<td>1</td>
|
||||
<td>
|
||||
<div class="dropdown">
|
||||
<a class="btn btn-link font-24 p-0 line-height-1 no-arrow dropdown-toggle"
|
||||
href="#" role="button" data-toggle="dropdown">
|
||||
<i class="dw dw-more"></i>
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-right dropdown-menu-icon-list">
|
||||
<a class="dropdown-item" href="#"><i class="dw dw-eye"></i> View</a>
|
||||
<a class="dropdown-item" href="#"><i class="dw dw-edit2"></i> Edit</a>
|
||||
<a class="dropdown-item" href="#"><i class="dw dw-delete-3"></i> Delete</a>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="table-plus">
|
||||
<img src="{{ asset('vendors/images/product-5.jpg') }}" width="70" height="70" alt="" />
|
||||
</td>
|
||||
<td>
|
||||
<h5 class="font-16">Blazer</h5>
|
||||
by Vicki M. Coleman
|
||||
</td>
|
||||
<td>Blue</td>
|
||||
<td>M</td>
|
||||
<td>$1000</td>
|
||||
<td>1</td>
|
||||
<td>
|
||||
<div class="dropdown">
|
||||
<a class="btn btn-link font-24 p-0 line-height-1 no-arrow dropdown-toggle"
|
||||
href="#" role="button" data-toggle="dropdown">
|
||||
<i class="dw dw-more"></i>
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-right dropdown-menu-icon-list">
|
||||
<a class="dropdown-item" href="#"><i class="dw dw-eye"></i> View</a>
|
||||
<a class="dropdown-item" href="#"><i class="dw dw-edit2"></i> Edit</a>
|
||||
<a class="dropdown-item" href="#"><i class="dw dw-delete-3"></i> Delete</a>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@extends('layout.main')
|
||||
@section('body')
|
||||
|
||||
@include('layout.navbar')
|
||||
@include('layout.sidebar')
|
||||
|
||||
<div class="main-container">
|
||||
<div class="pd-ltr-20">
|
||||
<div class="card-box pd-20 height-50-p mb-30">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-md-8">
|
||||
<h1 class="font-20 weight-500 mb-10 text-capitalize">
|
||||
Welcome Back!
|
||||
<div class="weight-600 font-20 text-blue">{{ auth()->user()->name }}</div>
|
||||
</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
@extends('layouts.wakil_kepala')
|
||||
@extends('layout.main')
|
||||
@section('body')
|
||||
|
||||
@include('layout.navbar')
|
||||
@include('layout.sidebar')
|
||||
|
||||
<div class="main-container">
|
||||
<div class="pd-ltr-20 xs-pd-20-10">
|
||||
|
@ -454,7 +458,7 @@ class="dropdown-menu dropdown-menu-right dropdown-menu-icon-list"
|
|||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Simple Datatable End -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
|
@ -1,10 +1,11 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use App\Http\Controllers\AuthController;
|
||||
use App\Http\Controllers\WakilKepalaController;
|
||||
use App\Http\Controllers\SiswaController;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use App\Http\Controllers\CriteriaController;
|
||||
use App\Http\Controllers\WakilKepalaController;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
@ -35,10 +36,9 @@
|
|||
]);
|
||||
});
|
||||
|
||||
|
||||
Route::get('/login', function () {
|
||||
if (Auth::check()) {
|
||||
return redirect('/siswa/dashboard');
|
||||
return redirect('/dashboard/index');
|
||||
}
|
||||
return view('auth.login');
|
||||
})->name('login');
|
||||
|
@ -47,7 +47,7 @@
|
|||
|
||||
Route::get('/register', function () {
|
||||
if (Auth::check()) {
|
||||
return redirect('/siswa/dashboard');
|
||||
return redirect('/dashboard/index');
|
||||
}
|
||||
return view('auth.register');
|
||||
})->name('register');
|
||||
|
@ -56,24 +56,31 @@
|
|||
|
||||
Route::get('/forgot-password', function () {
|
||||
if (Auth::check()) {
|
||||
return redirect('/dashboard');
|
||||
return redirect('/dashboard/index');
|
||||
}
|
||||
return view('auth.forgot-password');
|
||||
})->name('password.request');
|
||||
|
||||
Route::post('/forgot-password', [AuthController::class, 'sendResetLinkEmail'])->name('password.email');
|
||||
|
||||
Route::get('/reset-password/{token}', [AuthController::class, 'showResetForm'])->name('password.reset');
|
||||
Route::post('/reset-password', [AuthController::class, 'resetPassword'])->name('password.update');
|
||||
|
||||
Route::middleware(['auth', 'role:wakil_kepala'])->group(function () {
|
||||
Route::get('/wakil_kepala/dashboard', [WakilKepalaController::class, 'dashboard'])->name('wakil_kepala.dashboard');
|
||||
Route::get('/wakil_kepala/kriteria', [WakilKepalaController::class, 'kriteria'])->name('wakil_kepala.kriteria');
|
||||
Route::get('/wakil_kepala/subkriteria', [WakilKepalaController::class, 'subkriteria'])->name('wakil_kepala.subkriteria');
|
||||
});
|
||||
// Route::middleware(['auth', 'role:wakil_kepala'])->group(function () {
|
||||
// Route::get('/wakil_kepala/dashboard', [WakilKepalaController::class, 'dashboard'])->name('wakil_kepala.dashboard');
|
||||
// Route::get('/wakil_kepala/kriteria', [WakilKepalaController::class, 'kriteria'])->name('wakil_kepala.kriteria');
|
||||
// Route::get('/wakil_kepala/subkriteria', [WakilKepalaController::class, 'subkriteria'])->name('wakil_kepala.subkriteria');
|
||||
// });
|
||||
|
||||
Route::middleware(['auth', 'role:siswa'])->group(function () {
|
||||
Route::get('/siswa/dashboard', [SiswaController::class, 'dashboard'])->name('siswa.dashboard');
|
||||
});
|
||||
// Route::middleware(['auth', 'role:siswa'])->group(function () {
|
||||
// Route::get('/siswa/dashboard', [SiswaController::class, 'dashboard'])->name('siswa.dashboard');
|
||||
// });
|
||||
|
||||
Route::get('/dashboard/index', function () {
|
||||
return view('dashboard.index');
|
||||
})->name('dashboard.index');
|
||||
|
||||
Route::resource('kriteria', CriteriaController::class);
|
||||
|
||||
Route::get('/logout', [AuthController::class, 'logout'])->name('logout');
|
||||
Route::post('/logout', [AuthController::class, 'logout'])->name('logout');
|
||||
|
|
Loading…
Reference in New Issue