@extends('layouts.app') @section('title', 'Recevoir mes paiements') @section('content') @php $hasStripe = $paymentsEnabled ?? false; @endphp
{{-- Header --}}
Retour

💰 Paiements

{{-- Messages --}} @if(session('success'))
✓ {{ session('success') }}
@endif @if(session('error') || !empty($error))
{{ session('error') ?? $error }}
@endif @if($errors->any())
@foreach($errors->all() as $err)

{{ $err }}

@endforeach
@endif {{-- Résumé compact --}} @php $internalBalance = $prestataire->balance ?? 0; $totalBalance = ($totalEarnings ?? 0) + $internalBalance; @endphp @if(($paymentsEnabled ?? false) || $internalBalance > 0)
{{ ($paymentsEnabled ?? false) ? 'Paiements activés' : 'Solde disponible' }}
{{ number_format($totalBalance, 2) }} € @if($internalBalance > 0 && ($totalEarnings ?? 0) > 0)

TaPrestation: {{ number_format($internalBalance, 2) }}€ + Stripe: {{ number_format($totalEarnings, 2) }}€

@endif
@else
Configurez au moins une méthode
@endif {{-- 3 ONGLETS ALIGNÉS --}}
{{-- Onglet Stripe --}}
{{-- CONTENU DES ONGLETS --}} {{-- CONTENU STRIPE --}}
{{-- Header avec bouton info --}}
💳 Carte bancaire (Stripe)
@if($hasStripe)
{{-- Balance interne TaPrestation (escrow, ventes urgentes, etc.) --}} @if(($prestataire->balance ?? 0) > 0)

{{ number_format($prestataire->balance ?? 0, 2) }} €

💰 Solde TaPrestation

Ventes urgentes, escrow confirmés

@endif

{{ number_format($totalEarnings ?? 0, 2) }} €

Stripe disponible

{{ number_format($pendingBalance ?? 0, 2) }} €

En attente

@if(($escrowPending ?? 0) > 0)

dont {{ number_format($escrowPending, 2) }}€ escrow

@endif
📊 Voir mes paiements ⚙️ Gérer Stripe
@else
Paiements par carte bancaire
Virements automatiques sur votre compte
Commission plateforme + frais Stripe déduits
@if(!empty($onboardingUrl)) 🚀 Activer Stripe

⏱️ 2 min : IBAN + pièce d'identité

@else 🔄 Réessayer @endif
@endif @if($onboardingPending ?? false)

@if($requiresMoreInfo ?? false) Informations à compléter @else Vérification en cours... @endif

@endif
{{-- Info sécurité --}}

🔒 Vos données sont sécurisées et chiffrées

{{-- Modal Stripe --}} @endsection