fix customer api

This commit is contained in:
Afiq Zakwan Hamdan
2021-06-14 14:28:44 +08:00
parent 6db54b7c57
commit 7f1597ebf4
17 changed files with 70 additions and 70 deletions
@@ -237,10 +237,10 @@
<td>
@php
$customer_detail = Http::get($api_url . '/api/customers/' . $item['nokp'])->json();
echo $customer_detail[0]['nama'];
echo $customer_detail['nama'];
@endphp
</td>
<td>{{$customer_detail[0]['alamat1']}}</td>
<td>{{$customer_detail['alamat1']}}</td>
<td>{{ $item['nokp'] }}</td>
<td>{{ $item['masa'] }}</td>
<td>{{ number_format($item['berat'],2) }}</td>