@php // Grafik için veri hazırla $maxMonthlyCustomers = max($values); $avgMonthlyCustomers = $values ? round(array_sum($values) / count($values), 1) : 0; @endphp

Müşteri Analizi

Müşteri segmentasyonu ve hizmet kullanım oranlarını analiz edin

Analiz Dönemi

@foreach([1, 3, 6, 12] as $p) {{ $p }} {{ $p == 1 ? 'Ay' : 'Ay' }} @endforeach
Toplam

Müşteri

{{ number_format($totalCustomers) }}

Aktif

Müşteri

{{ number_format($activeCustomers) }}

Bu Ay

Yeni Müşteri

{{ number_format($thisMonthCustomers) }}

Ortalama

Aylık

{{ number_format($avgMonthlyCustomers, 1) }}

Müşteri Trendi (Son {{ $period }} Ay)

Aylık müşteri ekleme değişimini görsel olarak analiz edin

Aylık Müşteri
En Yüksek: {{ number_format($maxMonthlyCustomers) }}

Müşteri Türleri

@forelse($customerTypes as $type)
@switch($type->customer_type) @case('individual') Bireysel @break @case('corporate') Kurumsal @break @default {{ ucfirst($type->customer_type ?? 'Genel') }} @endswitch {{ $type->count }}
@empty

Müşteri türü bilgisi bulunamadı

@endforelse

Müşteri Durumları

Aktif Müşteri {{ number_format($activeCustomers) }}
Pasif Müşteri {{ number_format($totalCustomers - $activeCustomers) }}
Bu Ay Eklenen {{ number_format($thisMonthCustomers) }}

Aylık Detaylar

@foreach($labels as $index => $label) @php $currentValue = $values[$index]; $previousValue = $index > 0 ? $values[$index - 1] : 0; $change = $previousValue > 0 ? (($currentValue - $previousValue) / $previousValue) * 100 : 0; @endphp @endforeach
Dönem Müşteri Sayısı Değişim
{{ $label }} {{ number_format($currentValue) }} @if($index > 0) {{ $change >= 0 ? '+' : '' }}{{ number_format($change,1) }}% @if($change >= 0) @else @endif @else - @endif