This commit is contained in:
hafifierahman
2022-06-29 22:13:45 +08:00
parent 21d759e5b8
commit 19bcddefe5
8 changed files with 264 additions and 5 deletions
+23
View File
@@ -0,0 +1,23 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Session;
use Illuminate\Support\Facades\Http;
use Carbon\Carbon;
class WTDController extends Controller
{
// public function __construct()
// {
// $this->middleware('auth');
// }
public function index(){
return view('wtd.index');
}
}
+5 -3
View File
@@ -119,18 +119,18 @@ Vue.use(require('vue-pusher'), {
}
});
Vue.prototype.$api1 = 'http://api.arrahn/'
Vue.prototype.$api1 = 'http://localhost:8000/'
Vue.prototype.$username = document.querySelector("meta[name='user_name']").getAttribute('content');
Vue.prototype.$userroles = document.querySelector("meta[name='user_roles']").getAttribute('content');
let initial = 'KB2';
let initialhostname = 'http://api.arrahn/';
let initialhostname = 'http://localhost:8000/';
const store = new Vuex.Store({
state: {
$kodcaw: 'KB2',
$hostname: 'http://api.arrahn/'
$hostname: 'http://localhost:8000/'
},
plugins: [createPersistedState()],
mutations: {
@@ -199,6 +199,8 @@ Vue.component('blacklist-pelanggan', require('./pages/Blacklist.vue').default)
Vue.component('harian-component', require('./components/Analisa/Harian.vue').default)
Vue.component('tahunan-component', require('./components/Analisa/Tahunan.vue').default)
Vue.component('aging-component', require('./components/Analisa/Aging.vue').default)
Vue.component('square-component', require('./components/util/Clock.vue').default)
+203
View File
@@ -0,0 +1,203 @@
<template>
<div class="mb-4 w-full grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4">
<div class="bg-white shadow rounded-lg p-4 sm:p-6 xl:p-8">
<h3 class="text-xl font-bold text-gray-500">Data Lelong</h3>
<div class="relative overflow-x-auto shadow-md sm:rounded-lg">
<table class="w-full text-sm text-left text-gray-500 dark:text-gray-400">
<thead class="text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400">
<tr>
<th scope="col" class="px-6 py-3">
Bulan
</th>
<th scope="col" class="px-6 py-3">
Bil
</th>
<th scope="col" class="px-6 py-3">
%
</th>
<th scope="col" class="px-6 py-3">
RM
</th>
</tr>
</thead>
<tbody>
<tr class="bg-white border-b dark:bg-gray-800 dark:border-gray-700">
<th class="px-6 py-4 font-medium text-gray-900 dark:text-white whitespace-nowrap">
1
</th>
<td class="px-6 py-4">
21
</td>
<td class="px-6 py-4">
10
</td>
<td class="px-6 py-4">
1,232.32
</td>
</tr>
<tr class="bg-white border-b dark:bg-gray-800 dark:border-gray-700">
<th scope="row" class="px-6 py-4 font-medium text-gray-900 dark:text-white whitespace-nowrap">
2
</th>
<td class="px-6 py-4">
11
</td>
<td class="px-6 py-4">
43
</td>
<td class="px-6 py-4">
5,000.00
</td>
</tr>
<tr class="bg-white dark:bg-gray-800">
<th scope="row" class="px-6 py-4 font-medium text-gray-900 dark:text-white whitespace-nowrap">
3
</th>
<td class="px-6 py-4">
3
</td>
<td class="px-6 py-4">
54
</td>
<td class="px-6 py-4">
3,432.00
</td>
</tr>
<tr class="bg-white dark:bg-gray-800">
<th scope="row" class="px-6 py-4 font-medium text-gray-900 dark:text-white whitespace-nowrap">
3
</th>
<td class="px-6 py-4">
3
</td>
<td class="px-6 py-4">
54
</td>
<td class="px-6 py-4">
3,432.00
</td>
</tr>
<tr class="bg-white dark:bg-gray-800">
<th scope="row" class="px-6 py-4 font-medium text-gray-900 dark:text-white whitespace-nowrap">
3
</th>
<td class="px-6 py-4">
3
</td>
<td class="px-6 py-4">
54
</td>
<td class="px-6 py-4">
3,432.00
</td>
</tr>
<tr class="bg-white dark:bg-gray-800">
<th scope="row" class="px-6 py-4 font-medium text-gray-900 dark:text-white whitespace-nowrap">
3
</th>
<td class="px-6 py-4">
3
</td>
<td class="px-6 py-4">
54
</td>
<td class="px-6 py-4">
3,432.00
</td>
</tr>
<tr class="bg-white dark:bg-gray-800">
<th scope="row" class="px-6 py-4 font-medium text-gray-900 dark:text-white whitespace-nowrap">
3
</th>
<td class="px-6 py-4">
3
</td>
<td class="px-6 py-4">
54
</td>
<td class="px-6 py-4">
3,432.00
</td>
</tr>
<tr class="bg-white dark:bg-gray-800">
<th scope="row" class="px-6 py-4 font-medium text-gray-900 dark:text-white whitespace-nowrap">
3
</th>
<td class="px-6 py-4">
3
</td>
<td class="px-6 py-4">
54
</td>
<td class="px-6 py-4">
3,432.00
</td>
</tr>
<tr class="bg-white dark:bg-gray-800">
<th scope="row" class="px-6 py-4 font-medium text-gray-900 dark:text-white whitespace-nowrap">
3
</th>
<td class="px-6 py-4">
3
</td>
<td class="px-6 py-4">
54
</td>
<td class="px-6 py-4">
3,432.00
</td>
</tr>
<tr class="bg-white dark:bg-gray-800">
<th scope="row" class="px-6 py-4 font-medium text-gray-900 dark:text-white whitespace-nowrap">
3
</th>
<td class="px-6 py-4">
3
</td>
<td class="px-6 py-4">
54
</td>
<td class="px-6 py-4">
3,432.00
</td>
</tr>
<tr class="bg-white dark:bg-gray-800">
<th scope="row" class="px-6 py-4 font-medium text-gray-900 dark:text-white whitespace-nowrap">
3
</th>
<td class="px-6 py-4">
3
</td>
<td class="px-6 py-4">
54
</td>
<td class="px-6 py-4">
3,432.00
</td>
</tr>
<tr class="bg-white dark:bg-gray-800">
<th scope="row" class="px-6 py-4 font-medium text-gray-900 dark:text-white whitespace-nowrap">
3
</th>
<td class="px-6 py-4">
3
</td>
<td class="px-6 py-4">
54
</td>
<td class="px-6 py-4">
3,432.00
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="bg-white shadow rounded-lg p-4 sm:p-6 xl:p-8">das</div>
<div class="bg-white shadow rounded-lg p-4 sm:p-6 xl:p-8">dasdsa</div>
</div>
</template>
+2 -2
View File
@@ -84,7 +84,7 @@
case 'JLI':
case 'ARP':
case '020303':{
this.sethostname('http://api.arrahn')
this.sethostname('http://localhost:8000')
break;
}
case '010621':
@@ -114,7 +114,7 @@
this.sethostname('http://api3.arrahn')
break;
}
default: this.sethostname('http://api.arrahn')
default: this.sethostname('http://localhost:8000')
break;
}
}
+2
View File
@@ -44,6 +44,8 @@
<tahunan-component kodcaw={{ Auth::user()->cawangan }}></tahunan-component>
<aging-component></aging-component>
<bilangan-component kodcaw={{ Auth::user()->cawangan }}></bilangan-component>
+11
View File
@@ -159,6 +159,17 @@
</li>
</a>
<a href="{{ route('wtd.index') }}" class="rounded mb-2 mr-2 {{ Route::is('wtd') || Route::is('wtd.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M17 9V7a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2m2 4h10a2 2 0 002-2v-6a2 2 0 00-2-2H9a2 2 0 00-2 2v6a2 2 0 002 2zm7-5a2 2 0 11-4 0 2 2 0 014 0z" />
</svg>
<span class="text-sm ml-2 text-lg">WTD</span>
</div>
</li>
</a>
<a href="{{ route('kelulusan') }}" class="rounded mb-2 mr-2 {{ Route::is('kelulusan') || Route::is('kelulusan.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
<div class="flex items-center">
+14
View File
@@ -0,0 +1,14 @@
@extends('layouts.app')
@section('content')
<div class="bg-gray-900 opacity-50 hidden fixed inset-0 z-10" id="sidebarBackdrop"></div>
<div id="main-content" class="h-full w-full bg-gray-50 relative overflow-y-auto">
<main>
<div class="pt-6 px-4">
<breadcrumb :items="[{ 'title' : 'Wang Tak Dituntut', 'icon' : 'fas fa-gavel' }]"></breadcrumb>
</div>
</main>
@include('layouts.footer')
@endsection
+4
View File
@@ -110,6 +110,10 @@ Route::get('/permohonan',['as'=>'permohonan.index','uses'=>'App\Http\Controllers
Route::get('/permohonan/cetakanpb',['as'=>'permohonan.cetakanpb','uses'=>'App\Http\Controllers\PermohonanController@CetakanPB']);
Route::get('/permohonan/cetakanpenuh',['as'=>'permohonan.cetakanpenuh','uses'=>'App\Http\Controllers\PermohonanController@CetakanPenuh']);
//WTD
Route::get('/wtd',['as'=>'wtd.index','uses'=>'App\Http\Controllers\WTDController@index']);
Route::get('{any}', function () {
return view('home');
})->where('any','.*');