add layouts, home ui

This commit is contained in:
Amir Hamzan
2021-11-17 13:15:25 +08:00
parent 2bbd2bc29f
commit 2a4bf0cc81
21 changed files with 493 additions and 1268 deletions
@@ -30,6 +30,7 @@ class LoginController extends Controller
public function showLoginForm()
{
return view('auth.login');
// return view('includes.login.loginportal');
}
protected function authenticated(Request $request, $user)
Binary file not shown.

After

Width:  |  Height:  |  Size: 171 KiB

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="10px" height="7px" viewBox="0 0 10 7" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>down-arrow</title>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="2" transform="translate(-938.000000, -135.000000)" fill="#252f40" fill-rule="nonzero">
<g id="down-arrow" transform="translate(938.000000, 135.000000)">
<path d="M7.91769231,0.994615385 L4.61538462,4.29692308 L1.31307692,0.994615385 C1.01124701,0.7030983 0.531473248,0.707267405 0.234754942,1.00398571 C-0.0619633645,1.30070402 -0.0661324689,1.78047778 0.225384615,2.08230769 L4.07153846,5.92846154 C4.37192296,6.22875534 4.85884627,6.22875534 5.15923077,5.92846154 L9.00538462,2.08230769 C9.20535122,1.88917348 9.28554815,1.60317085 9.21515166,1.33422514 C9.14475517,1.06527942 8.93472058,0.855244834 8.66577486,0.784848341 C8.39682915,0.714451848 8.11082652,0.794648781 7.91769231,0.994615385 Z" id="Path"></path>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

@@ -0,0 +1 @@
<svg height="7" viewBox="0 0 10 7" width="10" xmlns="http://www.w3.org/2000/svg"><path d="m7.91769231.99461539-3.30230769 3.30230769-3.3023077-3.30230769c-.30182991-.29151709-.78160367-.28734798-1.07832198.00937032-.2967183.29671831-.30088741.77649207-.00937032 1.07832198l3.84615384 3.84615385c.3003845.3002938.78730781.3002938 1.08769231 0l3.84615385-3.84615385c.1999666-.19313421.28016353-.47913684.20976704-.74808255-.07039649-.26894572-.28043108-.47898031-.5493768-.5493768-.26894571-.07039649-.55494834.00980044-.74808255.20976705z" fill="#fff"/></svg>

After

Width:  |  Height:  |  Size: 558 B

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="10px" height="7px" viewBox="0 0 10 7" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>down-arrow</title>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="2" transform="translate(-938.000000, -135.000000)" fill="#67748E" fill-rule="nonzero">
<g id="down-arrow" transform="translate(938.000000, 135.000000)">
<path d="M7.91769231,0.994615385 L4.61538462,4.29692308 L1.31307692,0.994615385 C1.01124701,0.7030983 0.531473248,0.707267405 0.234754942,1.00398571 C-0.0619633645,1.30070402 -0.0661324689,1.78047778 0.225384615,2.08230769 L4.07153846,5.92846154 C4.37192296,6.22875534 4.85884627,6.22875534 5.15923077,5.92846154 L9.00538462,2.08230769 C9.20535122,1.88917348 9.28554815,1.60317085 9.21515166,1.33422514 C9.14475517,1.06527942 8.93472058,0.855244834 8.66577486,0.784848341 C8.39682915,0.714451848 8.11082652,0.794648781 7.91769231,0.994615385 Z" id="Path"></path>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

+123
View File
@@ -0,0 +1,123 @@
@extends ('includes.main.index')
@section('content')
<title>Home | Customer Portal</title>
<div class="col-lg-4 ms-auto mt-lg-0 mt-8">
<div class="card">
<div class="card-header p-0 position-relative mt-n4 mx-3 z-index-2">
<a class="d-block blur-shadow-image">
<img src="{{ asset('assets/img/material-kit/internal/record.jpg') }}" alt="img-colored-shadow" class="img-fluid border-radius-lg">
</a>
</div>
<div class="card-body text-center">
<h5 class="font-weight-normal">
<a href="javascript:;">Rekod Pembelian</a>
</h5>
<p class="mb-0">
Website visitors today demand a frictionless user expericence — especially when using search. Because
of the hight standards.
</p>
<button type="button" class="btn bg-gradient-info btn-sm mb-0 mt-3">Rekod Pembelian</button>
</div>
</div>
</div>
<div class="col-lg-4 ms-auto mt-lg-0 mt-8">
<div class="card">
<div class="card-header p-0 position-relative mt-n4 mx-3 z-index-2">
<a class="d-block blur-shadow-image">
<img src="{{ asset('assets/img/material-kit/internal/paymentbg1.jpg') }}" alt="img-colored-shadow" class="img-fluid border-radius-lg">
</a>
</div>
<div class="card-body text-center">
<h5 class="font-weight-normal">
<a href="javascript:;">Pembayaran</a>
</h5>
<p class="mb-0">
Website visitors today demand a frictionless user expericence — especially when using search. Because
of the hight standards.
</p>
<button type="button" class="btn bg-gradient-info btn-sm mb-0 mt-3">Pembayaran</button>
</div>
</div>
</div>
<div class="col-lg-4 ms-auto mt-lg-0 mt-8">
<div class="card">
<div class="card-header p-0 position-relative mt-n4 mx-3 z-index-2">
<a class="d-block blur-shadow-image">
<img src="{{ asset('assets/img/material-kit/internal/stackgold.jpg') }}" alt="img-colored-shadow" class="img-fluid border-radius-lg">
</a>
</div>
<div class="card-body text-center">
<h5 class="font-weight-normal">
<a href="javascript:;">Tebus</a>
</h5>
<p class="mb-0">
Website visitors today demand a frictionless user expericence — especially when using search. Because
of the hight standards.
</p>
<button type="button" class="btn bg-gradient-info btn-sm mb-0 mt-3">Tebus</button>
</div>
</div>
</div>
<div class="col-lg-4 ms-auto mt-lg-8 mt-8">
<div class="card">
<div class="card-header p-0 position-relative mt-n4 mx-3 z-index-2">
<a class="d-block blur-shadow-image">
<img src="{{ asset('assets/img/material-kit/internal/analisa.jpg') }}" alt="img-colored-shadow" class="img-fluid border-radius-lg">
</a>
</div>
<div class="card-body text-center">
<h5 class="font-weight-normal">
<a href="javascript:;">Analisa</a>
</h5>
<p class="mb-0">
Website visitors today demand a frictionless user expericence — especially when using search. Because
of the hight standards.
</p>
<button type="button" class="btn bg-gradient-info btn-sm mb-0 mt-3">Analisa</button>
</div>
</div>
</div>
<div class="col-lg-4 ms-auto mt-lg-8 mt-8">
<div class="card">
<div class="card-header p-0 position-relative mt-n4 mx-3 z-index-2">
<a class="d-block blur-shadow-image">
<img src="{{ asset('assets/img/material-kit/internal/discussCopy.jpg') }}" alt="img-colored-shadow" class="img-fluid border-radius-lg">
</a>
</div>
<div class="card-body text-center">
<h5 class="font-weight-normal">
<a href="javascript:;">Next Function</a>
</h5>
<p class="mb-0">
Website visitors today demand a frictionless user expericence — especially when using search. Because
of the hight standards.
</p>
<button type="button" class="btn bg-gradient-info btn-sm mb-0 mt-3">Next Function</button>
</div>
</div>
</div>
<div class="col-lg-4 ms-auto mt-lg-8 mt-8">
<div class="card">
<div class="card-header p-0 position-relative mt-n4 mx-3 z-index-2">
<a class="d-block blur-shadow-image">
<img src="https://images.unsplash.com/photo-1544717302-de2939b7ef71?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80" alt="img-colored-shadow" class="img-fluid border-radius-lg">
</a>
</div>
<div class="card-body text-center">
<h5 class="font-weight-normal">
<a href="javascript:;">Next Function</a>
</h5>
<p class="mb-0">
Website visitors today demand a frictionless user expericence — especially when using search. Because
of the hight standards.
</p>
<button type="button" class="btn bg-gradient-info btn-sm mb-0 mt-3">Next Function</button>
</div>
</div>
</div>
@endsection
@@ -4,16 +4,16 @@
<title>Pertama Kali | Customer Portal</title>
<h6 style="text-align: center; margin-bottom: 10%;">Pertama Kali Masuk ke Customer Portal</h6>
<h6 style="text-align: center; margin-bottom: 10%;">Pertama Kali</h6>
<form role="form" class="text-start">
<div class="input-group input-group-outline my-3">
<label class="form-label">Email</label>
<input type="email" class="form-control">
<!-- <label class="form-label">Email</label> -->
<input placeholder="Email" type="email" class="form-control">
</div>
<div class="input-group input-group-outline mb-3">
<label class="form-label">One-Time-Password</label>
<input type="password" class="form-control">
<!-- <label class="form-label">One-Time-Password</label> -->
<input placeholder="One-Time-Password" type="password" class="form-control">
</div>
<div class="text-center">
@@ -6,21 +6,21 @@
<h6 style="text-align: center; margin-bottom: 10%;">Log-Masuk ke Customer Portal</h6>
<form role="form" class="text-start">
<form role="#"enctype="multipart/form-data" class="login-form" novalidate="novalidate">
<div class="input-group input-group-outline my-3">
<label class="form-label">Email</label>
<input type="email" class="form-control">
<!-- <label class="form-label">Email</label> -->
<input placeholder="E-mail" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" type="email" name="email" value="{{ old('email') }}" id="login-username" >
</div>
<div class="input-group input-group-outline mb-3">
<label class="form-label">Password</label>
<input type="password" class="form-control">
<!-- <label class="form-label">Password</label> -->
<input placeholder="Password" class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}" type="password" name="password" id="login-password" >
</div>
<div class="form-check form-switch d-flex align-items-center mb-3">
<input class="form-check-input" type="checkbox" id="rememberMe">
<label class="form-check-label mb-0 ms-2" for="rememberMe">Remember me</label>
</div>
<div class="text-center">
<button type="button" class="btn bg-gradient-dark w-100 my-4 mb-2" style="background: #4A4E59;">Log In</button>
<a type="submit" href="/portalhome" class="btn bg-gradient-dark w-100 my-4 mb-2" onclick="loadingbtn();this.disabled=true;this.form.submit();" style="background: #4A4E59;">Log In</a>
</div>
<p class="mt-6 text-sm text-center">
@@ -0,0 +1,241 @@
<footer class="footer pt-5 mt-5">
<div class="container">
<div class=" row">
<div class="col-md-3 mb-4 ms-auto">
<div>
<h6 class="font-weight-bolder">Ar-Rahn</h6>
<p>Koperasi Permodalan Kelantan Berhad</p>
</div>
<div>
<ul class="d-flex flex-row ms-n3 nav">
<li class="nav-item">
<a class="nav-link pe-1" href="#facebook">
<i class="fab fa-facebook text-lg opacity-8"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link pe-1" href="#twitter">
<i class="fab fa-twitter text-lg opacity-8"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link pe-1" href="#youtube">
<i class="fab fa-youtube text-lg opacity-8"></i>
</a>
</li>
</ul>
</div>
</div>
<div class="col-md-2 col-sm-6 col-6 mb-4">
<div>
<h6 class="text-sm">Company</h6>
<ul class="flex-column ms-n3 nav">
<li class="nav-item">
<a class="nav-link" href="https://www.creative-tim.com/presentation" target="_blank">
About Us
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://www.creative-tim.com/templates/free" target="_blank">
Freebies
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://www.creative-tim.com/templates/premium" target="_blank">
Premium Tools
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://www.creative-tim.com/blog" target="_blank">
Blog
</a>
</li>
</ul>
</div>
</div>
<div class="col-md-2 col-sm-6 col-6 mb-4">
<div>
<h6 class="text-sm">Resources</h6>
<ul class="flex-column ms-n3 nav">
<li class="nav-item">
<a class="nav-link" href="https://iradesign.io/" target="_blank">
Illustrations
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://www.creative-tim.com/bits" target="_blank">
Bits & Snippets
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://www.creative-tim.com/affiliates/new" target="_blank">
Affiliate Program
</a>
</li>
</ul>
</div>
</div>
<div class="col-md-2 col-sm-6 col-6 mb-4">
<div>
<h6 class="text-sm">Help & Support</h6>
<ul class="flex-column ms-n3 nav">
<li class="nav-item">
<a class="nav-link" href="https://www.creative-tim.com/contact-us" target="_blank">
Contact Us
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://www.creative-tim.com/knowledge-center" target="_blank">
Knowledge Center
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://services.creative-tim.com/?ref=ct-mk2-footer" target="_blank">
Custom Development
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://www.creative-tim.com/sponsorships" target="_blank">
Sponsorships
</a>
</li>
</ul>
</div>
</div>
<div class="col-md-2 col-sm-6 col-6 mb-4 me-auto">
<div>
<h6 class="text-sm">Legal</h6>
<ul class="flex-column ms-n3 nav">
<li class="nav-item">
<a class="nav-link" href="https://www.creative-tim.com/knowledge-center/terms-of-service" target="_blank">
Terms & Conditions
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://www.creative-tim.com/knowledge-center/privacy-policy" target="_blank">
Privacy Policy
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://www.creative-tim.com/license" target="_blank">
Licenses (EULA)
</a>
</li>
</ul>
</div>
</div>
<div class="col-12">
<div class="text-center">
<p class="text-dark my-4 text-sm font-weight-normal">
All rights reserved. Copyright ©
<script>
document.write(new Date().getFullYear())
</script> Koperasi Permodalan Kelantan Berhad.
</p>
</div>
</div>
</div>
</div>
</footer>
<!-- Core JS Files -->
<script src="{{ asset('assets/js/material-kit/core/popper.min.js') }}" type="text/javascript"></script>
<script src="{{ asset('assets/js/material-kit/core/bootstrap.min.js') }}" type="text/javascript"></script>
<script src="{{ asset('assets/js/material-kit/plugins/perfect-scrollbar.min.js') }}"></script>
<!-- Plugin for TypedJS, full documentation here: https://github.com/inorganik/CountUp.js -->
<script src="{{ asset('assets/js/material-kit/plugins/countup.min.js') }}"></script>
<!-- Plugin for Parallax, full documentation here: https://github.com/wagerfield/parallax -->
<script src="{{ asset('assets/js/material-kit/plugins/parallax.min.js') }}"></script>
<!-- Control Center for Material UI Kit: parallax effects, scripts for the example pages etc -->
<!-- Google Maps Plugin -->
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDTTfWur0PDbZWPr7Pmq8K3jiDp0_xUziI"></script>
<script src="{{ asset('assets/js/material-kit/material-kit.min.js?v=3.0.0') }}" type="text/javascript"></script>
<script>
// get the element to animate
var element = document.getElementById('count-stats');
var elementHeight = element.clientHeight;
// listen for scroll event and call animate function
document.addEventListener('scroll', animate);
// check if element is in view
function inView() {
// get window height
var windowHeight = window.innerHeight;
// get number of pixels that the document is scrolled
var scrollY = window.scrollY || window.pageYOffset;
// get current scroll position (distance from the top of the page to the bottom of the current viewport)
var scrollPosition = scrollY + windowHeight;
// get element position (distance from the top of the page to the bottom of the element)
var elementPosition = element.getBoundingClientRect().top + scrollY + elementHeight;
// is scroll position greater than element position? (is element in view?)
if (scrollPosition > elementPosition) {
return true;
}
return false;
}
var animateComplete = true;
// animate element when it is in view
function animate() {
// is element in view?
if (inView()) {
if (animateComplete) {
if (document.getElementById('state1')) {
const countUp = new CountUp('state1', document.getElementById("state1").getAttribute("countTo"));
if (!countUp.error) {
countUp.start();
} else {
console.error(countUp.error);
}
}
if (document.getElementById('state2')) {
const countUp1 = new CountUp('state2', document.getElementById("state2").getAttribute("countTo"));
if (!countUp1.error) {
countUp1.start();
} else {
console.error(countUp1.error);
}
}
if (document.getElementById('state3')) {
const countUp2 = new CountUp('state3', document.getElementById("state3").getAttribute("countTo"));
if (!countUp2.error) {
countUp2.start();
} else {
console.error(countUp2.error);
};
}
animateComplete = false;
}
}
}
if (document.getElementById('typed')) {
var typed = new Typed("#typed", {
stringsElement: '#typed-strings',
typeSpeed: 90,
backSpeed: 90,
backDelay: 200,
startDelay: 500,
loop: true
});
}
</script>
<script>
if (document.getElementsByClassName('page-header')) {
window.onscroll = debounce(function() {
var scrollPosition = window.pageYOffset;
var bgParallax = document.querySelector('.page-header');
var oVal = (window.scrollY / 3);
bgParallax.style.transform = 'translate3d(0,' + oVal + 'px,0)';
}, 6);
}
</script>
@@ -0,0 +1,21 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="apple-touch-icon" sizes="76x76" href="../assets/img/apple-icon.png">
<link rel="icon" type="image/png" href="../assets/img/favicon.png">
<!-- Fonts and icons -->
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900|Roboto+Slab:400,700" />
<!-- Nucleo Icons -->
<link href="{{ asset('css/nucleo-icons.css') }}" rel="stylesheet">
<link href="{{ asset('css/nucleo-svg.css') }}" rel="stylesheet">
<link href="{{ asset('argon') }}/img/brand/ARRAHN1.png" rel="icon" type="image/png">
<!-- Font Awesome Icons -->
<script src="https://kit.fontawesome.com/42d5adcbca.js" crossorigin="anonymous"></script>
<!-- Material Icons -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons+Round" rel="stylesheet">
<!-- CSS Files -->
<link href="{{ asset('css/material-kit.css') }}" rel="stylesheet">
@@ -0,0 +1,66 @@
<nav class="navbar navbar-expand-lg position-absolute top-0 z-index-3 w-100 shadow-none my-3 navbar-transparent ">
<div class="container">
<a class="navbar-brand text-white " href="#home" rel="tooltip" title="Designed and Coded by Creative Tim" data-placement="bottom">
MOHAMAD HAFIZUDDIN BIN HANAFI
</a>
<button class="navbar-toggler shadow-none ms-2" type="button" data-bs-toggle="collapse" data-bs-target="#navigation" aria-controls="navigation" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon mt-2">
<span class="navbar-toggler-bar bar1"></span>
<span class="navbar-toggler-bar bar2"></span>
<span class="navbar-toggler-bar bar3"></span>
</span>
</button>
<div class="collapse navbar-collapse w-100 pt-3 pb-2 py-lg-0 ms-lg-12 ps-lg-5" id="navigation">
<ul class="navbar-nav navbar-nav-hover ms-auto">
<li class="nav-item ms-lg-auto">
<a class="nav-link nav-link-icon me-2" href="#rekodpembelian">
<i class="fa fa-list-alt me-1"></i>
<p class="d-inline text-sm z-index-1 font-weight-bold" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Senarai Rekod Gadaian & Tebusan">Rekod Pembelian</p>
</a>
</li>
<li class="nav-item ms-lg-auto">
<a class="nav-link nav-link-icon me-2" href="#pemabayaran">
<i class="fa fa-money me-1"></i>
<p class="d-inline text-sm z-index-1 font-weight-bold" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Transaksi Pembayaran Upah">Pembayaran</p>
</a>
</li>
<li class="nav-item ms-lg-auto">
<a class="nav-link nav-link-icon me-2" href="#tebus">
<i class="fa fa-exchange me-1"></i>
<p class="d-inline text-sm z-index-1 font-weight-bold" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Tebus Marhun">Tebus</p>
</a>
</li>
<li class="nav-item ms-lg-auto">
<a class="nav-link nav-link-icon me-2" href="#analisa">
<i class="fa fa-line-chart me-1"></i>
<p class="d-inline text-sm z-index-1 font-weight-bold" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Analisa Marhun">Analisa</p>
</a>
</li>
<li class="nav-item ms-lg-auto">
<a class="nav-link nav-link-icon me-2" href="#profil">
<i class="fa fa-user me-1"></i>
<p class="d-inline text-sm z-index-1 font-weight-bold" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Tetapan Profile">Profil</p>
</a>
</li>
<li class="nav-item my-auto ms-3 ms-lg-0">
<a href="loginportal" class="btn btn-sm bg-white mb-0 me-1 mt-2 mt-md-0">Log out</a>
</li>
</ul>
</div>
</div>
</nav>
<header class="bg-gradient-dark">
<div class="page-header min-vh-75" style="background-image: url('assets/img/material-kit/internal/building.jpg');">
<span class="mask bg-gradient-dark opacity-6"></span>
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-8 text-center mx-auto my-auto">
<h1 class="text-white">AR RAHN CUSTOMER PORTAL</h1>
<p class="lead mb-4 text-white opacity-8">Dapatkan pelbagai kemudahan untuk penyelesaian masalah gadaian dan tebusan di Ar Rahn.</p>
<p class="lead mb-4 text-white opacity-8">Hubungi kami jika diperlukan yada yada yada kami jika diperlukan yada yada yada.</p>
</div>
</div>
</div>
</div>
</header>
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -26,7 +26,7 @@ Route::get('/firsttime', function () {
return view('/includes/login/firsttime');
});
Route::get('/portalhome', function () {
return view('/includes/login/firsttime');
return view('/includes/home');
});