Informasi Customer
Nama Lengkap:
{{ $customer->name }}
Username:
{{ $customer->username }}
@if($customer->province_name || $customer->regency_name)
Wilayah:
@if($customer->province_name)
Provinsi: {{ $customer->province_name }}
@endif
@if($customer->regency_name)
Kab/Kota: {{ $customer->regency_name }}
@endif
@if($customer->district_name)
Kecamatan: {{ $customer->district_name }}
@endif
@if($customer->village_name)
Desa/Kel: {{ $customer->village_name }}
@endif
@endif
Alamat Detail:
{{ $customer->address }}
Status:
{{ $customer->status === 'active' ? 'Aktif' : 'Nonaktif' }}
Bergabung:
{{ $customer->created_at->format('d M Y H:i') }}
Terakhir Update:
{{ $customer->updated_at->format('d M Y H:i') }}
@if($customer->rumah_tampak_depan)
Foto Rumah Tampak Depan:
Klik foto untuk melihat ukuran penuh
@endif
Riwayat Order Customer
@php
// Get orders for this customer (assuming we have orders relationship)
$orders = \App\Models\Order::where('client_name', $customer->name)
->orWhere('client_email', $customer->email)
->orWhere('client_phone', $customer->phone)
->orderBy('created_at', 'desc')
->get();
@endphp
@if($orders->count() > 0)
| Order Number |
Type |
Title |
Status |
Created |
Action |
@foreach($orders as $order)
| {{ $order->order_number }} |
{!! $order->type_badge !!} |
{{ Str::limit($order->title, 30) }} |
{!! $order->status_badge !!} |
{{ $order->created_at->format('d M Y') }} |
|
@endforeach
@else
Belum Ada Order
Customer ini belum pernah membuat order
@endif