@if (checkFeature('seo'))
@if ($vcard->meta_description)
@endif
@if ($vcard->meta_keyword)
@endif
@else
@endif
@if (checkFeature('seo') && $vcard->site_title && $vcard->home_title)
@php
$coverClass =
$vcard->cover_image_type == 0 ? 'object-fit-cover w-100 h-100' : 'object-fit-cover w-100 h-100';
@endphp
@if ($vcard->cover_type == 0)

@elseif($vcard->cover_type == 1)
@if (strpos($vcard->cover_url, '.mp4') !== false ||
strpos($vcard->cover_url, '.mov') !== false ||
strpos($vcard->cover_url, '.avi') !== false)
@endif
@elseif ($vcard->cover_type == 2)
@endif
{{-- Pwa support --}}
@if (isset($enable_pwa) && $enable_pwa == 1 && !isiOSDevice())
default_language) == 'Arabic' || getLanguage($vcard->default_language) == 'Persian') dir='rtl' @endif>
{{ __('messages.pwa.add_to_home_screen') }}
{{ __('messages.pwa.pwa_description') }}
@endif
{{-- support banner --}}
@if ((isset($managesection) && $managesection['banner']) || empty($managesection))
@if (isset($banners->title))
{{ $banners->title }}
{{ $banners->description }}
@endif
@endif
{{-- Language --}}
@if ($vcard->language_enable == \App\Models\Vcard::LANGUAGE_ENABLE)
@endif
{{-- profile section --}}
default_language) == 'Arabic' || getLanguage($vcard->default_language) == 'Persian') dir="rtl" @endif>
{{ ucwords($vcard->first_name . ' ' . $vcard->last_name) }}
@if ($vcard->is_verified)
@endif
{{ ucwords($vcard->company) }}
{{ ucwords($vcard->occupation) }}
{{ ucwords($vcard->job_title) }}
{{-- social-media --}}
@if (checkFeature('social_links') && getSocialLink($vcard))
default_language) == 'Arabic' || getLanguage($vcard->default_language) == 'Persian') dir="rtl" @endif>
@foreach (getSocialLink($vcard) as $value)
- {!! $value !!}
@endforeach
@endif
{!! $vcard->description !!}
{{-- custom link section --}}
@if (checkFeature('custom-links') && $customLink->isNotEmpty())
@endif
{{-- contact section --}}
@if ((isset($managesection) && $managesection['contact_list']) || empty($managesection))
@if (
!empty($vcard->email) ||
!empty(
$vcard->alternative_email ||
!empty($vcard->phone) ||
!empty($vcard->alternative_phone) ||
!empty($vcard->dob) ||
!empty($vcard->location)
))
@endif
@endif
{{-- gallery --}}
@if ((isset($managesection) && $managesection['galleries']) || empty($managesection))
@if (checkFeature('gallery') && $vcard->gallery->count())
{{ __('messages.plan.gallery') }}
@php
$groupedGallery = $vcard->gallery
->filter(function ($file) {
return !empty($file->category_name);
})
->groupBy('category_name');
@endphp
@if ($groupedGallery->isNotEmpty())
@foreach ($groupedGallery as $categoryName => $galleryItems)
@endforeach
@endif
@foreach ($vcard->gallery as $file)
@php
$infoPath = pathinfo(public_path($file->gallery_image));
$extension = $infoPath['extension'] ?? '';
@endphp
@if ($file->type == App\Models\Gallery::TYPE_IMAGE)
@elseif($file->type == App\Models\Gallery::TYPE_FILE)
@elseif($file->type == App\Models\Gallery::TYPE_VIDEO)
@elseif($file->type == App\Models\Gallery::TYPE_AUDIO)
@else
@endif
@endforeach
@foreach ($groupedGallery as $categoryName => $galleryItems)
@foreach ($galleryItems as $file)
@php
$infoPath = pathinfo(public_path($file->gallery_image));
$extension = $infoPath['extension'];
@endphp
@endforeach
@endforeach
@endif
@endif
{{-- service section --}}
@if ((isset($managesection) && $managesection['services']) || empty($managesection))
@if (checkFeature('services') && $vcard->services->count())
{{ __('messages.vcard.our_service') }}
@if ($vcard->services_slider_view)
@foreach ($vcard->services as $service)
{{ $service->name }}
{{ $service->description }}
@if ($vcard->show_service_enquiry_btn == true)
@if ($service->service_url)
@endif
@endif
@endforeach
@else
default_language) == 'Arabic' || getLanguage($vcard->default_language) == 'Persian') dir="rtl" @endif>
@foreach ($vcard->services as $service)
{{ $service->name }}
{{ $service->description }}
@if ($vcard->show_service_enquiry_btn == true)
@if ($service->service_url)
@endif
@endif
@endforeach
@endif
@endif
@endif
{{-- make appointment --}}
@if ((isset($managesection) && $managesection['appointments']) || empty($managesection))
@if (checkFeature('appointments') && $vcard->appointmentHours->count())
{{ __('messages.make_appointments') }}
default_language) == 'Arabic' || getLanguage($vcard->default_language) == 'Persian') dir="rtl" @endif>
@include('vcardTemplates.appointment')
@endif
@endif
{{-- product section --}}
@if ((isset($managesection) && $managesection['products']) || empty($managesection))
@if (checkFeature('products') && $vcard->products->count())
{{ __('messages.plan.products') }}
@foreach ($vcard->products as $product)
@endforeach
@endif
@endif
{{-- whatsApp store --}}
@if ((isset($managesection) && $managesection['whatsapp_store']) || empty($managesection))
@if ($whatsappStore->count())
{{ __('messages.feature.whatsapp_store') }}
@foreach ($whatsappStore as $store)
default_language) == 'Arabic' || getLanguage($vcard->default_language) == 'Persian') dir="rtl" @endif>
{{ $store->store_name }}
@endforeach
@endif
@endif
{{-- testimonial --}}
@if ((isset($managesection) && $managesection['testimonials']) || empty($managesection))
@if (checkFeature('testimonials') && $vcard->testimonials->count())
{{ __('messages.plan.testimonials') }}
@foreach ($vcard->testimonials as $testimonial)
@endforeach
@endif
@endif
{{-- insta feed --}}
@if ((isset($managesection) && $managesection['insta_embed']) || empty($managesection))
@if (checkFeature('insta_embed') && $vcard->instagramEmbed->count())
{{ __('messages.feature.insta_embed') }}
@foreach ($vcard->InstagramEmbed as $InstagramEmbed)
@if ($InstagramEmbed->type == 0)
{!! $InstagramEmbed->embedtag !!}
@endif
@endforeach
@foreach ($vcard->InstagramEmbed as $InstagramEmbed)
@if ($InstagramEmbed->type == 1)
{!! $InstagramEmbed->embedtag !!}
@endif
@endforeach
@endif
@endif
{{-- Linkedin --}}
@if ((isset($managesection) && $managesection['linkedin_embed']) || empty($managesection))
@if (checkFeature('linkedin_embed') && $vcard->linkedinEmbed->count())
{{ __('messages.feature.linkedin_embed') }}
@foreach ($vcard->LinkedinEmbed as $LinkedinEmbed)
@if ($LinkedinEmbed->type == 0)
{!! $LinkedinEmbed->embedtag !!}
@endif
@endforeach
@endif
@endif
{{-- blog --}}
@if ((isset($managesection) && $managesection['blogs']) || empty($managesection))
@if (checkFeature('blog') && $vcard->blogs->count())
{{ __('messages.feature.blog') }}
@foreach ($vcard->blogs as $blog)
@php
$vcardBlogUrl = $isCustomDomainUse
? "https://{$customDomain->domain}/{$vcard->url_alias}/blog/{$blog->id}"
: route('vcard.show-blog', [$vcard->url_alias, $blog->id]);
@endphp
@endforeach
@endif
@endif
{{-- buisness hours --}}
@if ((isset($managesection) && $managesection['business_hours']) || empty($managesection))
@if ($vcard->businessHours->count())
{{ __('messages.business.business_hours') }}
@foreach ($businessDaysTime as $key => $dayTime)
{{ __('messages.business.' . \App\Models\BusinessHour::DAY_OF_WEEK[$key]) }}:
{{ $dayTime ?? __('messages.common.closed') }}
@endforeach
@endif
@endif
{{-- qrcode --}}
@if (isset($vcard['show_qr_code']) && $vcard['show_qr_code'] == 1)
{{ __('messages.vcard.qr_code') }}
default_language) == 'Arabic' || getLanguage($vcard->default_language) == 'Persian') dir="rtl" @endif>
@php
$qrMedia = $vcard->getMedia(\App\Models\Vcard::QRCODE_PATH)->first();
@endphp
@if ($qrMedia)
 }})
@else
@if (isset($customQrCode['applySetting']) && $customQrCode['applySetting'] == 1)
{!! QrCode::color(
$qrcodeColor['qrcodeColor']->red(),
$qrcodeColor['qrcodeColor']->green(),
$qrcodeColor['qrcodeColor']->blue(),
)->backgroundColor(
$qrcodeColor['background_color']->red(),
$qrcodeColor['background_color']->green(),
$qrcodeColor['background_color']->blue(),
)->style($customQrCode['style'])->eye($customQrCode['eye_style'])->size(130)->format('svg')->generate(Request::url()) !!}
@else
{!! QrCode::size(130)->format('svg')->generate(Request::url()) !!}
@endif
@endif
{{ __('messages.vcard.scan_to_contact') }}
{{ __('messages.vcard.qr_section_desc') }}
@endif
{{-- iframe --}}
@if ((isset($managesection) && $managesection['iframe']) || empty($managesection))
@if (checkFeature('iframes') && $vcard->iframes->count())
{{ __('messages.vcard.iframe') }}
@foreach ($vcard->iframes as $iframe)
@endforeach
@endif
@endif
{{-- payment link --}}
@if ((isset($managesection) && $managesection['payment_link']) || empty($managesection))
@if (checkFeature('payment_link') && $vcard->paymentLinks->count())
{{ __('messages.vcard.payment_links') }}
@foreach ($vcard->paymentLinks as $paymentLink)
@php
$iconUrl = optional($paymentLink->getMedia('vcards/payment_link_image')->first())->getUrl();
$paymentLinkData = getPaymentLinkUrl($paymentLink);
$linkUrl = $paymentLinkData['linkUrl'];
$isImageType = $paymentLinkData['isImageType'];
@endphp
{{ Illuminate\Support\Str::limit($paymentLink->label, 25, '...') }}
@if (!($isImageType || $paymentLink->display_type == \App\Models\VcardPaymentLink::UPI || $paymentLink->display_type == \App\Models\VcardPaymentLink::LINK))
{{ Illuminate\Support\Str::words($paymentLink->description, 12, '...') }}
@endif
@if ($paymentLink->display_type == \App\Models\VcardPaymentLink::UPI)
{{ __('messages.vcard.pay') }}
@elseif($paymentLink->display_type == \App\Models\VcardPaymentLink::LINK)
@elseif($isImageType)
@endif
@endforeach
@endif
@endif
{{-- contact us --}}
@php
$currentSubs = $vcard
->subscriptions()
->where('status', \App\Models\Subscription::ACTIVE)
->latest()
->first();
@endphp
@if ($currentSubs && $currentSubs->plan->planFeature->enquiry_form && $vcard->enable_enquiry_form)
@endif
{{-- newslatter modal --}}
@if ((isset($managesection) && $managesection['news_latter_popup']) || empty($managesection))
{{ __('messages.vcard.update_directly') }}
@endif
{{-- create your vcard --}}
@if ($currentSubs && $currentSubs->plan->planFeature->affiliation && $vcard->enable_affiliation)
{{ __('messages.create_vcard') }}
default_language) == 'Arabic' || getLanguage($vcard->default_language) == 'Persian') dir="rtl" @endif>
@endif
{{-- map --}}
@if ((isset($managesection) && $managesection['map']) || empty($managesection))
@if ($vcard->location_url)
@php $url = explode('/', $vcard->location_url); @endphp
@if (isset($url[5]))
default_language) == 'Arabic' || getLanguage($vcard->default_language) == 'Persian') dir="rtl" @endif>
@endif
@endif
@if ($vcard->location_type == 1 && !empty($vcard->location_embed_tag))
default_language) == 'Arabic' || getLanguage($vcard->default_language) == 'Persian') dir="rtl" @endif>
{!! $vcard->location_embed_tag ?? '' !!}
@endif
@endif
{{-- sticky buttons --}}
@if (empty($vcard->hide_stickybar))
@if ($vcard->whatsapp_share)
@endif
@if (empty($vcard->hide_stickybar))
@if (!empty($vcard->enable_download_qr_code))
@endif
@endif
@endif
{{-- made by --}}
@if (checkFeature('advanced'))
@if (checkFeature('advanced')->hide_branding && $vcard->branding == 0)
@if ($vcard->made_by)
made_by_url)) href="{{ $vcard->made_by_url }}" @endif
class="text-center text-decoration-none text-primary fw-5" target="_blank">
{{ __('messages.made_by') }} {{ $vcard->made_by }}
@else
{{ __('messages.made_by') }}
{{ $setting['app_name'] }}
@endif
@endif
@else
@if ($vcard->made_by)
made_by_url)) href="{{ $vcard->made_by_url }}" @endif
class="text-center text-decoration-none text-primary fw-5" target="_blank">
{{ __('messages.made_by') }} {{ $vcard->made_by }}
@else
{{ __('messages.made_by') }}
{{ $setting['app_name'] }}
@endif
@endif
@if (!empty($vcard->privacy_policy) || !empty($vcard->term_condition))
@endif
{{-- add to contact --}}
@if ($vcard->enable_contact)
@include('vcardTemplates.contact-request')
@endif
{{-- share modal code --}}
default_language) == 'Arabic' || getLanguage($vcard->default_language) == 'Persian') dir="rtl" @endif>
{{ __('messages.vcard.share_my_vcard') }}
@php
$shareUrl = $vcardUrl;
@endphp
@include('vcardTemplates.template.templates')
@if (checkFeature('seo') && $vcard->google_analytics)
{!! $vcard->google_analytics !!}
@endif
@php
$setting = \App\Models\UserSetting::where('user_id', $vcard->tenant->user->id)
->where('key', 'stripe_key')
->first();
@endphp
@routes