@extends('layouts.admin') @section('title', __('Affiliation')) @section('page-title', __('Affiliation')) @section('content')
{{ __('Search') }} {{ __('Reset') }}
@forelse($commissions as $c) @empty @endforelse
{{ __('Affiliate') }} {{ __('Customer') }} {{ __('Amount') }} {{ __('Status') }} {{ __('Created') }}
{{ $c->affiliate?->code ?? '—' }}
{{ $c->affiliate?->customer?->email ?? '' }}
{{ $c->referredCustomer?->full_name ?? '—' }}
{{ $c->referredCustomer?->email ?? '' }}
{{ strtoupper((string) $c->commission_currency) }} {{ number_format((float) $c->commission_amount, 2) }}
{{ $c->commission_type === 'percent' ? ((float) $c->commission_rate) . '%' : __('Fixed') }}
{{ $c->status }} {{ $c->created_at?->format('Y-m-d') }}
{{ __('No commissions found.') }}
@if($commissions->hasPages())
{{ $commissions->links() }}
@endif
@endsection