🎉 Invoice Paid – You Earned Commission

A student just paid using your promocode

Hi {{ $influencer->name }},

Great news! A student completed their payment using your promocode. Here are the full invoice details:

Invoice Details
Invoice # {{ $invoice->invoice_number }}
Student Name {{ $invoice->student?->full_name ?? '—' }}
Promocode Used {{ $invoice->promocode?->code ?? '—' }}
Total Price {{ number_format($invoice->total_price, 2) }} EGP
Discount Applied {{ number_format(($invoice->total_price - $invoice->net_price), 2) }} EGP
Net Paid {{ number_format($invoice->net_price, 2) }} EGP
Payment Date {{ now()->format('d M Y, h:i A') }}
@php $promo = $invoice->promocode; $commission = 0; if ($promo) { if ($promo->commission_type === 'fixed') { $commission = $promo->commission_amount; } elseif ($promo->commission_type === 'percentage') { $commission = ($invoice->net_price * $promo->commission_amount) / 100; } } @endphp @if ($commission > 0)
Your Commission
{{ number_format($commission, 2) }} EGP
@endif

Keep sharing your promocode to earn more commissions. Thank you for being part of our network!