ui_hayatie

This commit is contained in:
hayatie
2024-04-15 11:57:34 +08:00
parent 9c978355dd
commit 92675c3c68
16 changed files with 77 additions and 34 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
<?php
<?php
namespace App\Http\Middleware;
+1
View File
@@ -8,6 +8,7 @@ class Nominee extends Model
{
protected $table = 'nominee';
protected $fillable = [
'name',
'unit',
'no_anggota',
Binary file not shown.

After

Width:  |  Height:  |  Size: 773 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 KiB

@@ -33,7 +33,7 @@
export default {
created: function () {
if (!this.util.isLogin())
return this.$router.push({name: 'Admin Login'});
return this.$router.push({name: 'Log Masuk Admin ==='});
}
}
</script>
@@ -1,7 +1,7 @@
<template>
<div class="panel panel-default">
<div class="panel-body">
<h4> Recent Elections</h4>
<h4> Undian Terkini</h4>
<div class="form-group">
<button class="btn btn-success" v-if="data.election.status == 1 && data.user.role==1"
@click="util.showModal('#start-election-modal')">Start Election</button>
@@ -13,7 +13,7 @@
<button class="btn btn-danger" v-if="data.election.status == 2"
@click="util.showModal('#stop-election-modal')">End Election</button>
<label v-if="data.election.status == 2">Election has Started {{ start_date }}</label>
<label v-if="data.election.status == 2">Undian bermula {{ start_date }}</label>
</div>
@@ -1,5 +1,6 @@
<template>
<div>
<div v-if="!loading">
<nav class="navbar navbar-default navbar-fixed-top" id="nav">
<div class="container-fluid">
@@ -15,7 +16,7 @@
<ul class="nav navbar-nav">
<!-- {{ users }} -->
<router-link :to="{name: 'Admin Home'}" tag="li" exact><a href="#">Home</a></router-link>
<router-link :to="{name: 'Admin Home'}" tag="li" exact><a href="#">Laman Utama </a></router-link>
<router-link :to="{name: 'Kemaskini Jawatan'}" v-if="data.user.role==1" tag="li">
<a href="#">Jawatan</a>
</router-link>
@@ -69,7 +69,7 @@ export default{
created: function () {
if (this.util.isLogin())
return this.$router.push({name:'Admin Home'})
this.util.setTitle('Admin Login');
this.util.setTitle('Log Masuk Admin ');
},
methods: {
@@ -39,6 +39,7 @@
<img :alt="nominee.name" :src="createBase64ImageUrl(nominee.photo)" class="thumbnail"
style="height: 60px;width: 60px;">
</td>
<!-- <td>{{ nominee.id }}</td> -->
<td>{{ nominee.name }}</td>
<td>{{ nominee.no_anggota }}</td>
<td>{{ nominee.unit }}</td>
@@ -15,7 +15,7 @@
<li class="list-group-item" v-if="data.election.status==2">
<center>
<router-link v-if="!hasVoted()" :to="{name: 'Vote'}" class="btn btn-info">
Vote Now
Undi Sekarang
</router-link>
<router-link v-else :to="{name: 'Result'}" class="btn btn-info">
Papar Keputusan
@@ -44,7 +44,7 @@
<thead>
<tr>
<th></th>
<th>Name</th>
<th>Nama</th>
<th>Unit</th>
<th>Taraf Pendidikan</th>
<th>Pengalaman Kerja </th>
@@ -32,7 +32,7 @@
<thead>
<tr>
<th></th>
<th>Name</th>
<th>Nama</th>
<th>No. Anggota</th>
<th>Unit</th>
</tr>
@@ -57,7 +57,7 @@
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">AGM</h5>
<h5 class="modal-title" id="exampleModalLabel">MyKoPKB </h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
@@ -1,7 +1,8 @@
<template>
<div class="row col-md-10 col-md-offset-1">
<div class="col-md-12">
<h3 class="text-center">Pautan Zoom</h3>
<h6 class="text-center">Pautan Zoom</h6>
<div>
<img :src="imageUrl" alt="Centered Image " class="centered-image" />
@@ -9,14 +9,14 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" :href="data.baseURL" > <img src='https://i.postimg.cc/ZBDD0ZfQ/Whats-App-Image-2024-03-21-at-1-24-46-PM-2.jpg' border='0' alt="MyKoPKB Logo"></a>
<a class="navbar-brand" :href="data.baseURL" ><img src='https://i.postimg.cc/ZBDD0ZfQ/Whats-App-Image-2024-03-21-at-1-24-46-PM-2.jpg' border='0' alt="MyKoPKB Logo"></a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<router-link :to="{name: 'Voter Home'}" tag="li" exact>
<a href="#">Home</a>
<a href="#">Laman Utama </a>
</router-link>
<router-link :to="{name: 'Attendance'}" tag="li" exact>
@@ -27,13 +27,15 @@
<a href="#">Pautan Zoom</a>
</router-link>
<router-link :to="{name: 'Result'}" v-if="data.election.status==2 && hasVoted()" tag="li">
<a href="#">Keputusan</a>
</router-link>
<router-link :to="{name: 'Vote'}" v-if="data.election.status==2 && data.user.saham >= 500 && !hasVoted()" tag="li" exact>
<a href="#">Undian</a>
</router-link>
<router-link :to="{name: 'Result'}" v-if="data.election.status==2 && hasVoted()" tag="li">
<a href="#">Keputusan</a>
</router-link>
</ul>
<ul class="nav navbar-right navbar-nav">
@@ -47,7 +49,7 @@
<span class="fa fa-user"></span> {{ data.user.name }} <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li @click="logout()"><a>Logout</a></li>
<li @click="logout()"><a>Log Keluar</a></li>
</ul>
</li>
</ul>
File diff suppressed because one or more lines are too long
+30 -2
View File
@@ -3,12 +3,13 @@
<head lang="en">
<meta charset="UTF-8">
<title>MyKoPKB == eVoting System</title>
<title>Portal MyKoPKB </title>
<link rel="icon" type="image/png" href="https://i.ibb.co/XjbXhMQ/My-Ko-PKB-logo-removebg-preview-1.png" alt="My-Ko-PKB-logo-removebg-preview-1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
<link rel="stylesheet" href="/css/app.css">
</head>
@@ -20,6 +21,8 @@
<div id="error"></div>
<script>
window.config = {
"API": "/api/v1/", //URL OF YOUR API LOCATED
@@ -45,6 +48,31 @@
<script src="https://cdn.jsdelivr.net/npm/moment@2.29.1/moment.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-router@3.4.9/dist/vue-router.min.js"></script>
<script src="/js/app.js"></script>
<!-- Bootstrap CSS -->
</body>
<footer class="bg-body-tertiary text-center text-lg-start">
<!-- Copyright -->
<div class="text-center py-4" style="background-color: rgba(0, 0, 0, 0.05);">
<b>Koperasi Permodalan Kelantan Berhad © 2024 All Right Reserved</b>
<a class="text-body" href="https://koppkb.com"></a>
</div>
<!-- Copyright -->
</footer>
<style>
footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
/* padding: 40px 0; */
}
</style>
</html>