Fix api_arrahn testing
This commit is contained in:
@@ -44,12 +44,12 @@ class DatabaseController extends Controller
|
||||
$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('https://api.arrahn.com.my/api/customers/960403065465')->json();
|
||||
$customer_details = Http::withOptions(['verify' => config('app.api_verify')])
|
||||
->get('http://api.arrahn/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'));
|
||||
return view('pengurusandatabase.senaraidb',compact('caw', 'gadai', 'transaksi_keuntungan', 'roles_harian_penilai', 'customer_details'));
|
||||
}
|
||||
|
||||
public function showConn($id)
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
{{--<div>api_arrahn</div>
|
||||
<div>api_arrahn</div>
|
||||
<table class="table table-bordered" style="width: 35%;">
|
||||
<tbody>
|
||||
<tr class="bg-light">
|
||||
@@ -104,11 +104,11 @@
|
||||
<td>(ic)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{$roles_harian_penilai[0]['role_harian']}}</td>
|
||||
<td>{{$roles_harian_penilai[0]['name']}}</td>
|
||||
<td>{{$customer_details['nama']}}</td>
|
||||
<td>{{$customer_details['kpbaru']}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>--}}
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user