@extends('layouts.main') @push('styles') @endpush @section('content')

Edit Customer

@if (session()->has('error')) @endif
Edit Data Customer: {{ $customer->name }}
@csrf @method('PUT')
@error('name')
{{ $message }}
@enderror
@error('status_customer')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
@error('username')
{{ $message }}
@enderror Format: 0857..., +62857..., atau 62857... (otomatis dinormalisasi ke 0857...)
jenis_kelamin) == 'L' ? 'checked' : '' }} required>
jenis_kelamin) == 'P' ? 'checked' : '' }} required>
@error('jenis_kelamin')
{{ $message }}
@enderror

Data Wilayah
@include('components.region-dropdown', [ 'required' => true, 'provinceValue' => old('province_code', $customer->province_code ?? ''), 'regencyValue' => old('regency_code', $customer->regency_code ?? ''), 'districtValue' => old('district_code', $customer->district_code ?? ''), 'villageValue' => old('village_code', $customer->village_code ?? ''), ])
Alamat Detail
@error('address')
{{ $message }}
@enderror Contoh: Jl. Merdeka No. 123, RT 01/RW 05, dekat Alfamart
@error('lat')
{{ $message }}
@enderror
@error('lon')
{{ $message }}
@enderror
Klik pada peta untuk memilih lokasi customer, atau gunakan tombol "Gunakan Lokasi Saat Ini"
@error('photo_profile')
{{ $message }}
@enderror Format: JPG, JPEG, PNG. Maksimal 2MB @if($customer->profile)
Foto saat ini:
Current Photo
@endif
@error('rumah_tampak_depan')
{{ $message }}
@enderror Format: JPG, JPEG, PNG. Maksimal 2MB @if($customer->rumah_tampak_depan)
Foto saat ini:
Foto Rumah
@endif

Paket Internet (Opsional)
@error('kategori_paket_id')
{{ $message }}
@enderror
@error('paket_internet_id')
{{ $message }}
@enderror

Informasi WiFi
@error('wifi_ssid')
{{ $message }}
@enderror Nama jaringan WiFi yang akan digunakan customer
@error('wifi_password')
{{ $message }}
@enderror Password untuk akses WiFi customer

Informasi Tambahan
@error('catatan')
{{ $message }}
@enderror Catatan khusus atau informasi tambahan mengenai customer ini
@error('customer_service')
{{ $message }}
@enderror Nama Customer Service yang melayani customer ini

Detail Pembayaran
diskon_type ?? 'persentase') == 'persentase' ? 'checked' : '' }}>
diskon_type ?? 'persentase') == 'nominal' ? 'checked' : '' }}>
%
Rp
Diskon akan mengurangi harga paket
Rp @error('jum_biaya_registrasi')
{{ $message }}
@enderror
Rp @error('device_fee')
{{ $message }}
@enderror
Rp @error('tambahan_lain')
{{ $message }}
@enderror

@error('tanggal_jatuh_tempo')
{{ $message }}
@enderror Pilih tanggal jatuh tempo pembayaran bulanan. Klik untuk memilih dari kalender bulan berikutnya.

Informasi Prorata Bulan Pertama
Tanggal Transaksi:
-
Tanggal Jatuh Tempo:
-
Sisa Hari Bulan Ini:
0 hari
Hari Bulan Berikutnya:
0 hari
Total Hari Prorata:
0 hari
Harga Paket (Per Hari):
Rp 0
Biaya Prorata:
Rp 0
Nol Rupiah

Tanda Tangan Customer Service
Klik untuk membuat tanda tangan digital
@if($customer->ttd_cs)
Tanda Tangan CS
@endif
Kembali
Info Customer Saat Ini
@if($customer->photo_profile) Photo @else
@endif
{{ $customer->name }}
{{ $customer->status === 'active' ? 'Aktif' : 'Nonaktif' }}
@php $statusCustomerBadge = [ 0 => ['class' => 'warning', 'label' => 'Calon'], 1 => ['class' => 'success', 'label' => 'Aktif'], 2 => ['class' => 'secondary', 'label' => 'Non-Aktif'], ]; $statusInfo = $statusCustomerBadge[$customer->status_customer ?? 0] ?? ['class' => 'secondary', 'label' => 'Unknown']; @endphp {{ $statusInfo['label'] }}
Username: {{ $customer->username }}
Email: {{ $customer->email }}
Phone: {{ $customer->phone }}
Bergabung: {{ $customer->created_at->format('d M Y') }}

Alamat

{{ $customer->address }}

@if($customer->lat && $customer->lon)
Koordinat

Lat: {{ $customer->lat }}
Lon: {{ $customer->lon }}

@endif
@include('components.signature-pad-modal') @endsection @push('scripts') @endpush