login, home, analisa, pembayaran

This commit is contained in:
Amir Hamzan
2021-11-23 16:59:55 +08:00
parent 9be9dce2ee
commit 541950b1df
19 changed files with 840 additions and 284 deletions
+2 -2
View File
@@ -97,7 +97,7 @@ class AnalisaController extends Controller
// $StatistikBulanan = Http::get(config('api.url') .'/portal/financeMonth/',['icno' => $kpbaru])->json();
return view('analisa.index', compact("totalgadai",'bilangan_belum_tebus','belum_tebus','hargaemasterdahulu','bilangan_melebihi_6_bulan','bilakandilelong'));
// return view('includes.analisaportal', compact("totalgadai",'bilangan_belum_tebus','belum_tebus','hargaemasterdahulu','bilangan_melebihi_6_bulan','bilakandilelong'));
// return view('analisa.index', compact("totalgadai",'bilangan_belum_tebus','belum_tebus','hargaemasterdahulu','bilangan_melebihi_6_bulan','bilakandilelong'));
return view('includes.analisaportal', compact("totalgadai",'bilangan_belum_tebus','belum_tebus','hargaemasterdahulu','bilangan_melebihi_6_bulan','bilakandilelong'));
}
}
@@ -29,8 +29,8 @@ class LoginController extends Controller
public function showLoginForm()
{
return view('auth.login');
// return view('includes.login.loginportal');
// return view('auth.login');
return view('includes.login.loginportal');
}
protected function authenticated(Request $request, $user)
+1 -1
View File
@@ -21,6 +21,6 @@ class HomeController extends Controller
*/
public function index()
{
return view('dashboard');
return view('includes.home');
}
}
+2 -2
View File
@@ -23,8 +23,8 @@ class SemakController extends Controller
}
}
return view('semak.semaksag', compact('belum_tebus','cawangan'));
// return view('includes.rekod.pilihcawangan', compact('belum_tebus','cawangan'));
// return view('semak.semaksag', compact('belum_tebus','cawangan'));
return view('includes.rekod.pilihcawangan', compact('belum_tebus','cawangan'));
}
public function SenaraiSAG(Request $request)
+1
View File
@@ -17,6 +17,7 @@
"php-http/guzzle6-adapter": "^1.1"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.6",
"facade/ignition": "^2.5",
"fakerphp/faker": "^1.9.1",
"laravel/sail": "^1.0.1",
Generated
+219 -1
View File
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "2bff43f512ae6bf112fe64f741216b0f",
"content-hash": "ee326c107dcae364fcbc84364f0649a7",
"packages": [
{
"name": "asm89/stack-cors",
@@ -6381,6 +6381,91 @@
}
],
"packages-dev": [
{
"name": "barryvdh/laravel-debugbar",
"version": "v3.6.4",
"source": {
"type": "git",
"url": "https://github.com/barryvdh/laravel-debugbar.git",
"reference": "3c2d678269ba60e178bcd93e36f6a91c36b727f1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/barryvdh/laravel-debugbar/zipball/3c2d678269ba60e178bcd93e36f6a91c36b727f1",
"reference": "3c2d678269ba60e178bcd93e36f6a91c36b727f1",
"shasum": ""
},
"require": {
"illuminate/routing": "^6|^7|^8",
"illuminate/session": "^6|^7|^8",
"illuminate/support": "^6|^7|^8",
"maximebf/debugbar": "^1.17.2",
"php": ">=7.2",
"symfony/debug": "^4.3|^5",
"symfony/finder": "^4.3|^5"
},
"require-dev": {
"mockery/mockery": "^1.3.3",
"orchestra/testbench-dusk": "^4|^5|^6",
"phpunit/phpunit": "^8.5|^9.0",
"squizlabs/php_codesniffer": "^3.5"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.6-dev"
},
"laravel": {
"providers": [
"Barryvdh\\Debugbar\\ServiceProvider"
],
"aliases": {
"Debugbar": "Barryvdh\\Debugbar\\Facade"
}
}
},
"autoload": {
"psr-4": {
"Barryvdh\\Debugbar\\": "src/"
},
"files": [
"src/helpers.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Barry vd. Heuvel",
"email": "barryvdh@gmail.com"
}
],
"description": "PHP Debugbar integration for Laravel",
"keywords": [
"debug",
"debugbar",
"laravel",
"profiler",
"webprofiler"
],
"support": {
"issues": "https://github.com/barryvdh/laravel-debugbar/issues",
"source": "https://github.com/barryvdh/laravel-debugbar/tree/v3.6.4"
},
"funding": [
{
"url": "https://fruitcake.nl",
"type": "custom"
},
{
"url": "https://github.com/barryvdh",
"type": "github"
}
],
"time": "2021-10-21T10:57:31+00:00"
},
{
"name": "doctrine/instantiator",
"version": "1.4.0",
@@ -6891,6 +6976,71 @@
},
"time": "2021-10-01T13:32:17+00:00"
},
{
"name": "maximebf/debugbar",
"version": "v1.17.3",
"source": {
"type": "git",
"url": "https://github.com/maximebf/php-debugbar.git",
"reference": "e8ac3499af0ea5b440908e06cc0abe5898008b3c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/maximebf/php-debugbar/zipball/e8ac3499af0ea5b440908e06cc0abe5898008b3c",
"reference": "e8ac3499af0ea5b440908e06cc0abe5898008b3c",
"shasum": ""
},
"require": {
"php": "^7.1|^8",
"psr/log": "^1|^2|^3",
"symfony/var-dumper": "^2.6|^3|^4|^5"
},
"require-dev": {
"phpunit/phpunit": "^7.5.20 || ^9.4.2"
},
"suggest": {
"kriswallsmith/assetic": "The best way to manage assets",
"monolog/monolog": "Log using Monolog",
"predis/predis": "Redis storage"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.17-dev"
}
},
"autoload": {
"psr-4": {
"DebugBar\\": "src/DebugBar/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Maxime Bouroumeau-Fuseau",
"email": "maxime.bouroumeau@gmail.com",
"homepage": "http://maximebf.com"
},
{
"name": "Barry vd. Heuvel",
"email": "barryvdh@gmail.com"
}
],
"description": "Debug bar in the browser for php application",
"homepage": "https://github.com/maximebf/php-debugbar",
"keywords": [
"debug",
"debugbar"
],
"support": {
"issues": "https://github.com/maximebf/php-debugbar/issues",
"source": "https://github.com/maximebf/php-debugbar/tree/v1.17.3"
},
"time": "2021-10-19T12:33:27+00:00"
},
{
"name": "mockery/mockery",
"version": "1.4.4",
@@ -8830,6 +8980,74 @@
],
"time": "2020-09-28T06:39:44+00:00"
},
{
"name": "symfony/debug",
"version": "v4.4.31",
"source": {
"type": "git",
"url": "https://github.com/symfony/debug.git",
"reference": "43ede438d4cb52cd589ae5dc070e9323866ba8e0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/debug/zipball/43ede438d4cb52cd589ae5dc070e9323866ba8e0",
"reference": "43ede438d4cb52cd589ae5dc070e9323866ba8e0",
"shasum": ""
},
"require": {
"php": ">=7.1.3",
"psr/log": "^1|^2|^3"
},
"conflict": {
"symfony/http-kernel": "<3.4"
},
"require-dev": {
"symfony/http-kernel": "^3.4|^4.0|^5.0"
},
"type": "library",
"autoload": {
"psr-4": {
"Symfony\\Component\\Debug\\": ""
},
"exclude-from-classmap": [
"/Tests/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Provides tools to ease debugging PHP code",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/debug/tree/v4.4.31"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2021-09-24T13:30:14+00:00"
},
{
"name": "theseer/tokenizer",
"version": "1.2.1",
+233
View File
@@ -0,0 +1,233 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Debugbar Settings
|--------------------------------------------------------------------------
|
| Debugbar is enabled by default, when debug is set to true in app.php.
| You can override the value by setting enable to true or false instead of null.
|
| You can provide an array of URI's that must be ignored (eg. 'api/*')
|
*/
'enabled' => env('DEBUGBAR_ENABLED', null),
'except' => [
'telescope*',
'horizon*',
],
/*
|--------------------------------------------------------------------------
| Storage settings
|--------------------------------------------------------------------------
|
| DebugBar stores data for session/ajax requests.
| You can disable this, so the debugbar stores data in headers/session,
| but this can cause problems with large data collectors.
| By default, file storage (in the storage folder) is used. Redis and PDO
| can also be used. For PDO, run the package migrations first.
|
*/
'storage' => [
'enabled' => true,
'driver' => 'file', // redis, file, pdo, socket, custom
'path' => storage_path('debugbar'), // For file driver
'connection' => null, // Leave null for default connection (Redis/PDO)
'provider' => '', // Instance of StorageInterface for custom driver
'hostname' => '127.0.0.1', // Hostname to use with the "socket" driver
'port' => 2304, // Port to use with the "socket" driver
],
/*
|--------------------------------------------------------------------------
| Vendors
|--------------------------------------------------------------------------
|
| Vendor files are included by default, but can be set to false.
| This can also be set to 'js' or 'css', to only include javascript or css vendor files.
| Vendor files are for css: font-awesome (including fonts) and highlight.js (css files)
| and for js: jquery and and highlight.js
| So if you want syntax highlighting, set it to true.
| jQuery is set to not conflict with existing jQuery scripts.
|
*/
'include_vendors' => true,
/*
|--------------------------------------------------------------------------
| Capture Ajax Requests
|--------------------------------------------------------------------------
|
| The Debugbar can capture Ajax requests and display them. If you don't want this (ie. because of errors),
| you can use this option to disable sending the data through the headers.
|
| Optionally, you can also send ServerTiming headers on ajax requests for the Chrome DevTools.
|
| Note for your request to be identified as ajax requests they must either send the header
| X-Requested-With with the value XMLHttpRequest (most JS libraries send this), or have application/json as a Accept header.
*/
'capture_ajax' => true,
'add_ajax_timing' => false,
/*
|--------------------------------------------------------------------------
| Custom Error Handler for Deprecated warnings
|--------------------------------------------------------------------------
|
| When enabled, the Debugbar shows deprecated warnings for Symfony components
| in the Messages tab.
|
*/
'error_handler' => false,
/*
|--------------------------------------------------------------------------
| Clockwork integration
|--------------------------------------------------------------------------
|
| The Debugbar can emulate the Clockwork headers, so you can use the Chrome
| Extension, without the server-side code. It uses Debugbar collectors instead.
|
*/
'clockwork' => false,
/*
|--------------------------------------------------------------------------
| DataCollectors
|--------------------------------------------------------------------------
|
| Enable/disable DataCollectors
|
*/
'collectors' => [
'phpinfo' => true, // Php version
'messages' => true, // Messages
'time' => true, // Time Datalogger
'memory' => true, // Memory usage
'exceptions' => true, // Exception displayer
'log' => true, // Logs from Monolog (merged in messages if enabled)
'db' => true, // Show database (PDO) queries and bindings
'views' => true, // Views with their data
'route' => true, // Current route information
'auth' => false, // Display Laravel authentication status
'gate' => true, // Display Laravel Gate checks
'session' => true, // Display session data
'symfony_request' => true, // Only one can be enabled..
'mail' => true, // Catch mail messages
'laravel' => false, // Laravel version and environment
'events' => false, // All events fired
'default_request' => false, // Regular or special Symfony request logger
'logs' => false, // Add the latest log messages
'files' => false, // Show the included files
'config' => false, // Display config settings
'cache' => false, // Display cache events
'models' => true, // Display models
'livewire' => true, // Display Livewire (when available)
],
/*
|--------------------------------------------------------------------------
| Extra options
|--------------------------------------------------------------------------
|
| Configure some DataCollectors
|
*/
'options' => [
'auth' => [
'show_name' => true, // Also show the users name/email in the debugbar
],
'db' => [
'with_params' => true, // Render SQL with the parameters substituted
'backtrace' => true, // Use a backtrace to find the origin of the query in your files.
'backtrace_exclude_paths' => [], // Paths to exclude from backtrace. (in addition to defaults)
'timeline' => false, // Add the queries to the timeline
'duration_background' => true, // Show shaded background on each query relative to how long it took to execute.
'explain' => [ // Show EXPLAIN output on queries
'enabled' => false,
'types' => ['SELECT'], // Deprecated setting, is always only SELECT
],
'hints' => false, // Show hints for common mistakes
'show_copy' => false, // Show copy button next to the query
],
'mail' => [
'full_log' => false,
],
'views' => [
'timeline' => false, // Add the views to the timeline (Experimental)
'data' => false, //Note: Can slow down the application, because the data can be quite large..
],
'route' => [
'label' => true, // show complete route on bar
],
'logs' => [
'file' => null,
],
'cache' => [
'values' => true, // collect cache values
],
],
/*
|--------------------------------------------------------------------------
| Inject Debugbar in Response
|--------------------------------------------------------------------------
|
| Usually, the debugbar is added just before </body>, by listening to the
| Response after the App is done. If you disable this, you have to add them
| in your template yourself. See http://phpdebugbar.com/docs/rendering.html
|
*/
'inject' => true,
/*
|--------------------------------------------------------------------------
| DebugBar route prefix
|--------------------------------------------------------------------------
|
| Sometimes you want to set route prefix to be used by DebugBar to load
| its resources from. Usually the need comes from misconfigured web server or
| from trying to overcome bugs like this: http://trac.nginx.org/nginx/ticket/97
|
*/
'route_prefix' => '_debugbar',
/*
|--------------------------------------------------------------------------
| DebugBar route domain
|--------------------------------------------------------------------------
|
| By default DebugBar route served from the same domain that request served.
| To override default domain, specify it as a non-empty value.
*/
'route_domain' => null,
/*
|--------------------------------------------------------------------------
| DebugBar theme
|--------------------------------------------------------------------------
|
| Switches between light and dark theme. If set to auto it will respect system preferences
| Possible values: auto, light, dark
*/
'theme' => env('DEBUGBAR_THEME', 'auto'),
/*
|--------------------------------------------------------------------------
| Backtrace stack limit
|--------------------------------------------------------------------------
|
| By default, the DebugBar limits the number of frames returned by the 'debug_backtrace()' function.
| If you need larger stacktraces, you can increase this number. Setting it to 0 will result in no limit.
*/
'debug_backtrace_limit' => 50,
];
+15 -8
View File
@@ -1,9 +1,9 @@
@extends('layouts.app', ['class' => 'bg-white'])
@section('content')
{{-- @include('layouts.headers.guest') --}}
{{-- @include('layouts.headers.guest') --}}
<div class="user-login-5 ">
<div class="user-login-5 ">
<div class="row h-100 w-100 d-flex justify-content-center mx-auto">
<div class="col-md-6 col-xl-6">
<div class="container text-center mt-7">
@@ -62,8 +62,14 @@
<div class="col-sm-12 col-xs-12 forgetpassword">
<center>
<div class="forgot-password">
<a href="{{ route('auth.registerfirst') }}" class="text-light"><font color="#3598dc">Pertama Kali</font></a> |@if (Route::has('password.request')) <a href="{{ route('password.request') }}" class="text-light"><font color="#3598dc">Lupa Katalaluan</font></a>@endif
{{-- <a href="{{ route('auth.registerfirst') }}" class="text-light"><font color="#3598dc">Pertama Kali</font></a> |@if (Route::has('password.request')) <a href="{{ route('password.request') }}" class="text-light"><font color="#3598dc">Lupa Katalaluan</font></a>@endif --}}
<a href="{{ route('auth.registerfirst') }}" class="text-light">
<font color="#3598dc">Pertama Kali</font>
</a> |@if (Route::has('password.request')) <a href="{{ route('password.request') }}" class="text-light">
<font color="#3598dc">Lupa Katalaluan</font>
</a>@endif
{{-- <a href="{{ route('auth.registerfirst') }}" class="text-light"><font color="#3598dc">Pertama Kali</font></a> |@if (Route::has('password.request')) <a href="{{ route('password.request') }}" class="text-light">
<font color="#3598dc">Lupa Katalaluan</font>
</a>@endif --}}
</div>
<div style="font-size: 10px;"><br><br>Paparan terbaik menggunakan Mozilla Firefox, Google Chrome & Internet Explorer 9.0 ke atas dengan resolusi 1920 x 1080</div>
</center>
@@ -84,10 +90,9 @@
</div>
</div>
</div>
</div>
<script>
var slideIndex = 0;
showSlides();
@@ -98,8 +103,10 @@
slides[i].style.display = "none";
}
slideIndex++;
if (slideIndex > slides.length) {slideIndex = 1}
slides[slideIndex-1].style.display = "block";
if (slideIndex > slides.length) {
slideIndex = 1
}
slides[slideIndex - 1].style.display = "block";
setTimeout(showSlides, 10000); // Change image every 2 seconds
}
</script>
+35 -27
View File
@@ -1,12 +1,12 @@
@extends('layouts.app')
@section('content')
@include('layouts.headers.cards')
@include('modal.sessionmodal')
@include('layouts.headers.cards')
@include('modal.sessionmodal')
<!-- Header -->
<div class="header bg-primary pb-6">
<!-- Header -->
<div class="header bg-primary pb-6">
<div class="container-fluid">
<div class="header-body">
<div class="row align-items-center py-4">
@@ -22,16 +22,17 @@
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid mt--7">
<div class="container-fluid mt--7">
<div class="row d-flex justify-content-center">
<div class="col-xl-2 col-sm-12">
<div class="card bg-light pl-2 pr-2 pb-2 h-70 mt-5">
<a href="{{ route('semaksag') }}" onclick="loadingbtn();"><div class="card mb-4 mb-xl-0 mt-2 bg-primary">
<a href="{{ route('semaksag') }}" onclick="loadingbtn();">
<div class="card mb-4 mb-xl-0 mt-2 bg-primary">
<div class="card-body text-center">
<div class="col-auto">
@@ -43,13 +44,15 @@
<span class="h2 font-weight-bold text-white">SEMAK</span>
</div>
</div>
</div></a>
</div>
</a>
</div>
</div>
<div class="col-xl-2 col-sm-12">
<div class="card bg-light pl-2 pr-2 pb-2 h-70 mt-5">
<a href="{{ route('pembayaransag') }}" onclick="loadingbtn();"><div class="card mb-sm-0 mb-4 mb-xl-0 ml-sm-0 mt-2 bg-primary">
<a href="{{ route('pembayaransag') }}" onclick="loadingbtn();">
<div class="card mb-sm-0 mb-4 mb-xl-0 ml-sm-0 mt-2 bg-primary">
<div class="card-body text-center">
<div class="col-auto">
<div class="icon icon-shape text-white rounded-circle shadow">
@@ -60,13 +63,15 @@
<span class="h2 font-weight-bold mb-0 text-white">PEMBAYARAN</span>
</div>
</div>
</div></a>
</div>
</a>
</div>
</div>
<div class="col-xl-2 col-sm-12">
<div class="card bg-light pl-2 pr-2 pb-2 h-70 mt-5">
<a href="#" onclick="onclicktebus();"><div class="card mb-sm-0 mb-5 bg-primary mt-2">
<a href="#" onclick="onclicktebus();">
<div class="card mb-sm-0 mb-5 bg-primary mt-2">
<div class="card-body text-center">
<div class="col-auto">
<div class="icon icon-shape bg-yellow text-white rounded-circle shadow">
@@ -77,14 +82,16 @@
<span class="h2 font-weight-bold mb-0 text-white">TEBUS</span>
</div>
</div>
</div></a>
</div>
</a>
</div>
</div>
<div class="col-xl-2 col-sm-12">
<div class="card bg-light pl-2 pr-2 pb-2 h-70 mt-5">
<a href="{{ route('analisa.index') }}" onclick="loadingbtn();"><div class="card bg-primary mt-2">
<a href="{{ route('analisa.index') }}" onclick="loadingbtn();">
<div class="card bg-primary mt-2">
<div class="card-body text-center">
<div class="col-auto">
<div class="icon icon-shape text-white rounded-circle shadow">
@@ -95,7 +102,8 @@
<span class="h2 font-weight-bold mb-0 text-white">ANALISA</span>
</div>
</div>
</div></a>
</div>
</a>
</div>
</div>
@@ -156,25 +164,26 @@
</div>
</div>
</div></a>
</div>
</div> --}}
</div>
</div> --}}
</div>
</div>
<script>
function onclicktebus()
{
<script>
function onclicktebus() {
$.notify({
icon: 'fas fa-exclamation-triangle fa-2x',
newest_on_top: true,
message: "<strong style='font-size:15px;text-align:center;margin-left:100px;'>Halaman ini masih dalam pembinaan!</strong>"
},{
}, {
type: 'warning',
allow_dismiss: false,
placement:{ align:'center',from:'bottom'},
placement: {
align: 'center',
from: 'bottom'
},
animate: {
enter: 'animate__animated animate__bounce',
@@ -182,12 +191,11 @@
}
});
}
</script>
</script>
@endsection
@push('js')
<script src="{{ asset('argon') }}/vendor/chart.js/dist/Chart.min.js"></script>
<script src="{{ asset('argon') }}/vendor/chart.js/dist/Chart.extension.js"></script>
<script src="{{ asset('argon') }}/vendor/chart.js/dist/Chart.min.js"></script>
<script src="{{ asset('argon') }}/vendor/chart.js/dist/Chart.extension.js"></script>
@endpush
@@ -32,7 +32,7 @@
<div class="row">
<div class="col">
<h5 class="card-title text-uppercase text-muted mb-0">Pembiayaan Semasa (RM)</h5>
<span class="h2 font-weight-bold mb-0">2,4000</span>
<span class="h2 font-weight-bold mb-0">{{ number_format($totalgadai,2) }}</span>
</div>
<div class="col-auto">
<div class="icon icon-shape bg-danger text-white rounded-circle shadow">
@@ -50,7 +50,7 @@
<div class="row">
<div class="col">
<h5 class="card-title text-uppercase text-muted mb-0">Bilangan Pembiayaan Aktif</h5>
<span class="h2 font-weight-bold mb-0">1</span>
<span class="h2 font-weight-bold mb-0">{{ number_format($bilangan_belum_tebus) }}</span>
</div>
<div class="col-auto">
<div class="icon icon-shape bg-warning text-white rounded-circle shadow">
@@ -67,7 +67,7 @@
<div class="row">
<div class="col">
<h5 class="card-title text-uppercase text-muted mb-0">Pembiayaan Melebihi 6 Bulan</h5>
<span class="h2 font-weight-bold mb-0">0</span>
<span class="h2 font-weight-bold mb-0">{{ number_format($bilangan_melebihi_6_bulan) }}</span>
</div>
<div class="col-auto">
<div class="icon icon-shape bg-yellow text-white rounded-circle shadow">
@@ -84,7 +84,7 @@
<div class="row">
<div class="col">
<h5 class="card-title text-uppercase text-muted mb-0">Gadaian Akan Dilelong</h5>
<span class="h2 font-weight-bold mb-0">0</span>
<span class="h2 font-weight-bold mb-0">{{ number_format($bilakandilelong) }}</span>
</div>
<div class="col-auto">
<div class="icon icon-shape bg-info text-white rounded-circle shadow">
@@ -175,7 +175,7 @@
</div>
<div class="table-responsive">
<!-- Projects table -->
<table class="table align-items-center table-flush" id="sag_aktif">
<table class="table align-items-center table-bordered table-hover" style="text-align: center;" id="sag_aktif">
<thead class="thead-light">
<tr>
<th scope="col">No. SAG</th>
@@ -183,16 +183,16 @@
</tr>
</thead>
<tbody>
{{-- @foreach($belum_tebus as $index1=>$bt)
@foreach($belum_tebus as $index1=>$bt)
<tr>
<td>{{ $bt['norujukan'] }}</td>
<td>{{ $bt['pinjaman'] }}</td>
</tr>
@endforeach --}}
<tr>
@endforeach
<!-- <tr>
<td>X0301210901-0009</td>
<td>2400.00</td>
</tr>
</tr> -->
</tbody>
</table>
</div>
@@ -212,7 +212,7 @@
</div>
<div class="table-responsive">
<!-- Projects table -->
<table class="table align-items-center table-flush" id="harga_emas" style="text-align: center;">
<table class="table align-items-center table-bordered table-hover" id="harga_emas" style="text-align: center;">
<thead class="thead-light">
<tr>
<th>Karat</th>
@@ -221,7 +221,7 @@
</tr>
</thead>
<tbody>
{{-- @foreach($hargaemasterdahulu as $index=>$hm)
@foreach($hargaemasterdahulu as $index=>$hm)
<tr>
<td>{{ $hm['karat'] }}</td>
<td>{{ $hm['hargasemasa'] }}</td>
@@ -231,8 +231,8 @@
<td><i class="fas fa-arrow-down text-warning mr-3"></i><span class="text-warning">({{ number_format($hm['percent']*-1,2) }})</span></td>
@endif
</tr>
@endforeach --}}
<tr>
@endforeach
<!-- <tr>
<td>14.0k</td>
<td>157.30</td>
<td><i class="fas fa-arrow-up text-success mr-3"></i><span class="text-success">0.47</span></td>
@@ -251,7 +251,7 @@
<td>14.0k</td>
<td>157.30</td>
<td><i class="fas fa-arrow-up text-success mr-3"></i><span class="text-success">0.47</span></td>
</tr>
</tr> -->
</tbody>
</table>
</div>
@@ -262,3 +262,8 @@
</section>
@endsection
@push('js')
<script src="{{ asset('argon') }}/vendor/chart.js/dist/Chart.min.js"></script>
<script src="{{ asset('argon') }}/vendor/chart.js/dist/Chart.extension.js"></script>
@endpush
+8 -8
View File
@@ -14,9 +14,9 @@
</div>
<div class="card-body text-center">
<h5 class="font-weight-normal">
<a href="pilihcawangan">Rekod Pembelian</a>
<a>Rekod Pembelian</a>
</h5>
<a type="button" href="pilihcawangan" class="btn bg-gradient-info btn-sm mb-0 mt-3">Enter</a>
<a type="button" href="{{ route('semaksag') }}" class="btn bg-gradient-info btn-sm mb-0 mt-3">Enter</a>
</div>
</div>
</div>
@@ -29,9 +29,9 @@
</div>
<div class="card-body text-center">
<h5 class="font-weight-normal">
<a href="senaraibayaransag">Pembayaran</a>
<a>Pembayaran</a>
</h5>
<a type="button" href="senaraibayaransag" class="btn bg-gradient-info btn-sm mb-0 mt-3">Enter</a>
<a type="button" href="{{ route('pembayaransag') }}" class="btn bg-gradient-info btn-sm mb-0 mt-3">Enter</a>
</div>
</div>
</div>
@@ -47,7 +47,7 @@
</div>
<div class="card-body text-center">
<h5 class="font-weight-normal">
<a href="javascript:;">Tebus</a>
<a>Tebus</a>
</h5>
<button type="button" class="btn bg-gradient-info btn-sm mb-0 mt-3" disabled>Enter</button>
</div>
@@ -62,9 +62,9 @@
</div>
<div class="card-body text-center">
<h5 class="font-weight-normal">
<a href="analisaportal">Analisa</a>
<a>Analisa</a>
</h5>
<a type="button" href="analisaportal" class="btn bg-gradient-info btn-sm mb-0 mt-3">Enter</a>
<a type="button" href="{{ route('analisa.index') }}" class="btn bg-gradient-info btn-sm mb-0 mt-3">Enter</a>
</div>
</div>
</div>
@@ -79,7 +79,7 @@
</div>
<div class="card-body text-center">
<h5 class="font-weight-normal">
<a href="javascript:;">Gold?</a>
<a>Gold?</a>
</h5>
<button type="button" class="btn bg-gradient-info btn-sm mb-0 mt-3" disabled>Enter</button>
</div>
@@ -6,28 +6,39 @@
<h6 style="text-align: center; margin-bottom: 10%;">Log-Masuk ke Customer Portal</h6>
<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 placeholder="E-mail" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" type="email" name="email" value="{{ old('email') }}" id="login-username" >
<form role="#" method="post" enctype="multipart/form-data" class="login-form" novalidate="novalidate">
@csrf
<div class="input-group input-group-outline my-3 {{ $errors->has('email') ? ' has-danger' : '' }}">
<input placeholder="E-mail" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" type="email" name="email" value="{{ old('email') }}" id="login-username">
</div>
@if ($errors->has('email'))
<span class="invalid-feedback" style="display: block;margin-top:-10px !important;" role="alert">
<strong>{{ $errors->first('email') }}</strong>
</span>
@endif
<div class="input-group input-group-outline mb-3">
<!-- <label class="form-label">Password</label> -->
<input placeholder="Password" class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}" type="password" name="password" id="login-password" >
<input placeholder="Kata Laluan" class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}" type="password" name="password" id="login-password">
</div>
@if ($errors->has('password'))
<span class="invalid-feedback" style="display: block;margin-top:-10px !important;" role="alert">
<strong>{{ $errors->first('password') }}</strong>
</span>
@endif
<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">
<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>
<button type="submit" class="btn bg-gradient-dark w-100 my-4 mb-2" onclick="loadingbtn();this.disabled=true;this.form.submit();" style="background: #4A4E59;">Log In</button>
</div>
<p class="mt-6 text-sm text-center">
<a href="/firsttime">Pertama Kali</a>
<a href="{{ route('auth.registerfirst') }}">Pertama Kali</a>
<a href="#" class="text-dark text-gradient font-weight-bold"> | </a>
<a href="/forgetpassword">Lupa Kata Laluan</a>
<a href="{{ route('password.request') }}">Lupa Kata Laluan</a>
</p>
</form>
@endsection
@@ -7,9 +7,12 @@
<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 rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.11.3/css/dataTables.bootstrap4.min.css" />
<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">
<script type="text/javascript" src="{{ asset('argon') }}/js/main.js"></script>
<!-- Font Awesome Icons -->
<script src="https://kit.fontawesome.com/42d5adcbca.js" crossorigin="anonymous"></script>
@@ -19,3 +22,6 @@
<!-- CSS Files -->
<link href="{{ asset('css/material-kit.css') }}" rel="stylesheet">
<script src="{{ asset('argon') }}/vendor/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/1.11.3/js/jquery.dataTables.min.js"></script>
@@ -66,7 +66,7 @@
<div class="col-12">
<nav class="navbar navbar-expand-lg blur border-radius-xl top-0 z-index-fixed shadow position-absolute my-3 py-2 start-0 end-0 mx-4">
<div class="container-fluid px-0">
<a class="navbar-brand font-weight-bolder ms-sm-3" href="portalhome" rel="tooltip" title="Designed and Coded by Creative Tim" data-placement="bottom">
<a class="navbar-brand font-weight-bolder ms-sm-3" href="/" rel="tooltip" title="Designed and Coded by Creative Tim" data-placement="bottom">
CUSTOMER PORTAL
</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">
@@ -79,31 +79,35 @@
<div class="collapse navbar-collapse pt-3 pb-2 py-lg-0 w-100" 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="pilihcawangan">
<a class="nav-link nav-link-icon me-2" href="{{ route('semaksag') }}">
<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="senaraibayaransag">
<a class="nav-link nav-link-icon me-2" href="{{ route('pembayaransag') }}">
<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="analisaportal">
<a class="nav-link nav-link-icon me-2" href="{{ route('analisa.index') }}">
<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="portalprofile">
<a class="nav-link nav-link-icon me-2" href="{{ route('profile.edit') }}">
<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">Mohamad Hafizuddin Hanafi Bin Hanafi</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>
<a href="{{ route('logout') }}" class="btn btn-sm bg-white mb-0 me-1 mt-2 mt-md-0" onclick="event.preventDefault();document.getElementById('logout-form').submit();">
<i class="fas fa-sign-out-alt"></i>
<span>{{ __('Logout') }}</span>
</a>
</div>
</li>
</ul>
</div>
@@ -111,5 +115,5 @@
</nav>
<!-- End Navbar -->
</div>
</div>
</div>
</div>
@@ -7,24 +7,28 @@
<div class="row">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item text-dark opacity-5"><a href="portalhome">Home</a></li>
<li class="breadcrumb-item text-dark opacity-5"><a href="/">Home</a></li>
<li class="breadcrumb-item text-dark active" aria-current="page">Rekod Pembelian</li>
</ol>
</nav>
</div>
<p class="lead text-dark pe-md-5 me-md-5">
<form name="semaksagform" action="{{ route('senaraisag') }}" method="POST">
@csrf
<div>
<p class="lead text-dark pe-md-5 me-md-5">
Sila pilih cawangan
</p>
<select class="form-select" aria-label="Default select example">
</p>
<select class="form-select" aria-label="Default select example" name="sltcawangan">
<option selected disabled>Open this select menu</option>
<option value="1">Xtra</option>
<option value="2">KB2</option>
</select>
<div class="buttons">
<a type="button" href="rekodsag" class="btn bg-gradient-primary mt-4">Semak</a>
</div>
@foreach($cawangan as $index1=>$caw)
<option value="{{ $caw['kodcaw'] }}">{{ $caw['namacawangan'] }}</option>
@endforeach
</select>
</div>
<button type="submit" href="{{ route('senaraisag') }}" class="btn btn-primary mt-3 d-flex">
Semak
</button>
</form>
@endsection
@@ -8,8 +8,8 @@
<div class="row">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item text-dark opacity-5"><a href="portalhome">Home</a></li>
<li class="breadcrumb-item text-dark opacity-5"><a href="pilihcawangan">Rekod Pembelian</a></li>
<li class="breadcrumb-item text-dark opacity-5"><a href="/">Home</a></li>
<li class="breadcrumb-item text-dark opacity-5"><a href="{{ route('semaksag') }}">Rekod Pembelian</a></li>
<li class="breadcrumb-item text-dark active" aria-current="page">Senarai SAG</li>
</ol>
</nav>
@@ -201,4 +201,52 @@
</div>
</div>
<script>
var belumtawarruqtable = $('#belum_tawarruq').DataTable({
// dom: 'Bfrtip',
// buttons: [
// 'copy', 'excel', 'pdf'
// ],
// "bPaginate": false,
"bLengthChange": false,
"bFilter": true,
"bInfo": false,
language: {
'paginate': {
'previous': '<span class="fas fa-backward"></span>',
'next': '<span class="fas fa-forward"></span>'
}
}
});
var selepastawarruqtable = $('#selepas_tawarruq').DataTable({
// dom: 'Bfrtip',
// buttons: [
// 'copy', 'excel', 'pdf'
// ],
"bLengthChange": false,
"bFilter": true,
"bInfo": false,
language: {
'paginate': {
'previous': '<span class="fas fa-backward"></span>',
'next': '<span class="fas fa-forward"></span>'
}
}
});
var sudahtebustable = $('#saghistory').DataTable({
"bLengthChange": false,
"bFilter": true,
"bInfo": false,
language: {
'paginate': {
'previous': '<span class="fas fa-backward"></span>',
'next': '<span class="fas fa-forward"></span>'
}
}
});
</script>
@endsection
@@ -6,6 +6,14 @@
</head>
<body class="about-us bg-gray-200">
@if(Auth::user()->hasVerifiedEmail())
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
@csrf
</form>
@include('layouts.navbars.sidebar')
@endif
@include('includes.main.navigation')
@include('includes.main.header')
<div class="card card-body shadow-xl mx-3 mx-md-4 mt-n6">
+2 -1
View File
@@ -49,7 +49,8 @@ Route::get('/bayarsag', function () {
Route::get('/', function () {
return view('dashboard');
// return view('dashboard');
return view('includes.home');
})->middleware(['auth','verified']);
// Route::get('/home', 'HomeController@index');
+2
View File
@@ -0,0 +1,2 @@
*
!.gitignore