Fix collection_id billplz, remove test api
This commit is contained in:
@@ -58,11 +58,11 @@ class ApiController extends Controller
|
|||||||
if(config('app.env') != 'production'){
|
if(config('app.env') != 'production'){
|
||||||
$this->api_key = 'abecfd0c-98d8-4635-abc2-2fcba8c60c11';
|
$this->api_key = 'abecfd0c-98d8-4635-abc2-2fcba8c60c11';
|
||||||
$this->XSignature_Key = 'S-GWr7z03XjAhqPsFfu_H5nQ';
|
$this->XSignature_Key = 'S-GWr7z03XjAhqPsFfu_H5nQ';
|
||||||
$this->collection_id = 'bwdtejv0';
|
$this->collection_id = 'drxdyor4';
|
||||||
}else{
|
}else{
|
||||||
$this->api_key = 'f3e82fe1-a422-4660-97f0-65cc59ff6c47';
|
$this->api_key = 'f3e82fe1-a422-4660-97f0-65cc59ff6c47';
|
||||||
$this->XSignature_Key = 'S-alZUbzmD2_TF3vmrRqgehQ';
|
$this->XSignature_Key = 'S-alZUbzmD2_TF3vmrRqgehQ';
|
||||||
$this->collection_id = 'drxdyor4';
|
$this->collection_id = 'lx_bplsb';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,25 +31,18 @@ class DatabaseController extends Controller
|
|||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
$caw = Cawangan::all();
|
$caw = Cawangan::all();
|
||||||
// $user = Auth::user();
|
|
||||||
// $user->assignRole('admin');
|
|
||||||
|
|
||||||
//db cawangan - success
|
// $gadai = Gadai::on('KB2')->orderBy('t_gadai', 'DESC')->first();
|
||||||
//db online_arrahn - success
|
// $transaksi_keuntungan = TransaksiKeuntungan::on('main')->orderBy('id', 'DESC')->first();
|
||||||
//api_kaunter - success
|
// $roles_harian_penilai = Http::get(config('app.api_url_kaunter') . 'api/roles_harian/KB2', [
|
||||||
//api_arrahn
|
// 'role_harian' => 'penilai',
|
||||||
|
// ])->json();
|
||||||
$gadai = Gadai::on('KB2')->orderBy('t_gadai', 'DESC')->first();
|
// $customer_details = Http::withOptions(['verify' => config('app.api_verify')])
|
||||||
$transaksi_keuntungan = TransaksiKeuntungan::on('main')->orderBy('id', 'DESC')->first();
|
// ->get('http://api.arrahn.com.my/api/customers/960403065465')->json();
|
||||||
$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);
|
// 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)
|
public function showConn($id)
|
||||||
|
|||||||
@@ -50,65 +50,6 @@
|
|||||||
|
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
<div>db cawangan</div>
|
|
||||||
<table class="table table-bordered" style="width: 35%;">
|
|
||||||
<tbody>
|
|
||||||
<tr class="bg-light">
|
|
||||||
<td>gadai latest KB2</td>
|
|
||||||
<td>t_gadai</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>{{$gadai->norujukan}}</td>
|
|
||||||
<td>{{$gadai->t_gadai}}</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
<div>db online_arrahn</div>
|
|
||||||
<table class="table table-bordered" style="width: 35%;">
|
|
||||||
<tbody>
|
|
||||||
<tr class="bg-light">
|
|
||||||
<td>bayar latest</td>
|
|
||||||
<td>tarikh_bayaran</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>{{$transaksi_keuntungan->norujukan}}</td>
|
|
||||||
<td>{{$transaksi_keuntungan->tarikh_bayaran}}</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
<div>api_kaunter</div>
|
|
||||||
<table class="table table-bordered" style="width: 35%;">
|
|
||||||
<tbody>
|
|
||||||
<tr class="bg-light">
|
|
||||||
<td>role_harian KB2</td>
|
|
||||||
<td>name</td>
|
|
||||||
</tr>
|
|
||||||
@if(!empty($roles_harian_penilai))
|
|
||||||
<tr>
|
|
||||||
<td>{{$roles_harian_penilai[0]['role_harian']}}</td>
|
|
||||||
<td>{{$roles_harian_penilai[0]['name']}}</td>
|
|
||||||
</tr>
|
|
||||||
@else
|
|
||||||
<tr>
|
|
||||||
<td colspan="2">pc belum set role harian</td>
|
|
||||||
</tr>
|
|
||||||
@endif
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
<div>api_arrahn</div>
|
|
||||||
<table class="table table-bordered" style="width: 35%;">
|
|
||||||
<tbody>
|
|
||||||
<tr class="bg-light">
|
|
||||||
<td>customer details(name)</td>
|
|
||||||
<td>(ic)</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>{{$customer_details['nama']}}</td>
|
|
||||||
<td>{{$customer_details['kpbaru']}}</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user