48 lines
2.0 KiB
PHP
48 lines
2.0 KiB
PHP
@extends('layouts.app_callcenter')
|
|
|
|
@section('content')
|
|
<div class="container">
|
|
<a href="{{ route('arcc.pelanggan') }}" class="btn btn-secondary mt-3">Kembali</a>
|
|
<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>Nama Cawangan</th>
|
|
<th>Tindakan</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach(session('customer_list') as $customer)
|
|
<tr>
|
|
<td>{{ $customer['nama'] }}</td>
|
|
<td> @php
|
|
if($customer['kpbaru'] != null){
|
|
$noic = $customer['kpbaru'];
|
|
}else{
|
|
$noic = $customer['kplama'];
|
|
}
|
|
@endphp
|
|
{{ $noic }}</td>
|
|
<td>{{ $customer['nama_cawangan'] }}</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
|