diff --git a/app/Http/Controllers/ApiController.php b/app/Http/Controllers/ApiController.php
index 7bfd657e..5f3c7f09 100644
--- a/app/Http/Controllers/ApiController.php
+++ b/app/Http/Controllers/ApiController.php
@@ -58,11 +58,11 @@ class ApiController extends Controller
if(config('app.env') != 'production'){
$this->api_key = 'abecfd0c-98d8-4635-abc2-2fcba8c60c11';
$this->XSignature_Key = 'S-GWr7z03XjAhqPsFfu_H5nQ';
- $this->collection_id = 'bwdtejv0';
+ $this->collection_id = 'drxdyor4';
}else{
$this->api_key = 'f3e82fe1-a422-4660-97f0-65cc59ff6c47';
$this->XSignature_Key = 'S-alZUbzmD2_TF3vmrRqgehQ';
- $this->collection_id = 'drxdyor4';
+ $this->collection_id = 'lx_bplsb';
}
}
diff --git a/app/Http/Controllers/DatabaseController.php b/app/Http/Controllers/DatabaseController.php
index 1a79f6a4..beed17d7 100644
--- a/app/Http/Controllers/DatabaseController.php
+++ b/app/Http/Controllers/DatabaseController.php
@@ -31,25 +31,18 @@ class DatabaseController extends Controller
public function index()
{
$caw = Cawangan::all();
- // $user = Auth::user();
- // $user->assignRole('admin');
- //db cawangan - success
- //db online_arrahn - success
- //api_kaunter - success
- //api_arrahn
-
- $gadai = Gadai::on('KB2')->orderBy('t_gadai', 'DESC')->first();
- $transaksi_keuntungan = TransaksiKeuntungan::on('main')->orderBy('id', 'DESC')->first();
- $roles_harian_penilai = Http::get(config('app.api_url_kaunter') . 'api/roles_harian/KB2', [
- 'role_harian' => 'penilai',
- ])->json();
- $customer_details = Http::withOptions(['verify' => config('app.api_verify')])
- ->get('http://api.arrahn.com.my/api/customers/960403065465')->json();
+ // $gadai = Gadai::on('KB2')->orderBy('t_gadai', 'DESC')->first();
+ // $transaksi_keuntungan = TransaksiKeuntungan::on('main')->orderBy('id', 'DESC')->first();
+ // $roles_harian_penilai = Http::get(config('app.api_url_kaunter') . 'api/roles_harian/KB2', [
+ // 'role_harian' => 'penilai',
+ // ])->json();
+ // $customer_details = Http::withOptions(['verify' => config('app.api_verify')])
+ // ->get('http://api.arrahn.com.my/api/customers/960403065465')->json();
// dd($gadai, $transaksi_keuntungan, $roles_harian_penilai, $customer_details);
- return view('pengurusandatabase.senaraidb',compact('caw', 'gadai', 'transaksi_keuntungan', 'roles_harian_penilai', 'customer_details'));
+ return view('pengurusandatabase.senaraidb',compact('caw'));
}
public function showConn($id)
diff --git a/resources/views/pengurusandatabase/senaraidb.blade.php b/resources/views/pengurusandatabase/senaraidb.blade.php
index 2cff3cf7..bd7eaf41 100644
--- a/resources/views/pengurusandatabase/senaraidb.blade.php
+++ b/resources/views/pengurusandatabase/senaraidb.blade.php
@@ -50,65 +50,6 @@
-
db cawangan
-
-
-
- | gadai latest KB2 |
- t_gadai |
-
-
- | {{$gadai->norujukan}} |
- {{$gadai->t_gadai}} |
-
-
-
-
- db online_arrahn
-
-
-
- | bayar latest |
- tarikh_bayaran |
-
-
- | {{$transaksi_keuntungan->norujukan}} |
- {{$transaksi_keuntungan->tarikh_bayaran}} |
-
-
-
- api_kaunter
-
-
-
- | role_harian KB2 |
- name |
-
- @if(!empty($roles_harian_penilai))
-
- | {{$roles_harian_penilai[0]['role_harian']}} |
- {{$roles_harian_penilai[0]['name']}} |
-
- @else
-
- | pc belum set role harian |
-
- @endif
-
-
- api_arrahn
-
-
-
- | customer details(name) |
- (ic) |
-
-
- | {{$customer_details['nama']}} |
- {{$customer_details['kpbaru']}} |
-
-
-