40 lines
1.6 KiB
PHP
40 lines
1.6 KiB
PHP
@extends('layouts.app_callcenter')
|
|
|
|
@section('content')
|
|
<div class="container">
|
|
<h4 class="text-center mb-4">Senarai Pelanggan Dijumpai</h4>
|
|
@if(session('customer_list') && count(session('customer_list')) > 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(session('customer_list') 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)) }}">
|
|
<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
|
|
|
|
<a href="{{ route('arcc.pelanggan') }}" class="btn btn-secondary mt-3">Kembali</a>
|
|
</div>
|
|
@endsection
|