@extends(getTemplate() .'.panel.layouts.panel_layout') @push('styles_top') @endpush @section('content')

{{ trans('panel.affiliate_statistics') }}

{{ $referredUsersCount }} {{ trans('panel.referred_users') }}
{{ handlePrice($registrationBonus) }} {{ trans('panel.registration_bonus') }}
{{ handlePrice($affiliateBonus) }} {{ trans('panel.affiliate_bonus') }}

{{ trans('panel.affiliate_summary') }}

@if(!empty($referralSettings))
@if(!empty($referralSettings['affiliate_user_amount']))

- {{ trans('panel.user_registration_reward') }}: {{ handlePrice($referralSettings['affiliate_user_amount']) }}

@endif @if(!empty($referralSettings['referred_user_amount']))

- {{ trans('panel.referred_user_registration_reward') }}: {{ handlePrice($referralSettings['referred_user_amount']) }}

@endif @if(!empty($referralSettings['affiliate_user_commission']))

- {{ trans('panel.referred_user_purchase_commission') }}: {{ $referralSettings['affiliate_user_commission'] }}%

@endif

- {{ trans('panel.your_affiliate_code') }}: {{ $affiliateCode->code }}

@if(!empty($referralSettings['referral_description']))

- {{ $referralSettings['referral_description'] }}

@endif
@endif

{{ trans('panel.affiliate_url') }}

{{ trans('panel.earnings') }}

@foreach($affiliates as $affiliate) @endforeach
{{ trans('panel.user') }} {{ trans('panel.registration_bonus') }} {{ trans('panel.affiliate_bonus') }} {{ trans('panel.registration_date') }}
{{ $affiliate->referredUser->full_name }}
{{ $affiliate->referredUser->full_name }}
{{ handlePrice($affiliate->getAffiliateRegistrationAmountsOfEachReferral()) }} {{ handlePrice($affiliate->getTotalAffiliateCommissionOfEachReferral()) }} {{ dateTimeFormat($affiliate->created_at, 'Y M j | H:i') }}
{{ $affiliates->appends(request()->input())->links('vendor.pagination.panel') }}
@endsection