@if(isset($business_card_details->seo_configurations) && json_decode($business_card_details->seo_configurations)->favicon != null) @else @endif {!! SEOMeta::generate() !!} {!! OpenGraph::generate() !!} {!! Twitter::generate() !!} {!! JsonLd::generate() !!} {{-- Swiper CSS --}} {{-- Fontawesome CSS --}} @php // decode the json $custom_styles = json_decode($business_card_details->custom_styles, true); // Check the font family $googleFonts = [ 'Poppins', 'Roboto', 'Inter', 'League Spartan', 'Rethink Sans', 'Outfit', 'Figtree', 'Teachers', 'Saira Stencil One', 'Gloock', 'Pacifico', 'Playfair Display', ]; @endphp {{-- Google Fonts CDN --}} @foreach ($googleFonts as $font) @endforeach {{-- Check business details --}} @if ($business_card_details != null) @php $custom_css = $business_card_details->custom_css; $custom_js = $business_card_details->custom_js; // Ensure ') === false) { $custom_css = ""; } // Ensure ') === false) { $custom_js = ""; } @endphp {!! $custom_css !!} {!! $custom_js !!} @endif {{-- Check PWA --}} @if ($plan_details != null) @if ($plan_details['pwa'] == 1 && $business_card_details->is_enable_pwa == 1) @laravelPWA @endif @endif @php use Illuminate\Support\Facades\Session; @endphp
{{-- Background Image (only if image is selected) --}} @php $backgroundType = $custom_styles['background_type'] ?? ''; $backgroundColor = $custom_styles['background_color'] ?? '#ffffff'; $gradientFrom = $custom_styles['gradient_start'] ?? '#ffffff'; $gradientTo = $custom_styles['gradient_end'] ?? '#ffffff'; $backgroundImage = $custom_styles['image_url'] ?? ''; // button datas $buttonBackgroundType = $custom_styles['button_background_type'] ?? 'single_color'; $buttonBackgroundColor = $custom_styles['button_background_color'] ?? '#000000'; $buttonGradientFrom = $custom_styles['button_gradient_start'] ?? '#000000'; $buttonGradientTo = $custom_styles['button_gradient_end'] ?? '#000000'; $buttonTextColor = $custom_styles['button_text_color'] ?? '#ffffff'; $buttonIconColor = $custom_styles['button_icon_color'] ?? '#ffffff'; $buttonEdge = $custom_styles['button_edge'] ?? '#ffffff'; @endphp @if ($backgroundType == 'image' && !empty($backgroundImage))
Background Image
@endif {{-- Start Check password protected --}} @if ($business_card_details->password == null || Session::get('password_protected') == true) {{-- Check business details --}} @if ($business_card_details != null)
@if ($business_card_details->cover_type == 'none')
{{-- Cover Image --}} {{ $business_card_details->title }}
@endif @if ($business_card_details->cover_type == 'photo')
{{-- Cover Image --}} {{ $business_card_details->title }}
@endif @if ($business_card_details->cover_type == 'vimeo-ap')
{{-- Cover Video --}}
@endif @if ($business_card_details->cover_type == 'vimeo')
{{-- Cover Video --}}
@endif @if ($business_card_details->cover_type == 'youtube-ap')
{{-- Cover Video --}}
@endif @if ($business_card_details->cover_type == 'youtube')
{{-- Cover Video --}}
@endif {{-- Language Switcher --}} @include('templates.includes.language-switcher')
{{-- Row Layout --}} @if ($custom_styles['layout'] == 'row')
{{-- Profile Image --}} {{ $business_card_details->title }}
{{-- Name --}}

{{ $business_card_details->title }}

{{-- Job Title --}}

{{ $card_details->sub_title }}

{{-- About --}} @if (isset($business_card_details->description) || isset($business_card_details->address))
{!! $business_card_details->description !!}
@endif
{{-- Column Layout --}} @elseif ($custom_styles['layout'] == 'column')
{{-- Profile Image --}} {{ $business_card_details->title }}
{{-- Name --}}

{{ $business_card_details->title }}

{{-- Job Title --}}

{{ $card_details->sub_title }}

{{-- About --}} @if (isset($business_card_details->description) || isset($business_card_details->address))
{!! $business_card_details->description !!}
@endif
@endif @if (count($feature_details) > 0)
{{-- Loop through the feature_details array and display the icons --}} @foreach ($feature_details as $feature) @if (in_array($feature->type, ['tel', 'address', 'wa', 'instagram'])) {{-- Location --}} @if ($feature->type == 'address') @endif {{-- Phone --}} @if ($feature->type == 'tel') @endif {{-- WhatsApp --}} @if ($feature->type == 'wa') @endif {{-- Instagram --}} @if ($feature->type == 'instagram') @endif @endif @endforeach
@endif {{-- End Quick Contact --}} @if (count($feature_details) > 0) @foreach ($feature_details as $feature) @if (in_array($feature->type, ['address'])) @endif @endforeach @endif {{-- End Location Section --}} @if (!empty($feature_details) && count($feature_details) > 0) @php // List of excluded feature types $excludedTypes = ['tel', 'instagram', 'wa', 'address', 'map', 'iframe', 'youtube']; // Filter the features to include only valid ones $validFeatures = collect($feature_details)->filter(function ($feature) use ( $excludedTypes, ) { return isset($feature->type) && !in_array($feature->type, $excludedTypes); }); @endphp @if ($validFeatures->isNotEmpty())

{{ __('Social Links') }}

@foreach ($validFeatures as $feature) @php // Generate the href value dynamically $href = $feature->content ?? ''; if ($feature->type === 'wa') { $href = 'https://wa.me/' . $feature->content; } elseif ($feature->type === 'email') { $href = 'mailto:' . $feature->content; } elseif ($feature->type === 'text') { $href = 'javascript:void(0);'; // Avoid empty hrefs } @endphp

{{ $feature->label ?? 'N/A' }}

{{ $feature->content ?? '' }}

@endforeach
@endif @endif @if (count($service_details) > 0)

{{ __('Services') }}

{{-- All services --}} @foreach ($service_details as $service_detail)
{{-- Image --}} {{ $service_detail->service_name }} {{-- Name --}}

{{ $service_detail->service_name }}

{{-- Description --}}

{{ $service_detail->service_description }}

@if ($enquiry_button != null) @if ($whatsAppNumberExists == true && $whatsAppNumberExists == true && $service_detail->enable_enquiry == 'Enabled') {{ __('Enquire') }} @endif @endif
@endforeach
@endif @if (count($product_details) > 0)

{{ __('Products') }}

{{-- All products --}} @foreach ($product_details as $product_detail)
{{-- Badge --}} @if (!empty($product_detail->badge))

{{ $product_detail->badge }}

@endif {{-- Image --}} {{ $product_detail->product_name }} {{-- Name --}}

{{ $product_detail->product_name }}

{{-- Description --}}

{{ $product_detail->product_description }}

{{ __('Price:') }} {{ formatCurrencyVcard($product_detail->sales_price, $product_detail->currency) }} {{-- Check regular price is exists --}} @if ($product_detail->sales_price != $product_detail->regular_price) {{ formatCurrencyVcard($product_detail->regular_price, $product_detail->currency) }} @endif

{{ __('Stock:') }} {{ $product_detail->product_status == 'outstock' ? __('Out of Stock') : __('In Stock') }}

@if ($enquiry_button != null) @if ($whatsAppNumberExists == true) {{ __('Enquire') }} @endif @endif
@endforeach
@endif @if (count($galleries_details) > 0)

{{ __('Gallery') }}

{{-- Slider images --}} @foreach ($galleries_details as $galleries_detail)
@if ($galleries_detail->caption)

{{ $galleries_detail->caption }}

@endif {{ $galleries_detail->caption }}
@endforeach
@endif @if ($feature_details->where('type', 'youtube')->count() > 0)

{{ __('Youtube Videos') }}

{{-- Videos --}} @foreach ($feature_details as $feature) @if ($feature->type == 'youtube')
{{-- Add Youtube title --}} @if ($feature->label != null)
{{ $feature->label }}
@endif
@endif @endforeach
@endif @if ($feature_details->where('type', 'iframe')->count() > 0)

{{ __('Iframe') }}

{{-- Iframe --}} @foreach ($feature_details as $feature) @if ($feature->type == 'iframe')
{{-- Add Iframe title --}} @if ($feature->label != null)
{{ $feature->label }}
@endif
@endif @endforeach
@endif @if ($appointmentEnabled == true && isset($plan_details['appointment']) == 1)
{{-- Check appointment slots in the calendar --}} @if ($plan_details['appointment'] == 1) @if ($appointment_slots != null)

{{ __('Appointment') }}

{{-- Success Message (hidden by default) --}}
@endif @endif
@endif @if (count($payment_details) > 0)

{{ __('Payment Options') }}

{{-- Payment options --}} @foreach ($payment_details as $payment)
{{-- Payment icon/image --}} @include('templates.partials.payment-link-image', [ 'iconColor' => 'text-[' . $buttonIconColor . ']', ]) @if ($payment->type == 'url') @endif {{-- UPI Payment --}} @if ($payment->type == 'upi') @endif

{{ $payment->label }}

@if ($payment->type == 'text')

@foreach (explode('.', $payment->content) as $sentence) @if (trim($sentence)) {{ trim($sentence) }}
@endif @endforeach

@endif
@endforeach
@endif {{-- Start Business Hours --}} @if ($plan_details['business_hours'] == 1) @if ($business_hours != null && $business_hours->is_display != 0)

{{ __('Business Hours') }}

@if ($business_hours->is_always_open != 'Opening')
@foreach (['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday'] as $day)

{{ __($day) }}

{{ __($business_hours->$day ?: __('Closed')) }}

@endforeach
@else

{{ __('Always Open') }}

{{ __('We’re available 24/7 to serve you!') }}

@endif
@endif @endif {{-- End Business Hours --}} @if (count($testimonials) > 0)

{{ __('Client Reviews') }}

{{-- Client Reviews --}} @foreach ($testimonials as $testimonial)
{{-- Review --}}

"{{ $testimonial->review }}"

{{-- Image --}} {{ $testimonial->reviewer_name }}
{{-- Name --}}

{{ $testimonial->reviewer_name }}

{{-- Position --}} @if ($testimonial->review_subtext)

{{ $testimonial->review_subtext }}

@endif
@endforeach
@endif @if (count($feature_details) > 0 && $feature_details->contains('type', 'map'))

{{ __('Location') }}

{{-- Google Maps --}} @foreach ($feature_details as $feature) @if ($feature->type == 'map') {{-- Map title --}} @if ($feature->label != null)
{{ $feature->label }}
@endif @endif @endforeach
@endif {{-- Service Service Booking --}} @if (isset($plan_details['service_booking']) && $plan_details['service_booking'] == 1) @if (!empty($service_booking_details) && $service_booking_details->service_booking == 1) @include('templates.includes.service-booking', [ 'text_color' => 'text-gray-700', 'head_style' => "text-3xl lg:text-4xl font-medium text-[{$custom_styles['heading_color']}]", 'input_style' => 'w-full px-4 py-2.5 border border-gray-300 rounded-xl focus:outline-none', 'btn_style' => "w-full px-4 py-4 text-xl font-semibold rounded-2xl focus:outline-none" . ($buttonBackgroundType == 'single_color' ? " bg-[{$buttonBackgroundColor}]" : '') . ($buttonBackgroundType == 'gradient' ? " bg-gradient-to-r from-[{$buttonGradientFrom}] to-[{$buttonGradientTo}]" : '') . ($buttonEdge == 'rounded' ? " rounded-2xl" : '') . " text-[{$buttonTextColor}]", ]) @endif @endif {{-- End Service Booking --}} @if ($plan_details['contact_form'] == 1) @if ($business_card_details->enquiry_email != null)

{{ __('Contact Us') }}

{{-- Message Alert --}} @if (Session::has('message'))

{{ Session::get('message') }}

{{ __('Please wait for the reply to be sent.') }}

@endif
@csrf
{{-- Name --}}
{{-- --}}
{{-- Mobile Number --}}
{{-- ReCaptcha --}} @include('templates.includes.recaptcha', ['recaptchaId' => 'recaptcha-one'])
@endif @endif @if ($plan_details['hide_branding'] == 1)
{{ __('Copyright') }} © {{ $card_details->title }}{{ __('. All Rights Reserved.') }}
@else
{{ __('Made with') }} {{ config('app.name') }} {{ __('. All Rights Reserved.') }}
@endif
@endif
@endif {{-- End Check password protected --}} {{-- End Appointment Modal --}} {{-- End Share Modal --}} {{-- Start Check password protected Modal --}} @if ($business_card_details->password != null && Session::get('password_protected') == false)

{{ __('Password Protected') }}

@csrf

{{ __('Enter your vcard Password') }}

{{-- Message --}} @if (Session::has('message')) @endif
@endif {{-- End Check password protected Modal --}} @if ($plan_details != null) {{-- Check PWA --}} @if ($plan_details['pwa'] == 1 && $business_card_details->is_enable_pwa == 1) @include('vendor.laravelpwa.new_pwa_modal', [ 'primary_color' => 'orange', 'img' => $business_card_details->profile, ]) @endif @endif {{-- Include Newsletter Modal --}} @if ($business_card_details != null) {{-- Check Newsletter --}} @if (!empty($business_card_details->is_newsletter_pop_active) && $business_card_details->is_newsletter_pop_active == 1) @include('templates.includes.old_theme_newsletter_modal', [ 'primary_color' => 'orange', ]) @endif @endif {{-- Include Information Popup Modal --}} @if ($business_card_details != null) {{-- Check Information Popup --}} @if (!empty($business_card_details->is_info_pop_active) && $business_card_details->is_info_pop_active == 1) @include('templates.includes.information_popup_modal', [ 'primary_color' => 'orange', ]) @endif @endif
{{-- Jquery --}} {{-- Smooth Scroll --}} {{-- Other JS --}} {{-- Flatpickr JS --}} {{-- Swiper JS --}} {{-- Custom JS --}} @yield('custom-js') {{-- Flatpickr JS --}} @php if (isset($service_booking_details) && $service_booking_details->service_booking == 1) { $service_booking_available_days = json_decode($service_booking_details->service_booking_available_days); } @endphp