@extends('layouts.admin-modern') @section('title', 'Ambassadeur : ' . ($ambassador->user->name ?? '')) @section('content')
Code de parrainage
{{ $ambassador->referral_code }}
Lien de parrainage
Statut
@if($ambassador->status === 'active') Actif @elseif($ambassador->status === 'suspended') Suspendu @else Inactif @endifMembre depuis
{{ $ambassador->created_at->format('d/m/Y') }}
Prestataires
{{ $stats['total_prestataires'] }}
Commission totale
{{ number_format($stats['total_earned'], 2, ',', ' ') }}€
Déjà payé
{{ number_format($stats['total_paid'], 2, ',', ' ') }}€
Non payé
{{ number_format($stats['unpaid'], 2, ',', ' ') }}€
En attente
{{ number_format($stats['pending_commissions'], 2, ',', ' ') }}€
Visites lien
{{ $stats['referral_visits'] }}
Taux conversion
{{ $stats['conversion_rate'] }}%
{{ $message }}
@enderror{{ $assignment->prestataire->company_name ?? 'N/A' }}
{{ $assignment->prestataire->user->email ?? '' }} · {{ ucfirst(str_replace('_', ' ', $assignment->source)) }} · {{ $assignment->assigned_at->format('d/m/Y') }}
{{ $log->description }}
{{ $log->created_at->format('d/m/Y H:i') }}
| Date | Prestataire | Type | Montant | Commission | Statut |
|---|---|---|---|---|---|
| {{ $c->created_at->format('d/m/Y') }} | {{ $c->prestataire->company_name ?? 'N/A' }} | {{ ucfirst($c->order_type) }} | {{ number_format($c->base_amount, 2, ',', ' ') }}€ | {{ number_format($c->commission_amount, 2, ',', ' ') }}€ | @if($c->status === 'paid') Payé @elseif($c->status === 'pending') En attente @elseif($c->status === 'cancelled') Annulé @else {{ ucfirst($c->status) }} @endif |