@extends('layouts.main') @section('content')

Calon Customer

@if (session()->has('success')) @endif @if (session()->has('error')) @endif
Daftar Calon Customer
Registrasi Calon Customer
@if(request('search')) Reset @endif
Total: {{ $customers->count() }} calon customer @if(request('search'))
Hasil pencarian: "{{ request('search') }}" @endif
@if($customers->count() > 0)
data per halaman
Menampilkan {{ $customers->firstItem() ?? 0 }} - {{ $customers->lastItem() ?? 0 }} dari {{ $customers->total() }} data
@foreach($customers as $index => $customer) @endforeach
# Nama Username/No HP Email No ODP Tgl Lahir Tipe Bayar Biaya Reg. Status Cetak PDF Aksi
{{ ($customers->currentPage() - 1) * $customers->perPage() + $index + 1 }} {{ $customer->name }} @if($customer->no_ktp)
KTP: {{ $customer->no_ktp }} @endif
{{ $customer->username ?? $customer->phone }} {{ $customer->email ?? '-' }} @if($customer->odp) {{ $customer->odp }} @else - @endif {{ $customer->tanggal_lahir ?? '-' }} @if($customer->type_bayar == 1) Bayar @elseif($customer->type_bayar == 2) Free @else Default @endif @if($customer->jum_biaya_registrasi > 0) Rp {{ number_format($customer->jum_biaya_registrasi, 0, ',', '.') }} @else Rp 0 @endif Calon Cetak PDF
@if(auth()->user()->role === 'admin')
@csrf @method('DELETE')
@endif
{{ $customers->appends(request()->query())->links() }}
Informasi:
  • Calon customer adalah customer dengan status pendaftaran yang belum diaktifkan
  • Untuk mengaktifkan calon customer, edit data customer dan ubah status customer menjadi "Aktif"
  • Data yang ditampilkan di halaman ini adalah customer dengan Status Customer = Calon (0)
@else @endif
@endsection @push('scripts') @endpush