{{ $client->name }}

{{ $client->code }} {!! $client->status_badge !!} {!! $client->priority_badge !!}

Detail informasi client dan contact persons

@if (session()->has('message')) @endif @if (session()->has('error')) @endif
@if($activeTab === 'details')

Informasi Dasar

Nama Client
{{ $client->name }}
Kode Client
{{ $client->code }}
Tipe
{{ $client->type === 'company' ? 'Perusahaan' : 'Individu' }}
Industri
{{ $client->industry ?: '-' }}
Status
{!! $client->status_badge !!}
Prioritas
{!! $client->priority_badge !!}

Informasi Kontak

Email
@if($client->email) {{ $client->email }} @else - @endif
Telepon
@if($client->phone) {{ $client->phone }} @else - @endif
Website
@if($client->website) {{ $client->website }} @else - @endif
NPWP
{{ $client->tax_id ?: '-' }}

Informasi Alamat

Alamat Lengkap
{{ $client->address ?: '-' }}
Kota
{{ $client->city ?: '-' }}
Provinsi
{{ $client->province ?: '-' }}
Kode Pos
{{ $client->postal_code ?: '-' }}
Negara
{{ $client->country }}

Informasi Bisnis

Omzet Tahunan
@if($client->annual_revenue) Rp {{ number_format($client->annual_revenue, 0, ',', '.') }} @else - @endif
Jumlah Karyawan
{{ $client->employee_count ? number_format($client->employee_count) . ' orang' : '-' }}
Mulai Kerjasama
{{ $client->partnership_since ? $client->partnership_since->format('d M Y') : '-' }}
Catatan
{{ $client->notes ?: '-' }}

Metadata

Dibuat Oleh
{{ $client->creator->name ?? 'System' }}
Tanggal Dibuat
{{ $client->created_at->format('d M Y H:i') }}
Diperbarui Oleh
{{ $client->updater->name ?? '-' }}
Terakhir Diperbarui
{{ $client->updated_at->format('d M Y H:i') }}
@endif @if($activeTab === 'contacts')

Contact Persons

Tambah Contact Person
@if($client->contactPeople->count() > 0)
@foreach($client->contactPeople as $contact)

{{ $contact->name }}

@if($contact->is_primary) Primary @endif @if($contact->is_decision_maker) Decision Maker @endif {{ $contact->status === 'active' ? 'Aktif' : 'Tidak Aktif' }}

Posisi: {{ $contact->title ?: '-' }}

Departemen: {{ $contact->department ?: '-' }}

@if($contact->email)

Email: {{ $contact->email }}

@endif
@if($contact->mobile)

Mobile: {{ $contact->mobile }}

@endif @if($contact->whatsapp)

WhatsApp: {{ $contact->whatsapp }}

@endif

Komunikasi: {{ ucfirst($contact->preferred_communication ?: 'email') }}

@endforeach
@else

Belum ada contact person untuk client ini

Tambah Contact Person Pertama
@endif
@endif @if($activeTab === 'contracts')

Kontrak Klien

Tambah Kontrak
@if($client->contracts->count() > 0)
@foreach($client->contracts as $contract)

{{ $contract->title }}

{{ $contract->contract_number }} {!! $contract->type_badge !!} {!! $contract->status_badge !!}
@if($contract->description)

{{ $contract->description }}

@endif

Periode Kontrak:
{{ $contract->start_date->format('d M Y') }} - {{ $contract->end_date->format('d M Y') }}

@if($contract->is_expired) Expired {{ abs($contract->days_until_expiry) }} hari yang lalu @elseif($contract->is_expiring) {{ $contract->days_until_expiry }} hari lagi akan expired @else {{ $contract->days_until_expiry }} hari lagi @endif

Nilai Kontrak:
{{ $contract->formatted_value }}

Pembayaran:
{{ ucfirst(str_replace('_', ' ', $contract->payment_terms)) }}

@if($contract->signed_date)

Tanggal Tanda Tangan:
{{ $contract->signed_date->format('d M Y') }}

@endif @if($contract->client_signatory || $contract->company_signatory)

Penandatangan:
@if($contract->client_signatory) Client: {{ $contract->client_signatory }}
@endif @if($contract->company_signatory) Company: {{ $contract->company_signatory }} @endif

@endif
@if($contract->status === 'active')
Progress Kontrak {{ number_format($contract->progress_percentage, 1) }}%
@endif @if($contract->notes)

Catatan: {{ $contract->notes }}

@endif
@if($contract->status === 'active' && $contract->is_expiring) @endif
@endforeach
@else

Belum ada kontrak untuk client ini

Tambah Kontrak Pertama
@endif
@endif