33 lines
1.4 KiB
PHP
33 lines
1.4 KiB
PHP
@if(count($customers) > 0)
|
|
<table class="table table-bordered table-hover" style="background-color: #f9f9f9;">
|
|
<thead class="thead-light">
|
|
<tr>
|
|
<th>Nama</th>
|
|
<th>No KP</th>
|
|
<th>Kod Cawangan</th>
|
|
<th>Tindakan</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($customers as $customer)
|
|
<tr>
|
|
<td>{{ $customer['nama'] }}</td>
|
|
<td>{{ $customer['kpbaru'] ?? $customer['kplama'] ?? '-' }}</td>
|
|
<td>{{ $customer['kodcaw'] }}</td>
|
|
<td>
|
|
<form action="{{ route('arcc.pilihpelanggan.proceed') }}" method="POST">
|
|
@csrf
|
|
<input type="hidden" name="customer" value="{{ base64_encode(json_encode($customer)) }}">
|
|
<input type="hidden" name="kodcaw" value="{{ $customer['kodcaw'] }}">
|
|
<input type="hidden" name="nokp" value="{{ $customer['kpbaru'] ?? $customer['kplama'] ?? '-' }}">
|
|
<button type="submit" class="btn btn-sm btn-primary">Pilih</button>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
@else
|
|
<div class="alert alert-warning">Tiada pelanggan dijumpai.</div>
|
|
@endif
|