{{-- IF USER PAYS ON EVENT ENTRY FEE --}} @if (auth()->check() && auth()->user()->getActiveSubscriptions && $plan?->plan_type === 'member' && $event)

Event Fee

Hosted event

${{ $event->event_fee }}

Total

${{ $event->event_fee }}

{{-- IF USER IS A RAF NEW MEMBER AND PAY FOR BOTH EVENT AND SUBSCRIPTION --}} @elseif(($event && !auth()->check()) || (auth()->check() && !auth()->user()->getActiveSubscriptions && $event))
@if ($plan->plan_type === 'member')

Host's Event Fee (USD) / One Time

${{ $event->event_fee }}

@endif

{{ strtoupper($plan->name) }} (USD) / {{ getPlanTypeShowName($plan->time_type) }}

${{ $plan->price }}

@if ($plan->plan_type == 'host')

Discount Code

if any
@endif

Total

@if (auth()->user() && auth()->user()->hasRole('Host') && $plan->plan_type === 'host')

${{ $plan->price }}

@else

${{ number_format(getEventById($user->event_id)->event_fee + $plan->price, 2) }}

@endif
{{-- IF USER IS MEMBER AND PAYING FOR ONLY SUBSCRIPTION || USER IS HOST AND PAYING ONLY FOR CREATING EVENT --}} @else
@if ($plan->plan_type === 'host')
Hosted event

{{ strtoupper(getPlanTypeShowName($plan->name)) }} (USD) / Event

${{ $plan->price }}

@else

{{ strtoupper(getPlanTypeShowName($plan->name)) }} (USD) / {{ getPlanTypeShowName($plan->time_type) }}

${{ $plan->price }}

@endif {{-- DISCOUNT ONLY FOR HOST --}} @if ($plan->plan_type === 'host')

Discount Code

if any
{{--
--}}
@endif

Total

${{ $plan->price }}

@endif {{-- functionality for discount coupan --}} @if ($plan->plan_type === 'host') @push('scripts') @endpush @endif