@php
$coverClass = $vcard->cover_image_type == 0 ? 'object-fit-cover' : 'object-fit-contain';
@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
@if ($vcard->language_enable == \App\Models\Vcard::LANGUAGE_ENABLE)
@endif
@if (getLanguage($vcard->default_language) != 'Arabic')
{{ ucwords($vcard->first_name . ' ' . $vcard->last_name) }}
@if ($vcard->is_verified)
@endif
{{ ucwords($vcard->occupation) }}
{{ ucwords($vcard->job_title) }}
{{ ucwords($vcard->company) }}
@if (checkFeature('social_links') && getSocialLink($vcard))
@foreach (getSocialLink($vcard) as $value)
{!! $value !!}
@endforeach
@endif
{{-- custom link section --}}
@if (checkFeature('custom-links'))
@endif
{{-- End custom link section --}}
{!! $vcard->description !!}
@endif
@if (getLanguage($vcard->default_language) == 'Arabic')
{{ ucwords($vcard->first_name . ' ' . $vcard->last_name) }}
@if ($vcard->is_verified)
@endif
{{ ucwords($vcard->occupation) }}
{{ ucwords($vcard->job_title) }}
{{ ucwords($vcard->company) }}
@if (checkFeature('social_links') && getSocialLink($vcard))
@foreach (getSocialLink($vcard) as $value)
{!! $value !!}
@endforeach
@endif
{!! $vcard->description !!}
@endif
@if ((isset($managesection) && $managesection['contact_list']) || empty($managesection))
@if (getLanguage($vcard->default_language) != 'Arabic')
@if ($vcard->email)
@endif
@if ($vcard->alternative_email)
@endif
@if ($vcard->phone)
@endif
@if ($vcard->alternative_phone)
@endif
@if ($vcard->dob)
{{ $vcard->dob }}
@endif
@if ($vcard->location)
{{ ucwords($vcard->location) }}
@endif
@endif
@if (getLanguage($vcard->default_language) == 'Arabic')
@if ($vcard->email)
@endif
@if ($vcard->alternative_email)
@endif
@if ($vcard->phone)
@endif
@if ($vcard->alternative_phone)
@endif
@if ($vcard->dob)
{{ $vcard->dob }}
@endif
@if ($vcard->location)
{{ ucwords($vcard->location) }}
@endif
@endif
@endif
{{-- Qr code --}}
@if (isset($vcard['show_qr_code']) && $vcard['show_qr_code'] == 1)
@if (getLanguage($vcard->default_language) != 'Arabic')
{{ __('messages.vcard.qr_code') }}
@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
@if (getLanguage($vcard->default_language) == 'Arabic')
{{ __('messages.vcard.qr_code') }}
@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
@endif
{{-- our-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)
@endforeach
@else
@foreach ($vcard->services as $service)
{{ ucwords($service->name) }}
{!! \Illuminate\Support\Str::limit($service->description, 170, '...') !!}
@endforeach
@endif
@endif
@endif
{{-- gallery --}}
@if ((isset($managesection) && $managesection['galleries']) || empty($managesection))
@if (checkFeature('gallery') && $vcard->gallery->count())
@endif
@endif
{{-- product --}}
@if ((isset($managesection) && $managesection['products']) || empty($managesection))
@if (checkFeature('products') && $vcard->products->count())
@endif
@endif
{{-- testimonial --}}
@if ((isset($managesection) && $managesection['testimonials']) || empty($managesection))
@if (checkFeature('testimonials') && $vcard->testimonials->count())
{{ __('messages.plan.testimonials') }}
@foreach ($vcard->testimonials as $testimonial)
“{!! $testimonial->description !!}”
{{ ucwords($testimonial->name) }}
@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
{{-- blog --}}
@if ((isset($managesection) && $managesection['blogs']) || empty($managesection))
@if (checkFeature('blog') && $vcard->blogs->count())
{{ __('messages.feature.blog') }}
@foreach ($vcard->blogs as $blog)