Skip to content

Commit

Permalink
add cabang struktur diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
punkestu committed Dec 1, 2024
1 parent cc982e9 commit d4a6b25
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 2 deletions.
5 changes: 5 additions & 0 deletions app/Http/Controllers/Rotasi/CabangController.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,4 +286,9 @@ public function uploadKonsep($id, Request $request)
$konsep->save();
return redirect()->back()->with('success', 'Konsep berhasil ditambahkan');
}

public function struktur()
{
return view('rotasi.cabang.struktur');
}
}
Binary file added public/images/struktur.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions resources/views/rotasi/cabang/struktur.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">

<head>
@include('components/head')
<title>Air Mutasi | Profil</title>
</head>

<body class="font-sans tracking-wider">
@include('components/header', ['static' => true])
@include('components.modal-component')
<main class="px-8 py-16">
<img src="/images/struktur.jpg" alt="struktur">
</main>
@include('components.footer')
<script src="/script/nav.js"></script>
<script src="/script/chatbot.js"></script>
</body>

</html>
4 changes: 2 additions & 2 deletions resources/views/welcome.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
setiap proses rotasi, demosi, dan promosi dilakukan dengan cara yang adil dan efisien.
</p>
<div class="grid md:grid-cols-2 gap-4 mt-4">
<div class="bg-[#003285] text-white p-4 rounded-md">
<a href="/cabang/struktur" class="bg-[#003285] text-white p-4 rounded-md">
<p class="font-semibold text-2xl text-center">{{ $cabangs->count() }}+</p>
<p class="opacity-60 text-center">KANTOR CABANG</p>
</div>
</a>
<a href="/personel" class="bg-[#003285] text-white p-4 rounded-md">
<p class="font-semibold text-2xl text-center">{{ $personel }}+</p>
<p class="opacity-60 text-center">SDM OPERASI</p>
Expand Down
1 change: 1 addition & 0 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
Route::middleware("guest")->get("/login", [AuthController::class, 'loginView'])->name('login');
Route::middleware("guest")->post("/login", [AuthController::class, 'login']);
Route::middleware("auth:web")->get("/logout", [AuthController::class, 'logout'])->name('logout');
Route::middleware("auth:web")->get("/cabang/struktur", [RotasiCabangController::class, 'struktur'])->name('cabang.struktur');

Route::group(['prefix' => 'download', 'middleware' => ["auth:web"]], function () {
Route::middleware('is.admin')->get('/pengajuan/{id}', [RotasiPengajuanController::class, 'document']);
Expand Down

0 comments on commit d4a6b25

Please sign in to comment.