@extends(getTemplate() .'.panel.layouts.panel_layout') @push('styles_top') @endpush @section('content') @php $registrationBonusSettings = getRegistrationBonusSettings(); $checkReferralUserCount = (!empty($registrationBonusSettings['unlock_registration_bonus_with_referral']) and !empty($registrationBonusSettings['number_of_referred_users'])); $purchaseAmountCount = (!empty($registrationBonusSettings['enable_referred_users_purchase'])); @endphp @if(!empty($accounting))
{{ trans('update.you_got_the_bonus') }}
{{ trans('update.your_registration_bonus_was_unlocked_on_date',['date' => dateTimeFormat($accounting->created_at, 'j M Y')]) }}
@endif

{{ trans('update.registration_bonus') }}

{{ handlePrice($registrationBonusSettings['registration_bonus_amount'] ?? 0) }} {{ trans('update.registration_bonus') }}
{{ !empty($accounting) ? trans('update.unlocked') : trans('update.locked') }} {{ trans('update.bonus_status') }}
{{ !empty($accounting) ? dateTimeFormat($accounting->created_at, 'j M Y') : '-' }} {{ trans('update.bonus_date') }}
@if($checkReferralUserCount or $purchaseAmountCount)
{{ trans('update.registration_bonus') }}

{{ trans('update.bonus_status') }}

{{ trans('update.your_bonus_is_locked_To_unlock_the_bonus_please_check_the_following_statuses') }}:

@if(!empty($registrationBonusSettings['number_of_referred_users']))
{{ trans('update.referred_users') }} {{ $bonusStatusReferredUsersChart['complete'] == 0 ? trans('update.you_havent_referred_any_users') : trans('update.you_referred_count_users_to_the_platform',['count' => "{$bonusStatusReferredUsersChart['referred_users']}/{$registrationBonusSettings['number_of_referred_users']}"]) }}
@if($bonusStatusReferredUsersChart['complete'] == 100)
@endif
@endif @if($purchaseAmountCount)
{{ trans('update.users_purchases') }} {{ $bonusStatusUsersPurchasesChart['complete'] == 0 ? trans('update.you_havent_referred_any_users_to_purchase') : trans('update.count_users_achieved_purchase_target',['count' => "{$bonusStatusUsersPurchasesChart['reached_user_purchased']}/{$bonusStatusUsersPurchasesChart['total_user_purchased']}"]) }}
@if($bonusStatusUsersPurchasesChart['complete'] == 100)
@endif
@endif
@endif @php $registrationBonusTermsSettings = getRegistrationBonusTermsSettings(); @endphp @if(!empty($registrationBonusTermsSettings) and !empty($registrationBonusTermsSettings['items']))

{{ trans('update.how_to_get_bonus') }}

@foreach($registrationBonusTermsSettings['items'] as $termItem) @if(!empty($termItem['icon']) and !empty($termItem['title']) and !empty($termItem['description']))
{{ $termItem['title'] }}
{{ $termItem['title'] }} {{ $termItem['description'] }}
@endif @endforeach
@if(!empty($registrationBonusTermsSettings['term_image']))
{{ trans('update.how_to_get_bonus') }}
@endif
@endif
@if($checkReferralUserCount)

{{ trans('update.referral_history') }}

@if(!empty($referredUsers) and count($referredUsers))
@if($purchaseAmountCount) @endif @foreach($referredUsers as $user) @if($purchaseAmountCount) @endif @endforeach
{{ trans('panel.user') }}{{ trans('update.purchase_status') }}{{ trans('panel.registration_date') }}
{{ $user->full_name }}
{{ $user->full_name }}
@if((!empty($registrationBonusSettings['purchase_amount_for_unlocking_bonus']) and $user->totalPurchase >= $registrationBonusSettings['purchase_amount_for_unlocking_bonus']) or (empty($registrationBonusSettings['purchase_amount_for_unlocking_bonus']) and $user->totalPurchase > 0)) {{ trans('update.reached') }} @else {{ trans('update.not_reached') }} @endif {{ dateTimeFormat($user->created_at, 'Y M j | H:i') }}
@else

{{ trans('update.no_referred_users') }}

{{ trans('update.you_havent_referred_any_users_yet') }}

@endif
@endif @endsection @push('scripts_bottom') @endpush