modified carian nama pelanggan arcc
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
@extends('layouts.app_callcenter')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<a href="javascript:window.history.go(-1);" class="btn btn-secondary mt-3">Kembali</a>
|
||||
<h4 class="text-center mb-4">Senarai Nama 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.searchpelanggannama') }}" method="GET">
|
||||
@csrf
|
||||
<input type="hidden" name="customer" value="{{ base64_encode(json_encode($customer)) }}">
|
||||
<input type="hidden" name="kodcaw" value="{{ $customer['kodcaw'] ?? '' }}">
|
||||
<input type="hidden" name="noic" value="{{ $noic ?? '' }}">
|
||||
<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="javascript:window.history.go(-1);" class="btn btn-secondary mt-3">Kembali</a>
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user