| No |
Nama |
Alamat |
No.WA |
Claim Code |
Status |
Action |
@forelse ($claims as $index => $claim)
| {{ ($claims->currentPage() - 1) * $claims->perPage() + $loop->iteration }} |
{{ $claim->user->name }} |
{{ $claim->user->alamat }} |
@if($claim->user->no_wa)
@php
// bersihin nomor (hapus spasi, +, -)
$wa = preg_replace('/[^0-9]/', '', $claim->user->no_wa);
// pastiin format Indonesia
if (str_starts_with($wa, '0')) {
$wa = '62' . substr($wa, 1);
}
@endphp
{{ $claim->user->no_wa }}
@else
-
@endif
|
{{ $claim->claim_code }}
|
@if ($claim->status === 0)
Processed
@else
Done
@endif
|
@if($claim->status == 0)
@else
Done
@endif
|
@empty
|
Belum ada data claim
|
@endforelse
Showing {{ $claims->firstItem() }} - {{ $claims->lastItem() }} of {{ $claims->total() }}
{{ $claims->links() }}