@if ($user && $is_active && $user->user_type != null) {{-- @if ($ads_top->count() > 0) --}} @if (count($ads_top) > 0)
@if ($ad_banner_w && $ad_banner_h)
@endif
@push('scripts') @endpush @endif {{--
--}}
{{-- Search bar --}}
{{-- bookmark network will only show to cards that is not yours --}} @if (auth()->user() && in_array(auth()->user()->user_type, ['Sponsored', 'Influencer', 'Basic', 'Gold', 'Platinum']) && $user->username != auth()->user()->username && !auth()->user()->is_admin && !auth()->user()->subcards()->where('username', $user->username)->exists()) @endif
{{-- Display Profile Picture --}} {{-- cover photo --}} @if ($profile_layout == 'default_cover') {{ $firstname . ' ' . $lastname }} {{ $firstname . ' ' . $lastname }} @endif {{-- Cover Only --}} @if ($profile_layout == 'cover_only') {{ $firstname . ' ' . $lastname }} @endif {{-- circled profile pic --}} @if ($profile_layout == 'default') {{ $firstname . ' ' . $lastname }} @endif {{-- rounded profile pic --}} @if ($profile_layout == 'rounded') {{ $firstname . ' ' . $lastname }} @endif {{-- full width profile pic --}} @if ($profile_layout == 'full_width') {{ $firstname . ' ' . $lastname }} @endif {{-- Display Full Name --}}

{{ isset($card_title) ? $card_title : $firstname . ' ' . $lastname }} @if ($user->user_type == 'Gold') {{-- --}} @elseif($user->user_type == 'Platinum') @endif

@if ($username_enabled == true)

{{ '@' . $user->username }}

@endif {{-- Display Bio --}} @if ($bio && $short_bio_enabled == true)

{{ $bio }}

@endif {{-- Display Job Title --}} @if (!empty($user->job_title) && empty($user->company))

{{ $user->job_title }}

@endif {{-- Display Job Title and company --}} @if (!empty($user->job_title) && !empty($user->company))

{{ $user->job_title }} @if (!empty($user->company_website)) at {{ $user->company }} @else at {{ $user->company }} @endif

@endif @if (($user->address || $user->country) && $display_country)

@endif @if ($contacts || $user->user_type != 'Free')

{{ $contact_text }}

@endif
@if (in_array($user->user_type, ['Basic', 'Sponsored', 'Influencer', 'Gold', 'Platinum']) && $connect_icon == true) @endif @if (in_array($user->user_type, ['Free', 'Basic', 'Sponsored', 'Influencer', 'Gold', 'Platinum']) && $communities) @endif @if (in_array($user->user_type, ['Sponsored', 'Basic', 'Gold', 'Platinum', 'Free']) && $directions) @endif {{-- Other contact points here --}} @if ($contacts) @endif
@if ($socials)

{{ $follow_text }}

@foreach ($socials as $social) {{-- @php dd($social->id); @endphp --}} @endforeach
@endif @if ($videos && in_array($user->user_type, ['Basic', 'Gold', 'Sponsored', 'Influencer', 'Platinum']))
{{-- --}}
@if ($video_count > 1) @endif @endif {{-- Gallery --}} {{-- @if ($images_count > 0 && $gallery_main == true) --}} @if (in_array($user->user_type, ['Sponsored', 'Gold', 'Platinum']) && $gallery_main == true && $images_count > 0)
@endif {{--
--}}
@if ($buttons) @foreach ($buttons as $button) @php $type = $button['type']; @endphp {{-- VCF button --}} @if ($type === 'vcf') @continue @endif {{-- HELP --}} @php if ($type === 'help') { if ( !in_array($user->user_type, [ 'Basic', 'Sponsored', 'Influencer', 'Gold', 'Platinum', ]) || !$connect_main ) { continue; } } @endphp @if ($type === 'help')    {{ $button->title }} @continue @endif {{-- Exchange Contacts --}} @php if ($type === 'exchange') { if ( !in_array($user->user_type, [ 'Basic', 'Sponsored', 'Influencer', 'Gold', 'Platinum', ]) ) { continue; } } @endphp @if ($type === 'exchange')    {{ $button->title }} @continue @endif {{-- Payments --}} @php if ($type === 'payments') { if ( !in_array($user->user_type, [ 'Basic', 'Sponsored', 'Influencer', 'Gold', 'Platinum', ]) || !$payments ) { continue; } } @endphp @if ($type === 'payments')    {{ $button->title }} @continue @endif @php if ($type === 'feedback') { if ( !in_array($user->user_type, [ 'Basic', 'Sponsored', 'Influencer', 'Gold', 'Platinum', ]) ) { continue; } } @endphp @if ($type === 'feedback')    {{ $button->title }} @continue @endif {{-- BIO --}} @php if ($type === 'bio') { if (!in_array($user->user_type, ['Gold', 'Platinum']) || !$user->bio_long) { continue; } } @endphp @if ($type === 'bio')    {{-- {{ $bio_text }} --}} {{ $button->title }} @continue @endif {{-- SHOP --}} @php if ($type === 'shop') { if (!in_array($user->user_type, ['Gold', 'Platinum']) || !$products) { continue; } } @endphp @if ($type === 'shop')    {{-- {{ $shop_text }} --}} {{ $button->title }} @continue @endif {{-- SALES --}} {{-- @php if ($type === 'sales') { if (!in_array($user->user_type, ['Gold', 'Platinum']) || !$sales) { continue; } } @endphp --}} {{-- @if ($type === 'sales')    {{ $button->title }} @continue @endif --}} {{-- Events --}} @php if ($type === 'events') { if ( !in_array($user->user_type, ['Basic', 'Gold', 'Platinum']) || !$events->isNotEmpty() ) { continue; } } @endphp @if ($type === 'events')    {{ $button->title }} @continue @endif @if ($type === 'team')    {{ $button->title }} @continue @endif @php if ($type === 'driving') { if ( !in_array($user->user_type, ['Sponsored', 'Gold', 'Platinum', 'Basic', 'Free']) || !$directions ) { continue; } } @endphp {{-- ZOOM REPLAYS --}} @if ($type === 'zoom_replay' && $replays)    {{ $button->title }} @continue @endif @php if ($type === 'zoom_replay') { if (!in_array($user->user_type, ['Gold', 'Platinum']) || !$replays) { continue; } } @endphp {{-- TRUSTED NETWORK --}} {{-- @if ($type === 'trusted_network' && $trusted_network) --}} @if ($type === 'trusted_network' && $trusted_network && $user->user_type === 'Platinum')    {{ $button->title }} @continue @endif @php if ($type === 'trusted_network' && ($user->user_type !== 'Platinum' || !$trusted_network)) { continue; } @endphp @if ($type === 'reviews' && $reviews)    {{ $button->title }} @continue @endif @php if ($type === 'reviews') { if (!in_array($user->user_type, ['Gold', 'Platinum']) || !$reviews) { continue; } } @endphp @if ($type === 'driving') @continue @endif {{-- SERVICES --}} @php if ($type === 'services') { if (!in_array($user->user_type, ['Gold', 'Platinum']) || !$services) { continue; } } @endphp @if ($type === 'services')    {{-- {{ $services_text }} --}} {{ $button->title }} @continue @endif @if ($type === 'zelle')    {{ $button['title'] }} @continue @endif {{-- APPLE PAY --}} @if ($type === 'apple_pay')    {{ $button['title'] }} @continue @endif {{-- PAYPAL EMAIL --}} @if ($type === 'paypal_email')    {{ $button['title'] }} @continue @endif {{-- FALLBACK BUTTON (for all other types) --}} @endforeach @endif @php // use Illuminate\Support\Str; $displayName = $card_title && Str::length($card_title) > 10 ? 'this' : ($card_title ?: $firstname); @endphp @if ($getacard_enabled === true) @if (in_array($user->user_type, ['Sponsored', 'Influencer', 'Gold', 'Platinum']) && !auth()->user()) {{-- @if (in_array($user->user_type, ['Sponsored', 'Influencer', 'Gold', 'Platinum']) && $mainCard == true && !auth()->user()) --}} @if ($affiliate_functionality === true) @php if ($user->user_type == 'Sponsored') { $affiliate_username = $sponsor_username; } else { $affiliate_username = $user->username; } @endphp    Get a card like {{ $displayName }} @else    Get a card like {{ $displayName }} @endif @endif @if ($user->user_type == 'Basic' && !auth()->user() && $referral) {{-- @if (in_array($user->user_type, ['Sponsored', 'Influencer', 'Gold', 'Platinum']) && $mainCard == true && !auth()->user()) --}}    Get a card like {{ $displayName }} @endif @endif @if (in_array($user->user_type, ['Basic', 'Gold', 'Platinum', 'Influencer', 'Sponsored'])) @if ($payments)

{{ $payment_text }}

@foreach ($payments as $payment) @if ($payment['type'] === 'credit') @elseif ($payment['type'] === 'payment_other') @elseif ($payment['type'] === 'chime') @elseif($payment['type'] == 'zelle') @elseif($payment['type'] == 'apple_pay') @elseif($payment['type'] == 'venmo') @elseif($payment['type'] == 'cashapp') @elseif($payment['type'] == 'paypal_email') @elseif($payment['type'] == 'paypal_link') @elseif($payment['type'] == 'square') @endif @endforeach
@endif @endif
{{-- check if footer is enabled, has custom footer and is basic, gold or platinum --}} @if ( $footer_enabled && $customFooter && in_array($user->user_type, ['Sponsored', 'Influencer', 'Basic', 'Gold', 'Platinum']))

{{ $footer_text }}

{{-- check if footer enable, but dont have custom footer but have admin footer text and link --}} @elseif ($footer_enabled && !$customFooter && $default_footer_text && $default_footer_link)

{{ $default_footer_text }}

{{-- check if footer not enabled and in basic, gold and platinum or footer just disabled --}} @elseif ((!$footer_enabled && in_array($user->user_type, ['Basic', 'Gold', 'Platinum'])) || !$footer_enabled)

@else

Get your card today!

@endif
{{-- @if ($ads_bottom->count() > 0) --}} @if (count($ads_bottom) > 0)
@if ($ad_banner_w && $ad_banner_h) {{--
--}}
@endif
@push('scripts') @endpush @endif
@else

User not found.

Get your card today!

@endif