diff --git a/app/Http/Controllers/WTDController.php b/app/Http/Controllers/WTDController.php new file mode 100644 index 0000000..dad8625 --- /dev/null +++ b/app/Http/Controllers/WTDController.php @@ -0,0 +1,23 @@ +middleware('auth'); + // } + + public function index(){ + + return view('wtd.index'); + } +} diff --git a/resources/js/app.js b/resources/js/app.js index 22faa3b..e9516db 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -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) diff --git a/resources/js/components/Analisa/Aging.vue b/resources/js/components/Analisa/Aging.vue new file mode 100644 index 0000000..0910d95 --- /dev/null +++ b/resources/js/components/Analisa/Aging.vue @@ -0,0 +1,203 @@ + \ No newline at end of file diff --git a/resources/js/components/Cawangan.vue b/resources/js/components/Cawangan.vue index bd55359..5511518 100644 --- a/resources/js/components/Cawangan.vue +++ b/resources/js/components/Cawangan.vue @@ -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; } } diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index 8b13e58..874ba8d 100644 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -44,6 +44,8 @@ cawangan }}> + + cawangan }}> diff --git a/resources/views/layouts/sidebar.blade.php b/resources/views/layouts/sidebar.blade.php index 5ac0dc3..aac9658 100644 --- a/resources/views/layouts/sidebar.blade.php +++ b/resources/views/layouts/sidebar.blade.php @@ -159,6 +159,17 @@ + +
  • +
    + + + + WTD +
    +
  • +
    +
  • diff --git a/resources/views/wtd/index.blade.php b/resources/views/wtd/index.blade.php new file mode 100644 index 0000000..5ecbadc --- /dev/null +++ b/resources/views/wtd/index.blade.php @@ -0,0 +1,14 @@ +@extends('layouts.app') + +@section('content') + +
    +
    + +
    + + +
    +
    + @include('layouts.footer') +@endsection diff --git a/routes/web.php b/routes/web.php index 4b67c07..6f7d319 100644 --- a/routes/web.php +++ b/routes/web.php @@ -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','.*');