@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 --}} {{-- Google Fonts: Nanum Myeongjo --}} {{-- Google Fonts: Hedvig Letters Serif --}} {{-- 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
{{-- 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')
{{-- Background Image --}}
{{ $business_card_details->title }}
{{-- Profile Image --}}
{{ $business_card_details->title }}
{{-- Name --}}

{{ $business_card_details->title }}

{{-- Job Title --}}

{{ $card_details->sub_title }}

{{-- About --}} @if ($business_card_details->description != null) {!! $business_card_details->description !!} @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', 'email', 'instagram'])) {{-- Phone --}} @if ($feature->type == 'tel') @endif {{-- Email --}} @if ($feature->type == 'email') @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 = ['email', 'tel', 'instagram', '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) {{-- Generate href value dynamically --}} @php $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);'; } @endphp

{{ $feature->label }}

{{ $feature->content }}

@endforeach
@endif @endif @if ($appointmentEnabled == true && isset($plan_details['appointment']) == 1)
{{-- Check appointment slots in the calendar --}} @if ($plan_details['appointment'] == 1) @if ($appointment_slots != null) Chef

{{ __('Appointment') }}

{{-- Success Message (hidden by default) --}}
@endif @endif
@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) @endif @endif
@endforeach
@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($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 (count($testimonials) > 0)

{{ __('Client Reviews') }}

{{-- Client Reviews --}} @foreach ($testimonials as $testimonial)
{{-- Image --}} {{ $testimonial->reviewer_name }} {{-- Name --}}

{{ $testimonial->reviewer_name }}

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

{{ $testimonial->review_subtext }}

@endif
{{-- Review --}}

"{{ $testimonial->review }}"

@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 --}} {{-- Service Service Booking --}} @if (isset($plan_details['service_booking']) && $plan_details['service_booking'] == 1) @if (isset($service_booking_details) && $service_booking_details->service_booking == 1)

{{ __('Service Booking') }}

{{-- Service Booking Form --}}
{{-- Success Message (hidden by default) --}}
{{-- Name --}}
{{-- Email --}}
{{-- Mobile Number --}}
{{-- No. of Person(s) --}}
{{-- Address --}}
{{-- Notes --}}
{{-- Service Start Datetime --}}
{{-- Date --}}
{{-- Time --}}
{{-- Service End Datetime --}}
{{-- Date --}}
{{-- Time --}}
@endif @endif {{-- End Service Booking --}} @if (count($payment_details) > 0)

{{ __('Payment Options') }}

{{-- Payment options --}} @foreach ($payment_details as $payment)
{{-- Payment icon/image --}} @include('templates.partials.payment-link-image') @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 @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 {{-- Contact Form --}}
@csrf
{{-- ReCaptcha --}} @include('templates.includes.recaptcha', ['recaptchaId' => 'recaptcha-one'])
@endif @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 @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' => 'black', '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.newsletter_modal', [ 'primary_color' => 'black' ]) @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' => 'black' ]) @endif @endif
{{-- Jquery --}} {{-- Smooth Scroll --}} {{-- Other JS --}} {{-- Flatpickr JS --}} {{-- Swiper JS --}} {{-- Custom JS --}} @yield('custom-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 {{-- Flatpickr JS --}}