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

Detail Customer

@if (session()->has('success')) @endif
@if($customer->profile) Profile @else
@endif

{{ $customer->name }}

{{ $customer->status === 'active' ? 'Customer Aktif' : 'Customer Nonaktif' }}
Informasi Customer
Nama Lengkap:
{{ $customer->name }}
Username:
{{ $customer->username }}
Nomor Telepon:
@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:
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)
@foreach($orders as $order) @endforeach
Order Number Type Title Status Created Action
{{ $order->order_number }} {!! $order->type_badge !!} {{ Str::limit($order->title, 30) }} {!! $order->status_badge !!} {{ $order->created_at->format('d M Y') }}
@else
Belum Ada Order

Customer ini belum pernah membuat order

@endif
Kembali ke Daftar
Edit Customer
@csrf @method('PUT')
Buat Order untuk Customer Ini
@endsection