ui_hayatie
This commit is contained in:
@@ -8,6 +8,7 @@ class Nominee extends Model
|
|||||||
{
|
{
|
||||||
protected $table = 'nominee';
|
protected $table = 'nominee';
|
||||||
protected $fillable = [
|
protected $fillable = [
|
||||||
|
|
||||||
'name',
|
'name',
|
||||||
'unit',
|
'unit',
|
||||||
'no_anggota',
|
'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 {
|
export default {
|
||||||
created: function () {
|
created: function () {
|
||||||
if (!this.util.isLogin())
|
if (!this.util.isLogin())
|
||||||
return this.$router.push({name: 'Admin Login'});
|
return this.$router.push({name: 'Log Masuk Admin ==='});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<h4> Recent Elections</h4>
|
<h4> Undian Terkini</h4>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<button class="btn btn-success" v-if="data.election.status == 1 && data.user.role==1"
|
<button class="btn btn-success" v-if="data.election.status == 1 && data.user.role==1"
|
||||||
@click="util.showModal('#start-election-modal')">Start Election</button>
|
@click="util.showModal('#start-election-modal')">Start Election</button>
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
<button class="btn btn-danger" v-if="data.election.status == 2"
|
<button class="btn btn-danger" v-if="data.election.status == 2"
|
||||||
@click="util.showModal('#stop-election-modal')">End Election</button>
|
@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>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
<div v-if="!loading">
|
<div v-if="!loading">
|
||||||
<nav class="navbar navbar-default navbar-fixed-top" id="nav">
|
<nav class="navbar navbar-default navbar-fixed-top" id="nav">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
@@ -15,7 +16,7 @@
|
|||||||
|
|
||||||
<ul class="nav navbar-nav">
|
<ul class="nav navbar-nav">
|
||||||
<!-- {{ users }} -->
|
<!-- {{ 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">
|
<router-link :to="{name: 'Kemaskini Jawatan'}" v-if="data.user.role==1" tag="li">
|
||||||
<a href="#">Jawatan</a>
|
<a href="#">Jawatan</a>
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ export default{
|
|||||||
created: function () {
|
created: function () {
|
||||||
if (this.util.isLogin())
|
if (this.util.isLogin())
|
||||||
return this.$router.push({name:'Admin Home'})
|
return this.$router.push({name:'Admin Home'})
|
||||||
this.util.setTitle('Admin Login');
|
this.util.setTitle('Log Masuk Admin ');
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@@ -39,6 +39,7 @@
|
|||||||
<img :alt="nominee.name" :src="createBase64ImageUrl(nominee.photo)" class="thumbnail"
|
<img :alt="nominee.name" :src="createBase64ImageUrl(nominee.photo)" class="thumbnail"
|
||||||
style="height: 60px;width: 60px;">
|
style="height: 60px;width: 60px;">
|
||||||
</td>
|
</td>
|
||||||
|
<!-- <td>{{ nominee.id }}</td> -->
|
||||||
<td>{{ nominee.name }}</td>
|
<td>{{ nominee.name }}</td>
|
||||||
<td>{{ nominee.no_anggota }}</td>
|
<td>{{ nominee.no_anggota }}</td>
|
||||||
<td>{{ nominee.unit }}</td>
|
<td>{{ nominee.unit }}</td>
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
<li class="list-group-item" v-if="data.election.status==2">
|
<li class="list-group-item" v-if="data.election.status==2">
|
||||||
<center>
|
<center>
|
||||||
<router-link v-if="!hasVoted()" :to="{name: 'Vote'}" class="btn btn-info">
|
<router-link v-if="!hasVoted()" :to="{name: 'Vote'}" class="btn btn-info">
|
||||||
Vote Now
|
Undi Sekarang
|
||||||
</router-link>
|
</router-link>
|
||||||
<router-link v-else :to="{name: 'Result'}" class="btn btn-info">
|
<router-link v-else :to="{name: 'Result'}" class="btn btn-info">
|
||||||
Papar Keputusan
|
Papar Keputusan
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th></th>
|
<th></th>
|
||||||
<th>Name</th>
|
<th>Nama</th>
|
||||||
<th>Unit</th>
|
<th>Unit</th>
|
||||||
<th>Taraf Pendidikan</th>
|
<th>Taraf Pendidikan</th>
|
||||||
<th>Pengalaman Kerja </th>
|
<th>Pengalaman Kerja </th>
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th></th>
|
<th></th>
|
||||||
<th>Name</th>
|
<th>Nama</th>
|
||||||
<th>No. Anggota</th>
|
<th>No. Anggota</th>
|
||||||
<th>Unit</th>
|
<th>Unit</th>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -57,7 +57,7 @@
|
|||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog" role="document">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<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">
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
<span aria-hidden="true">×</span>
|
<span aria-hidden="true">×</span>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="row col-md-10 col-md-offset-1">
|
<div class="row col-md-10 col-md-offset-1">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<h3 class="text-center">Pautan Zoom</h3>
|
|
||||||
|
<h6 class="text-center">Pautan Zoom</h6>
|
||||||
<div>
|
<div>
|
||||||
<img :src="imageUrl" alt="Centered Image " class="centered-image" />
|
<img :src="imageUrl" alt="Centered Image " class="centered-image" />
|
||||||
|
|
||||||
|
|||||||
@@ -9,14 +9,14 @@
|
|||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</button>
|
</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>
|
||||||
<div class="collapse navbar-collapse" id="myNavbar">
|
<div class="collapse navbar-collapse" id="myNavbar">
|
||||||
|
|
||||||
<ul class="nav navbar-nav">
|
<ul class="nav navbar-nav">
|
||||||
|
|
||||||
<router-link :to="{name: 'Voter Home'}" tag="li" exact>
|
<router-link :to="{name: 'Voter Home'}" tag="li" exact>
|
||||||
<a href="#">Home</a>
|
<a href="#">Laman Utama </a>
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|
||||||
<router-link :to="{name: 'Attendance'}" tag="li" exact>
|
<router-link :to="{name: 'Attendance'}" tag="li" exact>
|
||||||
@@ -27,13 +27,15 @@
|
|||||||
<a href="#">Pautan Zoom</a>
|
<a href="#">Pautan Zoom</a>
|
||||||
</router-link>
|
</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>
|
<router-link :to="{name: 'Vote'}" v-if="data.election.status==2 && data.user.saham >= 500 && !hasVoted()" tag="li" exact>
|
||||||
<a href="#">Undian</a>
|
<a href="#">Undian</a>
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|
||||||
<router-link :to="{name: 'Result'}" v-if="data.election.status==2 && hasVoted()" tag="li">
|
|
||||||
<a href="#">Keputusan</a>
|
|
||||||
</router-link>
|
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="nav navbar-right navbar-nav">
|
<ul class="nav navbar-right navbar-nav">
|
||||||
@@ -47,7 +49,7 @@
|
|||||||
<span class="fa fa-user"></span> {{ data.user.name }} <span class="caret"></span>
|
<span class="fa fa-user"></span> {{ data.user.name }} <span class="caret"></span>
|
||||||
</a>
|
</a>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li @click="logout()"><a>Logout</a></li>
|
<li @click="logout()"><a>Log Keluar</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -3,7 +3,8 @@
|
|||||||
|
|
||||||
<head lang="en">
|
<head lang="en">
|
||||||
<meta charset="UTF-8">
|
<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">
|
<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" 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="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
|
||||||
@@ -20,6 +21,8 @@
|
|||||||
|
|
||||||
<div id="error"></div>
|
<div id="error"></div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
window.config = {
|
window.config = {
|
||||||
"API": "/api/v1/", //URL OF YOUR API LOCATED
|
"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/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="https://cdn.jsdelivr.net/npm/vue-router@3.4.9/dist/vue-router.min.js"></script>
|
||||||
<script src="/js/app.js"></script>
|
<script src="/js/app.js"></script>
|
||||||
</body>
|
<!-- 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>
|
</html>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user