diff --git a/app/Http/Controllers/CallCenterController.php b/app/Http/Controllers/CallCenterController.php
index a0ddbe3..9fdab5a 100644
--- a/app/Http/Controllers/CallCenterController.php
+++ b/app/Http/Controllers/CallCenterController.php
@@ -226,5 +226,65 @@ class CallCenterController extends Controller
return view('callcenter.bycawdetailnotisperingatan',compact('cawangan_info','bycawnotisperingatan','kodcaw','notisid'));
}
+ public function pelanggan()
+ {
+ $search = false;
+
+ $api_url = config('api.url');
+ $auth_user = Auth::user();
+ $idtype = 'nokp';
+ $cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
+ $bank = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/bank')->json();
+ if($auth_user->roles == 'admin'){
+ return view('admin.customer_index',compact('search','cawangan_info','bank','api_url','idtype','auth_user'));
+ }else{
+ return view('callcenter.index',compact('search','cawangan_info','bank','api_url','idtype','auth_user'));
+ }
+ }
+
+ public function search(Request $request){
+ // dd($request->all());
+ $noic = $request->noic;
+ $idtype = $request->customerIDType;
+ $kodcaw = $request->cawangan;
+ Session::put('noic', $noic);
+ Session::put('kodcaw', $kodcaw);
+
+ $api_url = config('api.url');
+ $auth_user = Auth::user();
+ $cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $kodcaw)->json();
+ $bank = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/bank')->json();
+ $customer_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/'. $noic)->json();
+
+ $request->session()->forget('page_reload');
+ $request->session()->forget('norujukan');
+
+ $search = true;
+
+ if($customer_info){
+ Session::put('customer_info_arcc',$customer_info);
+ return redirect()->route('arcc.customer_info', ['customer_info' => $customer_info,'cawangan_info'=>$cawangan_info,'api_url'=>$api_url]);
+ }else{
+ return view('arcc.pelanggan',compact('search','noic','cawangan_info','bank','api_url','idtype'));
+ }
+ }
+
+ public function info(Request $request){
+ $auth_user = Auth::user();
+ $api_url = config('api.url');
+ $cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. Session::get('kodcaw'))->json();
+ $customer_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/'. Session::get('noic'))->json();
+
+ $bakilelong = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/bakilelong/cawangan/' . Session::get('kodcaw') . '/' . Session::get('noic') . '/baki')->json();
+ $rugilelong = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/bakilelong/cawangan/' . Session::get('kodcaw') . '/' . Session::get('noic') . '/rugi')->json();
+
+ $negeri = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/negeri/')->json();
+
+ $request->session()->forget('page_reload');
+ $request->session()->forget('norujukan');
+
+ return view('callcenter.' . $cawangan_info['version'] . '.info',compact('cawangan_info','api_url','customer_info','bakilelong','rugilelong','negeri'));
+ }
+
}
diff --git a/resources/views/callcenter/index.blade.php b/resources/views/callcenter/index.blade.php
new file mode 100644
index 0000000..23c30ab
--- /dev/null
+++ b/resources/views/callcenter/index.blade.php
@@ -0,0 +1,877 @@
+@extends('layouts.app_operasi')
+
+@section('content')
+
+
+
+
+
+
+
+
+
+
+
Pilih Cawangan Dan Masukkan nombor kad pengenalan
+
+
+ @if($search == true )
+
+
+
+ @endif
+
+
+
+
+
+
+
+
+
+
+@endsection
diff --git a/resources/views/callcenter/v1/info.blade.php b/resources/views/callcenter/v1/info.blade.php
new file mode 100644
index 0000000..f8dc06f
--- /dev/null
+++ b/resources/views/callcenter/v1/info.blade.php
@@ -0,0 +1,1405 @@
+@extends('layouts.app_operasi')
+
+
+@section('content')
+@include('modal.historytebus')
+@include('modal.wakil')
+@include('modal.agh')
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | Bil |
+ No Rujukan |
+ Tarikh Gadai |
+ Tarikh Matang |
+ Baki Harga Jualan |
+ Baki Pembiayaan |
+ Margin |
+ Tempoh |
+ Keuntungan |
+ Lelong |
+
+
+
+
+
+
+
+
+ | Bil |
+ No Rujukan |
+ Tarikh Gadai |
+ Tarikh Matang |
+ Pembiayaan |
+ Margin |
+ Tempoh |
+ Lelong |
+
+
+
+
+
+
+ {{-- Sudah Tebus --}}
+
+
+
+
+ | Bil |
+ No Rujukan |
+ Tarikh Tebus |
+ Baki Pembiayaan |
+ Margin |
+ Tempoh |
+
+
+
+
+
+
+
+ | Bil |
+ No Rujukan |
+ Tarikh Lelong |
+ Tarikh Tuntut |
+ Pembiayaan |
+ Harga Jual |
+ Jum Tuntut/Bayar |
+ Keuntungan |
+ Caj Lelong |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{-- --}}
+
+ {{-- --}}
+
+
+
+
+
+
+
+
+
+
+@endsection
diff --git a/resources/views/callcenter/v2/info.blade.php b/resources/views/callcenter/v2/info.blade.php
new file mode 100644
index 0000000..6f25b32
--- /dev/null
+++ b/resources/views/callcenter/v2/info.blade.php
@@ -0,0 +1,1487 @@
+@extends('layouts.app_operasi')
+
+
+@section('content')
+@include('modal.historytebus')
+@include('modal.wakil')
+@include('modal.agh')
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | Bil |
+ No Rujukan |
+ Tarikh Gadai |
+ Tarikh Matang |
+ Baki Harga Jualan |
+ Baki Pembiayaan |
+ Margin |
+ Tempoh |
+ Keuntungan |
+ Lelong |
+
+
+
+
+
+
+
+ {{--
+ | Bil |
+ No Rujukan |
+ Tarikh Gadai |
+ Tarikh Matang |
+ Pembiayaan |
+ Margin |
+ Tempoh |
+ Lelong |
+
--}}
+
+ | Bil |
+ No Rujukan |
+ Tarikh Gadai |
+ Tarikh Matang |
+ Baki Harga Jualan |
+ Baki Pembiayaan |
+ Margin |
+ Tempoh |
+ Keuntungan |
+ Lelong |
+
+
+
+
+
+
+ {{-- Sudah Tebus --}}
+
+
+
+
+ | Bil |
+ No Rujukan |
+ Tarikh Tebus |
+ Baki Pembiayaan |
+ Margin |
+ Tempoh |
+
+
+
+
+
+
+
+ | Bil |
+ No Rujukan |
+ Tarikh Lelong |
+ Tarikh Tuntut |
+ Pembiayaan |
+ Harga Jual |
+ Jum Tuntut/Bayar |
+ Keuntungan |
+ Caj Lelong |
+
+
+
+
+
+
+ {{-- --}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{-- --}}
+
+ {{-- --}}
+
+
+
+
+
+
+
+
+
+
+@endsection
diff --git a/resources/views/homepage/callcenter/home.blade.php b/resources/views/homepage/callcenter/home.blade.php
index af7be2c..ca1d984 100644
--- a/resources/views/homepage/callcenter/home.blade.php
+++ b/resources/views/homepage/callcenter/home.blade.php
@@ -14,6 +14,7 @@
+
Pelanggan
Notis Peringatan
{{--
Kakitangan
Parameter
diff --git a/routes/web.php b/routes/web.php
index 177561c..d8d5cab 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -405,8 +405,9 @@ Route::get('/rekodnotisperingatan',['as'=>'arcc.rekodnotisperingatan','uses'=>'C
Route::get('/detailnotisperingatan/{notisid}',['as'=>'arcc.detailnotisperingatan','uses'=>'CallCenterController@detailnotisperingatan'])->middleware('auth','callcenter');
Route::get('/bycawnotisperingatan/{kodcaw}/{notisid}',['as'=>'arcc.bycawnotisperingatan','uses'=>'CallCenterController@bycawnotisperingatan'])->middleware('auth','callcenter');
Route::post('/blastpertama/{kodcaw}/{notisid}',['as'=>'arcc.blastpertama','uses'=>'CallCenterController@blastpertama'])->middleware('auth','callcenter');
-
-
+Route::get('/pelanggan',['as'=>'arcc.pelanggan','uses'=>'CallCenterController@pelanggan'])->middleware('auth','callcenter');
+Route::get('/searchpelanggan',['as'=>'arcc.searchpelanggan','uses'=>'CallCenterController@search'])->middleware('auth','callcenter');
+Route::get('/customer_info',['as'=>'arcc.customer_info','uses'=>'CallCenterController@info'])->middleware('auth','callcenter');
Route::get('supports/driver/mykad-reader',['as'=>'mykadreader.driver', function(){