Update Database
This commit is contained in:
parent
631c86d8e6
commit
72ae10ab07
|
@ -172,6 +172,6 @@ public function logout(Request $request)
|
||||||
// Logout pengguna
|
// Logout pengguna
|
||||||
Auth::guard($guard)->logout();
|
Auth::guard($guard)->logout();
|
||||||
|
|
||||||
return redirect('/login')->with('success', 'Terimakasih sudah logout! Silakan login kembali.');
|
return redirect('/home')->with('success', 'Terimakasih sudah logout! Silakan login kembali.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,64 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
|
class CalculationController extends Controller
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Display a listing of the resource.
|
||||||
|
*/
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show the form for creating a new resource.
|
||||||
|
*/
|
||||||
|
public function create()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Store a newly created resource in storage.
|
||||||
|
*/
|
||||||
|
public function store(Request $request)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display the specified resource.
|
||||||
|
*/
|
||||||
|
public function show(string $id)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show the form for editing the specified resource.
|
||||||
|
*/
|
||||||
|
public function edit(string $id)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update the specified resource in storage.
|
||||||
|
*/
|
||||||
|
public function update(Request $request, string $id)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the specified resource from storage.
|
||||||
|
*/
|
||||||
|
public function destroy(string $id)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,64 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
|
class CriteriaController extends Controller
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Display a listing of the resource.
|
||||||
|
*/
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show the form for creating a new resource.
|
||||||
|
*/
|
||||||
|
public function create()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Store a newly created resource in storage.
|
||||||
|
*/
|
||||||
|
public function store(Request $request)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display the specified resource.
|
||||||
|
*/
|
||||||
|
public function show(string $id)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show the form for editing the specified resource.
|
||||||
|
*/
|
||||||
|
public function edit(string $id)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update the specified resource in storage.
|
||||||
|
*/
|
||||||
|
public function update(Request $request, string $id)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the specified resource from storage.
|
||||||
|
*/
|
||||||
|
public function destroy(string $id)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,64 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
|
class ExtracurricularController extends Controller
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Display a listing of the resource.
|
||||||
|
*/
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show the form for creating a new resource.
|
||||||
|
*/
|
||||||
|
public function create()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Store a newly created resource in storage.
|
||||||
|
*/
|
||||||
|
public function store(Request $request)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display the specified resource.
|
||||||
|
*/
|
||||||
|
public function show(string $id)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show the form for editing the specified resource.
|
||||||
|
*/
|
||||||
|
public function edit(string $id)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update the specified resource in storage.
|
||||||
|
*/
|
||||||
|
public function update(Request $request, string $id)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the specified resource from storage.
|
||||||
|
*/
|
||||||
|
public function destroy(string $id)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,64 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
|
class SubCriteriaController extends Controller
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Display a listing of the resource.
|
||||||
|
*/
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show the form for creating a new resource.
|
||||||
|
*/
|
||||||
|
public function create()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Store a newly created resource in storage.
|
||||||
|
*/
|
||||||
|
public function store(Request $request)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display the specified resource.
|
||||||
|
*/
|
||||||
|
public function show(string $id)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show the form for editing the specified resource.
|
||||||
|
*/
|
||||||
|
public function edit(string $id)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update the specified resource in storage.
|
||||||
|
*/
|
||||||
|
public function update(Request $request, string $id)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the specified resource from storage.
|
||||||
|
*/
|
||||||
|
public function destroy(string $id)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,20 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class Criteria extends Model
|
||||||
|
{
|
||||||
|
protected $fillable = ['nama' , 'prioritas' .'bobot'];
|
||||||
|
|
||||||
|
public function SubCriteria() {
|
||||||
|
return $this->hasMany(SubCriteria::class);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function ExtracuricullarSubCriteria() {
|
||||||
|
return $this->hasMany(ExtracuricullarSubKriteria::class);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,19 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class Extracuricullar extends Model
|
||||||
|
{
|
||||||
|
protected $fillable = ['nama','kategori'];
|
||||||
|
|
||||||
|
protected $rules = [
|
||||||
|
'kategori' => 'in:olahraga, seni',
|
||||||
|
];
|
||||||
|
|
||||||
|
public function ExtracuricullarSubCriteria() {
|
||||||
|
return $this->hasMany(ExtracuricullarSubKriteria::class);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,27 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class ExtracuricullarSubKriteria extends Model
|
||||||
|
{
|
||||||
|
protected $fillable = ['extracuricullar_id','criteria_id','sub_criteria_id'];
|
||||||
|
|
||||||
|
public function Extracuricullar()
|
||||||
|
{
|
||||||
|
return $this->belongsTo(Extracuricullar::class);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function Criteria()
|
||||||
|
{
|
||||||
|
return $this->belongsTo(Criteria::class);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function SubCriteria()
|
||||||
|
{
|
||||||
|
return $this->belongsTo(SubCriteria::class);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class SubCriteria extends Model
|
||||||
|
{
|
||||||
|
protected $fillable = ['criteria_id', 'nama', 'prioritas', 'bobot'];
|
||||||
|
|
||||||
|
public function Criteria()
|
||||||
|
{
|
||||||
|
return $this->belongsTo(Criteria::class);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function ExtracuricullarSubCriteria() {
|
||||||
|
return $this->hasMany(ExtracuricullarSubKriteria::class);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,30 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::create('criterias', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->string('nama');
|
||||||
|
$table->integer('prioritas');
|
||||||
|
$table->string('bobot');
|
||||||
|
$table->timestamps();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('criterias');
|
||||||
|
}
|
||||||
|
};
|
|
@ -0,0 +1,33 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::create('sub_criterias', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->unsignedBigInteger('criteria_id');
|
||||||
|
$table->string('nama');
|
||||||
|
$table->string('prioritas');
|
||||||
|
$table->string('bobot');
|
||||||
|
$table->timestamps();
|
||||||
|
|
||||||
|
$table->foreign('criteria_id')->references('id')->on('criterias');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('sub_criterias');
|
||||||
|
}
|
||||||
|
};
|
|
@ -0,0 +1,28 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::create('extracuricullars', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->string('nama');
|
||||||
|
$table->string('kategori');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('extracuricullars');
|
||||||
|
}
|
||||||
|
};
|
|
@ -0,0 +1,35 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::create('extracuricullar_sub_kriterias', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->unsignedBigInteger('extracuricullar_id');
|
||||||
|
$table->unsignedBigInteger('criteria_id');
|
||||||
|
$table->unsignedBigInteger('sub_criteria_id');
|
||||||
|
$table->timestamps();
|
||||||
|
|
||||||
|
$table->foreign('extracuricullar_id')->references('id')->on('extracuricullars');
|
||||||
|
$table->foreign('criteria_id')->references('id')->on('criterias');
|
||||||
|
$table->foreign('sub_criteria_id')->references('id')->on('sub_criterias');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('extracuricullar_sub_kriterias');
|
||||||
|
}
|
||||||
|
};
|
|
@ -136,7 +136,7 @@ .custom_nav-container .navbar-nav .nav-item .nav-link {
|
||||||
transition: all 0.3s;
|
transition: all 0.3s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom_nav-container .navbar-nav .nav-item:hover .nav-link, .custom_nav-container .navbar-nav .nav-item.active .nav-link {
|
.custom_nav-container .navbar-nav .nav-item .nav-link:active {
|
||||||
color: #000000;
|
color: #000000;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<meta name="description" content="" />
|
<meta name="description" content="" />
|
||||||
<meta name="author" content="" />
|
<meta name="author" content="" />
|
||||||
|
|
||||||
<title>Home | SIPEX</title>
|
<title>SIPEX | {{ $title }}</title>
|
||||||
|
|
||||||
|
|
||||||
<!-- bootstrap core css -->
|
<!-- bootstrap core css -->
|
||||||
|
@ -37,18 +37,22 @@
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<nav class="navbar navbar-expand-lg custom_nav-container ">
|
<nav class="navbar navbar-expand-lg custom_nav-container ">
|
||||||
|
|
||||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
<button class="navbar-toggler" type="button" data-toggle="collapse"
|
||||||
|
data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
|
||||||
|
aria-label="Toggle navigation">
|
||||||
<span class=""> </span>
|
<span class=""> </span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||||
<ul class="navbar-nav">
|
<ul class="navbar-nav">
|
||||||
<ul class="navbar-nav">
|
<ul class="navbar-nav">
|
||||||
<li class="nav-item active">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="{{ route('home') }}">Home <span class="sr-only">(current)</span></a>
|
<a class="nav-link {{ $title === 'Home' ? 'active' : '' }}"
|
||||||
|
href="/home">Home</span></a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="{{ route('ekstrakurikuler') }}">Ekstrakurikuler</a>
|
<a class="nav-link {{ $title === 'Ekstrakurikuler' ? 'active' : '' }}"
|
||||||
|
href="/ekstrakurikuler">Ekstrakurikuler</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -79,13 +83,7 @@
|
||||||
<div class="carousel-inner">
|
<div class="carousel-inner">
|
||||||
@php
|
@php
|
||||||
$totalCards = 12;
|
$totalCards = 12;
|
||||||
$images = ['img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg',
|
$images = ['img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg'];
|
||||||
'img/login.jpeg', 'img/login.jpeg','img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg',
|
|
||||||
'img/login.jpeg', 'img/login.jpeg','img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg',
|
|
||||||
'img/login.jpeg', 'img/login.jpeg','img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg',
|
|
||||||
'img/login.jpeg', 'img/login.jpeg','img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg',
|
|
||||||
'img/login.jpeg', 'img/login.jpeg','img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg', 'img/login.jpeg',
|
|
||||||
'img/login.jpeg', 'img/login.jpeg', /* add more image paths here */];
|
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
@for ($i = 0; $i < count($images); $i += $totalCards)
|
@for ($i = 0; $i < count($images); $i += $totalCards)
|
||||||
|
@ -114,7 +112,8 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="carousel-indicators mt-2">
|
<div class="carousel-indicators mt-2">
|
||||||
@for ($i = 0; $i < ceil(count($images) / $totalCards); $i++)
|
@for ($i = 0; $i < ceil(count($images) / $totalCards); $i++)
|
||||||
<span data-target="#ekstrakurikulerCarousel" data-slide-to="{{ $i }}" class="{{ $i === 0 ? 'active' : '' }}" onclick="goToSlide({{ $i }})"></span>
|
<span data-target="#ekstrakurikulerCarousel" data-slide-to="{{ $i }}"
|
||||||
|
class="{{ $i === 0 ? 'active' : '' }}" onclick="goToSlide({{ $i }})"></span>
|
||||||
@endfor
|
@endfor
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
|
@ -209,13 +208,15 @@ function goToSlide(index) {
|
||||||
<!-- jQery -->
|
<!-- jQery -->
|
||||||
<script src="js/jquery-3.4.1.min.js"></script>
|
<script src="js/jquery-3.4.1.min.js"></script>
|
||||||
<!-- popper js -->
|
<!-- popper js -->
|
||||||
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous">
|
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
|
||||||
|
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous">
|
||||||
</script>
|
</script>
|
||||||
<!-- bootstrap js -->
|
<!-- bootstrap js -->
|
||||||
<script src="js/bootstrap.js"></script>
|
<script src="js/bootstrap.js"></script>
|
||||||
<script src="js/custom.js"></script>
|
<script src="js/custom.js"></script>
|
||||||
<!-- Google Map -->
|
<!-- Google Map -->
|
||||||
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCh39n5U-4IoWpsVGUHWdqB6puEkhRLdmI&callback=myMap"></script>
|
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCh39n5U-4IoWpsVGUHWdqB6puEkhRLdmI&callback=myMap">
|
||||||
|
</script>
|
||||||
<!-- End Google Map -->
|
<!-- End Google Map -->
|
||||||
<!-- Swiper JS -->
|
<!-- Swiper JS -->
|
||||||
<script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>
|
<script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<meta name="description" content="" />
|
<meta name="description" content="" />
|
||||||
<meta name="author" content="" />
|
<meta name="author" content="" />
|
||||||
|
|
||||||
<title>Home | SIPEX</title>
|
<title>SIPEX | {{ $title }}</title>
|
||||||
|
|
||||||
|
|
||||||
<!-- bootstrap core css -->
|
<!-- bootstrap core css -->
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
<header class="header_section">
|
<header class="header_section">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<nav class="navbar navbar-expand-lg custom_nav-container ">
|
<nav class="navbar navbar-expand-lg custom_nav-container ">
|
||||||
<a class="navbar-brand" href="home.blade.php">
|
<a class="navbar-brand" href="/home">
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
@ -47,11 +47,11 @@
|
||||||
|
|
||||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||||
<ul class="navbar-nav">
|
<ul class="navbar-nav">
|
||||||
<li class="nav-item active">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="{{ route('home') }}">Home <span class="sr-only">(current)</span></a>
|
<a class="nav-link {{ ($title === "Home") ? 'active' : ''}}" href="/home">Home</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="{{ route('ekstrakurikuler') }}">Ekstrakurikuler</a>
|
<a class="nav-link {{ ($title === "Ekstrakurikuler") ? 'active' : ''}}" href="/ekstrakurikuler">Ekstrakurikuler</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<h1 class="font-20 weight-500 mb-10 text-capitalize">
|
<h1 class="font-20 weight-500 mb-10 text-capitalize">
|
||||||
Welcome Back!
|
Welcome Back!
|
||||||
<div class="weight-600 font-30 text-blue">{{ auth()->user()->name }}!</div>
|
<div class="weight-600 font-20 text-blue">{{ auth()->user()->name }}</div>
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -18,34 +18,40 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Route::get('/', function () {
|
Route::get('/', function () {
|
||||||
return view('home');
|
return view('home', [
|
||||||
|
"title" => "Home"
|
||||||
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::get('/home', function () {
|
Route::get('/home', function () {
|
||||||
return view('home'); // Ganti 'welcome' dengan nama file blade yang sesuai
|
return view('home',[
|
||||||
|
"title" => "Home"
|
||||||
|
]);
|
||||||
})->name('home');
|
})->name('home');
|
||||||
|
|
||||||
Route::get('/ekstrakurikuler', function () {
|
Route::get('/ekstrakurikuler', function () {
|
||||||
return view('ekstrakurikuler'); // Ganti 'ekstrakurikuler' dengan nama file blade yang sesuai
|
return view('ekstrakurikuler', [
|
||||||
})->name('ekstrakurikuler');
|
"title" => "Ekstrakurikuler"
|
||||||
|
]);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
// Route::get('/login', function () {
|
Route::get('/login', function () {
|
||||||
// if (Auth::check()) {
|
if (Auth::check()) {
|
||||||
// return redirect('/dashboard');
|
return redirect('/siswa/dashboard');
|
||||||
// }
|
}
|
||||||
// return view('auth.login');
|
return view('auth.login');
|
||||||
// })->name('login');
|
})->name('login');
|
||||||
Route::get('/login', [AuthController::class, 'showLoginForm'])->name('login');
|
// Route::get('/login', [AuthController::class, 'showLoginForm'])->name('login');
|
||||||
Route::post('/login', [AuthController::class, 'login']);
|
Route::post('/login', [AuthController::class, 'login']);
|
||||||
|
|
||||||
// Route::get('/register', function () {
|
Route::get('/register', function () {
|
||||||
// if (Auth::check()) {
|
if (Auth::check()) {
|
||||||
// return redirect('/dashboard');
|
return redirect('/siswa/dashboard');
|
||||||
// }
|
}
|
||||||
// return view('auth.register');
|
return view('auth.register');
|
||||||
// })->name('register');
|
})->name('register');
|
||||||
Route::get('/register', [AuthController::class, 'showRegisterForm'])->name('register');
|
// Route::get('/register', [AuthController::class, 'showRegisterForm'])->name('register');
|
||||||
Route::post('/register', [AuthController::class, 'register']);
|
Route::post('/register', [AuthController::class, 'register']);
|
||||||
|
|
||||||
Route::get('/forgot-password', function () {
|
Route::get('/forgot-password', function () {
|
||||||
|
|
Loading…
Reference in New Issue