{{-- Header --}}
{{-- Filters Panel --}}
{{-- Commission Calculation Results --}}
@if(session()->has('commission_calculation'))
@php $calculation = session('commission_calculation'); @endphp
@if(!empty($calculation['commissions']))
@else
@endif
@endif
{{-- Main Content --}}
{{ $title }}
{{-- View Mode Toggle --}}
{{-- Filter Toggle --}}
@if(Auth::user()->is_bo)
{{-- Commission Calculator --}}
{{-- Add Referral --}}
{{-- --}}
@else
{{-- Invite Referral --}}
@endif
@if(Auth::user()->is_bo)
@endif
@if($filterPeriod === 'custom')
@endif
@if(!empty($selectedItems) && Auth::user()->is_bo)
{{ count($selectedItems) }} sélectionnés
@endif
Calcul des commissions de parrainage
Période: {{ $calculation['start_date'] }} - {{ $calculation['end_date'] }}
Total des commissions calculées: {{ number_format($calculation['total_commission'], 2) }}€
Période {{ $calculation['period'] === 'monthly' ? 'mensuelle' : 'annuelle' }} @if($calculation['month']) - {{ $this->months[$calculation['month']] }} {{ $calculation['year'] }} @else - {{ $calculation['year'] }} @endif
Détail par parrain
| Parrain | Filleul | Nb dossiers | Commission totale | Actions | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $commission['plan_count'] }} | {{ number_format($commission['total_commission'], 2) }}€ | |||||||||||||
Détail des dossiers financés
|
||||||||||||||
Aucune commission trouvée pour cette période.
@if($viewMode === 'overview')
{{-- Overview Mode --}}
@if(Auth::user()->is_bo)
@endif
@endif
@if($viewMode === 'stats')
{{-- Statistics Mode --}}
@endif
{{-- Stats Cards --}}
{{-- Timeline Chart --}}
{{-- Recent Activity --}}
@endif
@if($viewMode === 'list')
{{-- List Mode --}}
{{-- Total Overview Card --}}
{{-- Pending Card --}}
{{-- Contacted Card --}}
{{-- Converted Card --}}
{{-- Registered Card --}}
{{-- Rejected Card --}}
Total
{{ $stats['total'] }}
En attente
{{ $stats['pending'] }}
{{ $stats['pending_rate'] }}%
Contactés
{{ $stats['contacted'] }}
{{ $stats['contact_rate'] }}%
Convertis
{{ $stats['converted'] }}
{{ $stats['converted_rate'] }}%
Inscrits
{{ $stats['registered'] }}
{{ $stats['conversion_rate'] }}%
Rejetés
{{ $stats['rejected'] }}
{{ $stats['rejected_rate'] }}%
Évolution des parrainages
@if(!empty($timelineStats))
@endif
{{-- Chart Bars Section --}}
{{-- Legend at Bottom --}}
@else
@foreach($timelineStats as $index => $stat)
@endforeach
{{-- Chart Bars Container --}}
{{-- Month/Year Label --}}
{{ $stat['month'] }}
Total
Inscrits
Aucune donnée disponible
Activité récente
@forelse($referrals->take(5) as $referral)
@if(Auth::user()->is_bo)
@endif
@empty
@endforelse
{{ $referral->referral_full_name }}
Parrainé par {{ $referral->sponsor->fullname }}
{{ $referral->status->label() }} {{ $referral->created_at->diffForHumans() }}
{{ $referral->status->label() }} {{ $referral->created_at->diffForHumans() }}
Aucune activité récente
Liste des parrainages ({{ $referrals->total() }})
@if($referrals->count() > 0)
{{-- Pagination --}}
@endif
|
|
@endif
@if(Auth::user()->is_bo)
Parrain | @endifFilleul(e) | Entreprise | Statut | Date création | @if(Auth::user()->is_bo)Actions | @endif|
|---|---|---|---|---|---|---|---|
|
|
@endif
@if(Auth::user()->is_bo)
@endif | {{ $referral->referral_email }} | {{ $referral->referral_company ?? 'N/A' }} | {{ $referral->status->label() }} | {{ $referral->created_at->format('d/m/Y H:i') }} | @if(Auth::user()->is_bo)
|
@endif
{{ $referrals->links('vendor.livewire.modern-bootstrap') }}
@else
Aucun parrainage trouvé
{{ $search ? 'Essayez de modifier vos critères de recherche.' : 'Commencez par créer votre premier parrainage.' }}
Statistiques détaillées
{{-- Performance Metrics --}}
{{-- Status Distribution --}}
Indicateurs de performance
{{ $stats['contact_rate'] }}%
Taux de contact
{{ $stats['contacted'] }}/{{ $stats['total'] }} contactés
{{ $stats['conversion_rate'] }}%
Taux de conversion
{{ $stats['registered'] }}/{{ $stats['total'] }} inscrits
Répartition par statut
@php
$total = $stats['total'];
$statuses = [
['key' => 'pending', 'label' => 'En attente', 'color' => 'warning', 'count' => $stats['pending']],
['key' => 'contacted', 'label' => 'Contactés', 'color' => 'info', 'count' => $stats['contacted']],
['key' => 'converted', 'label' => 'Convertis', 'color' => 'primary', 'count' => $stats['converted']],
['key' => 'registered', 'label' => 'Inscrits', 'color' => 'success', 'count' => $stats['registered']],
['key' => 'rejected', 'label' => 'Rejetés', 'color' => 'danger', 'count' => $stats['rejected']],
];
@endphp
@foreach($statuses as $status)
@php $percentage = $total > 0 ? round(($status['count'] / $total) * 100, 1) : 0; @endphp
@endforeach
{{ $status['label'] }}
{{ $status['count'] }}
({{ $percentage }}%)