@php $pct = fn (?int $bp) => rtrim(rtrim(number_format(($bp ?? 0) / 100, 2), '0'), '.').'%'; @endphp
Creators
Creator-attributed sales this month: {{ money($monthRevenue) }} · default commission {{ $pct($default) }}
Programme settings
@foreach (['creators' => 'Creators', 'applications' => 'Applications', 'payouts' => 'Payouts', 'campaigns' => 'Campaigns'] as $k => $l)
@endforeach
@if ($tab === 'creators')
| # | Creator | Code | Rate | Clicks (month) | Orders (month) | Sales (month) | Owed | Status |
@forelse ($creators as $p)
@php $b = $board[$p->id] ?? null; @endphp
| {{ $b['rank'] ?? '—' }} |
{{ $p->display_name }}{{ $p->user?->email }} |
{{ $p->code }} |
{{ $pct($p->rateBp()) }}{{ $p->commission_bp === null ? '' : '*' }} |
{{ number_format($p->month_clicks) }} |
{{ number_format($b['orders'] ?? 0) }} |
{{ money($b['revenue'] ?? 0) }} |
{{ money((int) $p->owed) }} |
{{ ucfirst($p->status) }} |
@empty
| No creators yet. Approve applications to add some. |
@endforelse
* custom rate. Ranking by this month's attributed sales (refunded orders excluded).
@elseif ($tab === 'applications')
@forelse ($applications as $a)
{{ $a->user?->name }} {{ $a->user?->email }}
{{ $a->created_at->format('j M Y') }} · {{ $a->audienceLabel() }} followers{{ $a->city ? ' · '.$a->city : '' }}
{{ ucfirst($a->status) }}
{{ $a->pitch }}
@if ($a->status !== 'pending')
{{ ucfirst($a->status) }} by {{ $a->reviewer?->name }} · {{ $a->reviewed_at?->format('j M Y') }}{{ $a->rejection_reason ? ' — '.$a->rejection_reason : '' }}@endif
@if ($a->status === 'pending')
@if ($reviewing === $a->id)
@else
@endif
@endif
@empty
No applications yet.
@endforelse
@elseif ($tab === 'payouts')
| Created | Creator | Pay to | Amount | Status | Reference | |
@forelse ($payouts as $p)
| {{ $p->created_at->format('j M Y') }} |
{{ $p->profile?->display_name }} |
{{ $p->profile?->payout_bank }} · {{ $p->profile?->payout_account_name }} |
{{ money($p->amount) }} |
{{ ucfirst($p->status) }} |
{{ $p->reference ?? '—' }} |
@if ($p->status === 'pending')
@if ($paying['id'] === $p->id)
@else
@endif
@endif
|
@empty
| No payouts yet. Create one from a creator's page. |
@endforelse
@else
| Campaign | Dates | Product | Commission | Status | |
@forelse ($campaigns as $c)
| {{ $c->name }} | {{ $c->starts_at->format('j M') }} – {{ $c->ends_at->format('j M Y') }} | {{ $c->product?->name ?? 'All' }} | {{ $c->commission_bp !== null ? $pct($c->commission_bp) : '—' }} |
{{ $c->isLive() ? 'Live' : ($c->is_active ? ($c->ends_at->isPast() ? 'Ended' : 'Scheduled') : 'Off') }} |
|
@empty
| No campaigns. Briefs appear on every creator's dashboard; an optional boosted rate applies to sales while live. |
@endforelse
@endif