@extends('admin.layouts.admin') @section('title', __('Créer un affilié')) @section('content')
{{-- Header --}}

{{ __('Créer un affilié') }}

{{ __('Inscrire manuellement un client au programme d\'affiliation') }}

@if($errors->any())
@endif
@csrf

{{ __('Informations') }}

{{-- Client --}}

{{ __('Client') }} *

{{ __('Seuls les clients sans compte affilié sont listés.') }}

{{-- Type + taux de commission --}}

{{ __('Commission') }} *

{{ __('Pourcentage sur la vente ou montant fixe par commande.') }}

{{-- Toggle % / € --}}
%
{{-- Statut --}}

{{ __('Statut') }} *

@php $currentStatus = old('status', 'active'); $cardBase = 'status-card flex flex-col items-center gap-1.5 p-4 rounded-xl border-2 transition-all cursor-pointer'; $cardOff = 'border-gray-200 dark:border-gray-600 text-gray-400 dark:text-gray-500'; $cardOn = ['active' => 'border-green-500 bg-green-50 text-green-600 dark:bg-green-900/20 dark:text-green-400', 'inactive' => 'border-yellow-500 bg-yellow-50 text-yellow-600 dark:bg-yellow-900/20 dark:text-yellow-400', 'suspended' => 'border-red-500 bg-red-50 text-red-600 dark:bg-red-900/20 dark:text-red-400']; $cardIcon = ['active' => 'bi-check-circle-fill', 'inactive' => 'bi-pause-circle-fill', 'suspended' => 'bi-x-circle-fill']; $cardLabel = ['active' => __('Affilix::affiliation.active'), 'inactive' => __('Affilix::affiliation.inactive'), 'suspended' => __('Affilix::affiliation.suspended')]; @endphp
@foreach(['active', 'inactive', 'suspended'] as $st) @endforeach
{{-- Méthode de paiement --}}

{{ __('Méthode de paiement') }}

{{ __('L\'affilié pourra la modifier depuis son espace.') }}

{{ __('Annuler') }}
@endsection