@extends('layouts.app') @section('title', $tenant->nom_app . ' — Détail client') @section('styles') @endsection @section('content')
Clients
{{ $tenant->nom_app }}
{{ $tenant->nom }} · créé le {{ $tenant->created_at->format('d/m/Y') }}
@if($tenant->logo) {{ $tenant->nom }} @else {{ strtoupper(substr($tenant->nom, 0, 2)) }} @endif
{{-- Informations générales --}}
Informations générales
Statut @if($tenant->actif) Actif @else Inactif @endif
Nom société {{ $tenant->nom }}
Nom application {{ $tenant->nom_app }}
Slug {{ $tenant->slug }}
@if($tenant->domaine)
Domaine {{ $tenant->domaine }}
@endif
Email contact {{ $tenant->email_contact ?? '—' }}
Couleurs {{ $tenant->couleur_principale }} {{ $tenant->couleur_accent }}
Création {{ $tenant->created_at->format('d/m/Y à H:i') }}
@csrf
@csrf @method('DELETE')
{{-- Abonnement --}}
Abonnement
@if($subscription) @php $status = $subscription->stripe_status; $badgeClass = match($status) { 'active' => 'badge-active', 'trialing' => 'badge-trial', 'canceled' => 'badge-canceled', default => 'badge-inactive', }; $statusLabel = match($status) { 'active' => 'Actif', 'trialing' => 'Période d\'essai', 'canceled' => 'Annulé', 'past_due' => 'Paiement en retard', 'incomplete' => 'Incomplet', 'incomplete_expired' => 'Expiré', 'unpaid' => 'Impayé', default => ucfirst($status), }; @endphp
Statut {{ $statusLabel }}
Plan {{ $subscription->stripe_price ?? '—' }}
@if($subscription->trial_ends_at)
Fin d'essai {{ $subscription->trial_ends_at->format('d/m/Y') }}
@endif @if($subscription->ends_at)
Expire le {{ $subscription->ends_at->format('d/m/Y') }}
@endif
Créé le {{ $subscription->created_at->format('d/m/Y') }}
Stripe ID {{ $subscription->stripe_id }}
@else
Aucun abonnement actif
@if($tenant->trial_ends_at)
Essai générique jusqu'au {{ $tenant->trial_ends_at->format('d/m/Y') }}
@endif @endif
{{-- Utilisateurs --}}
Utilisateurs {{ $tenant->users->count() }}
@forelse($tenant->users as $user)
{{ strtoupper(substr($user->name, 0, 2)) }}
{{ $user->name }} @if($user->is_super_admin) Super Admin @endif
{{ $user->email }}
{{ $user->created_at->format('d/m/Y') }}
@empty
Aucun utilisateur pour ce client
@endforelse
@endsection