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,9 +136,9 @@ .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;
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom_nav-container .navbar-toggler {
|
.custom_nav-container .navbar-toggler {
|
||||||
|
|
|
@ -2,223 +2,224 @@
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<!-- Basic -->
|
<!-- Basic -->
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
<!-- Mobile Metas -->
|
<!-- Mobile Metas -->
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
||||||
<!-- Site Metas -->
|
<!-- Site Metas -->
|
||||||
<meta name="keywords" content="" />
|
<meta name="keywords" content="" />
|
||||||
<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 -->
|
||||||
<link rel="stylesheet" type="text/css" href="{{ asset('css/bootstrap.css') }}" />
|
<link rel="stylesheet" type="text/css" href="{{ asset('css/bootstrap.css') }}" />
|
||||||
|
|
||||||
<!-- Swiper CSS -->
|
<!-- Swiper CSS -->
|
||||||
<link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.min.css" />
|
<link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.min.css" />
|
||||||
|
|
||||||
<!-- font awesome style -->
|
<!-- font awesome style -->
|
||||||
<link href="{{ asset('css/font-awesome.min.css') }}" rel="stylesheet" />
|
<link href="{{ asset('css/font-awesome.min.css') }}" rel="stylesheet" />
|
||||||
|
|
||||||
<!-- Custom styles for this template -->
|
<!-- Custom styles for this template -->
|
||||||
<link href="{{ asset('css/style.css') }}" rel="stylesheet" />
|
<link href="{{ asset('css/style.css') }}" rel="stylesheet" />
|
||||||
<!-- responsive style -->
|
<!-- responsive style -->
|
||||||
<link href="{{ asset('css/responsive.css') }}" rel="stylesheet" />
|
<link href="{{ asset('css/responsive.css') }}" rel="stylesheet" />
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<!-- header section strats -->
|
<!-- header section strats -->
|
||||||
<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 ">
|
||||||
|
|
||||||
<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>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
<button class="navbar-toggler" type="button" data-toggle="collapse"
|
||||||
<ul class="navbar-nav">
|
data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
|
||||||
<ul class="navbar-nav">
|
aria-label="Toggle navigation">
|
||||||
<li class="nav-item active">
|
<span class=""> </span>
|
||||||
<a class="nav-link" href="{{ route('home') }}">Home <span class="sr-only">(current)</span></a>
|
</button>
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||||
<a class="nav-link" href="{{ route('ekstrakurikuler') }}">Ekstrakurikuler</a>
|
<ul class="navbar-nav">
|
||||||
</li>
|
<ul class="navbar-nav">
|
||||||
</ul>
|
<li class="nav-item">
|
||||||
</ul>
|
<a class="nav-link {{ $title === 'Home' ? 'active' : '' }}"
|
||||||
<div class="quote_btn-container">
|
href="/home">Home</span></a>
|
||||||
<a href="{{ route('login') }}" class="quote_btn">
|
</li>
|
||||||
Login
|
<li class="nav-item">
|
||||||
</a>
|
<a class="nav-link {{ $title === 'Ekstrakurikuler' ? 'active' : '' }}"
|
||||||
</div>
|
href="/ekstrakurikuler">Ekstrakurikuler</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</ul>
|
||||||
|
<div class="quote_btn-container">
|
||||||
|
<a href="{{ route('login') }}" class="quote_btn">
|
||||||
|
Login
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
</header>
|
</header>
|
||||||
<!-- end header section -->
|
<!-- end header section -->
|
||||||
|
|
||||||
<!-- ekstrakurikuler section -->
|
<!-- ekstrakurikuler section -->
|
||||||
<section id="ekstrakurikuler" class="service_section layout_padding">
|
<section id="ekstrakurikuler" class="service_section layout_padding">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="heading_container">
|
<div class="heading_container">
|
||||||
<h2>
|
<h2>
|
||||||
Ekstrakurikuler
|
Ekstrakurikuler
|
||||||
</h2>
|
</h2>
|
||||||
<p>
|
<p>
|
||||||
Kegiatan Ekstrakurikuler Siswa di MAN 3 Banyuwangi
|
Kegiatan Ekstrakurikuler Siswa di MAN 3 Banyuwangi
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div id="ekstrakurikulerCarousel" class="carousel slide" data-ride="carousel">
|
<div id="ekstrakurikulerCarousel" class="carousel slide" data-ride="carousel">
|
||||||
<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',
|
@endphp
|
||||||
'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
|
|
||||||
|
|
||||||
@for ($i = 0; $i < count($images); $i += $totalCards)
|
@for ($i = 0; $i < count($images); $i += $totalCards)
|
||||||
<div class="carousel-item {{ $i === 0 ? 'active' : '' }}">
|
<div class="carousel-item {{ $i === 0 ? 'active' : '' }}">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@for ($j = $i; $j < $i + $totalCards && $j < count($images); $j++)
|
@for ($j = $i; $j < $i + $totalCards && $j < count($images); $j++)
|
||||||
<div class="col-md-6 col-lg-3">
|
<div class="col-md-6 col-lg-3">
|
||||||
<div class="box" style="width: 17rem;">
|
<div class="box" style="width: 17rem;">
|
||||||
<img src="{{ asset($images[$j]) }}" class="card-img-top" alt="...">
|
<img src="{{ asset($images[$j]) }}" class="card-img-top" alt="...">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="detail-box">
|
<div class="detail-box">
|
||||||
<h5>
|
<h5>
|
||||||
Futsal
|
Futsal
|
||||||
</h5>
|
</h5>
|
||||||
<p>
|
<p>
|
||||||
Ekstrakurikuler di bidang olahraga
|
Ekstrakurikuler di bidang olahraga
|
||||||
</p>
|
</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
@endfor
|
||||||
@endfor
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
@endfor
|
||||||
@endfor
|
|
||||||
</div>
|
|
||||||
<div class="carousel-indicators mt-2">
|
|
||||||
@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>
|
|
||||||
@endfor
|
|
||||||
</div>
|
|
||||||
<script>
|
|
||||||
function goToSlide(index) {
|
|
||||||
$('#ekstrakurikulerCarousel').carousel(index);
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<div class="footer_container">
|
|
||||||
<!-- info section -->
|
|
||||||
|
|
||||||
<section class="info_section ">
|
|
||||||
<div class="container">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-4">
|
|
||||||
<div class="info_detail">
|
|
||||||
<h4>
|
|
||||||
Sistem Pendukung Keputusan Pemilihan Ekstrakurikuler Siswa di MAN 3 Banyuwangi
|
|
||||||
</h4>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">
|
<div class="carousel-indicators mt-2">
|
||||||
<div class="info_link_box">
|
@for ($i = 0; $i < ceil(count($images) / $totalCards); $i++)
|
||||||
<h4>
|
<span data-target="#ekstrakurikulerCarousel" data-slide-to="{{ $i }}"
|
||||||
Links
|
class="{{ $i === 0 ? 'active' : '' }}" onclick="goToSlide({{ $i }})"></span>
|
||||||
</h4>
|
@endfor
|
||||||
<div class="info_links">
|
|
||||||
<a class="" href="#home">
|
|
||||||
Home
|
|
||||||
</a>
|
|
||||||
<a class="" href="#ekstrakurikuler">
|
|
||||||
Ekstrakurikuler
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-4">
|
|
||||||
<div class="info_contact">
|
|
||||||
<h4>
|
|
||||||
Address
|
|
||||||
</h4>
|
|
||||||
<div class="contact_link_box">
|
|
||||||
<a href="https://maps.app.goo.gl/ibCGWyfsxw8pbR6i9">
|
|
||||||
<i class="fa fa-map-marker" aria-hidden="true"></i>
|
|
||||||
<span>
|
|
||||||
Location
|
|
||||||
</span>
|
|
||||||
</a>
|
|
||||||
<a href="mailto:man3banyuwangi@gmail.com">
|
|
||||||
<i class="fa fa-envelope" aria-hidden="true"></i>
|
|
||||||
<span>
|
|
||||||
Email
|
|
||||||
</span>
|
|
||||||
</a>
|
|
||||||
<a href="tel:+62333397173">
|
|
||||||
<i class="fa fa-phone" aria-hidden="true"></i>
|
|
||||||
<span>
|
|
||||||
Telepon
|
|
||||||
</span>
|
|
||||||
</a>
|
|
||||||
<a href="https://www.instagram.com/osimman3banyuwangi" target="_blank">
|
|
||||||
<i class="fa fa-instagram" aria-hidden="true"></i>
|
|
||||||
<span>
|
|
||||||
Instagram
|
|
||||||
</span>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<script>
|
||||||
|
function goToSlide(index) {
|
||||||
|
$('#ekstrakurikulerCarousel').carousel(index);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<div class="footer_container">
|
||||||
|
<!-- info section -->
|
||||||
|
|
||||||
<!-- end info section -->
|
<section class="info_section ">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="info_detail">
|
||||||
|
<h4>
|
||||||
|
Sistem Pendukung Keputusan Pemilihan Ekstrakurikuler Siswa di MAN 3 Banyuwangi
|
||||||
|
</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="info_link_box">
|
||||||
|
<h4>
|
||||||
|
Links
|
||||||
|
</h4>
|
||||||
|
<div class="info_links">
|
||||||
|
<a class="" href="#home">
|
||||||
|
Home
|
||||||
|
</a>
|
||||||
|
<a class="" href="#ekstrakurikuler">
|
||||||
|
Ekstrakurikuler
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="info_contact">
|
||||||
|
<h4>
|
||||||
|
Address
|
||||||
|
</h4>
|
||||||
|
<div class="contact_link_box">
|
||||||
|
<a href="https://maps.app.goo.gl/ibCGWyfsxw8pbR6i9">
|
||||||
|
<i class="fa fa-map-marker" aria-hidden="true"></i>
|
||||||
|
<span>
|
||||||
|
Location
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
<a href="mailto:man3banyuwangi@gmail.com">
|
||||||
|
<i class="fa fa-envelope" aria-hidden="true"></i>
|
||||||
|
<span>
|
||||||
|
Email
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
<a href="tel:+62333397173">
|
||||||
|
<i class="fa fa-phone" aria-hidden="true"></i>
|
||||||
|
<span>
|
||||||
|
Telepon
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
<a href="https://www.instagram.com/osimman3banyuwangi" target="_blank">
|
||||||
|
<i class="fa fa-instagram" aria-hidden="true"></i>
|
||||||
|
<span>
|
||||||
|
Instagram
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
<!-- footer section -->
|
|
||||||
<footer class="footer_section">
|
|
||||||
<div class="container">
|
|
||||||
<p>
|
|
||||||
© <span id="displayYear"></span> All Rights Reserved By
|
|
||||||
<a href="home">SIPEX</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</footer>
|
|
||||||
<!-- footer section -->
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- jQery -->
|
<!-- end info section -->
|
||||||
<script src="js/jquery-3.4.1.min.js"></script>
|
|
||||||
<!-- popper js -->
|
<!-- footer section -->
|
||||||
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous">
|
<footer class="footer_section">
|
||||||
</script>
|
<div class="container">
|
||||||
<!-- bootstrap js -->
|
<p>
|
||||||
<script src="js/bootstrap.js"></script>
|
© <span id="displayYear"></span> All Rights Reserved By
|
||||||
<script src="js/custom.js"></script>
|
<a href="home">SIPEX</a>
|
||||||
<!-- Google Map -->
|
</p>
|
||||||
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCh39n5U-4IoWpsVGUHWdqB6puEkhRLdmI&callback=myMap"></script>
|
</div>
|
||||||
<!-- End Google Map -->
|
</footer>
|
||||||
<!-- Swiper JS -->
|
<!-- footer section -->
|
||||||
<script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>
|
</div>
|
||||||
|
|
||||||
|
<!-- jQery -->
|
||||||
|
<script src="js/jquery-3.4.1.min.js"></script>
|
||||||
|
<!-- 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>
|
||||||
|
<!-- bootstrap js -->
|
||||||
|
<script src="js/bootstrap.js"></script>
|
||||||
|
<script src="js/custom.js"></script>
|
||||||
|
<!-- Google Map -->
|
||||||
|
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCh39n5U-4IoWpsVGUHWdqB6puEkhRLdmI&callback=myMap">
|
||||||
|
</script>
|
||||||
|
<!-- End Google Map -->
|
||||||
|
<!-- Swiper JS -->
|
||||||
|
<script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
@ -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