@extends('layouts.admin') @section('title', __('Affiliation')) @section('page-title', __('Affiliation')) @section('content')
{{ __('Search') }} {{ __('Reset') }}
@forelse($referrals as $ref) @empty @endforelse
{{ __('Affiliate') }} {{ __('Visitor') }} {{ __('Referred Customer') }} {{ __('Date') }}
{{ $ref->affiliate?->code ?? '—' }}
{{ $ref->affiliate?->customer?->email ?? '' }}
{{ $ref->visitor_id ?: '—' }} @if($ref->referred_customer_id)
{{ $ref->referredCustomer?->full_name ?? '—' }}
{{ $ref->referredCustomer?->email ?? '' }}
@else {{ __('Not registered') }} @endif
{{ ($ref->referred_at ?? $ref->created_at)?->format('Y-m-d') }}
{{ __('No referrals found.') }}
@if($referrals->hasPages())
{{ $referrals->links() }}
@endif
@endsection