@if ($business_card_details->cover_type == 'none')
@endif
@if ($business_card_details->cover_type == 'photo')
@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')
{{-- Profile Image --}}
{{-- Background Image --}}
{{-- 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', 'snapchat', 'address']))
{{-- Phone --}}
@if ($feature->type == 'tel')
@endif
{{-- Email --}}
@if ($feature->type == 'email')
@endif
{{-- Location --}}
@if ($feature->type == 'address')
@endif
{{-- Snapchat --}}
@if ($feature->type == 'snapchat')
@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',
'snapchat',
'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 (count($service_details) > 0)
{{ __('Services') }}
{{-- All services --}}
@foreach ($service_details as $service_detail)
{{-- Image --}}
 }})
{{-- 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 --}}
 }})
{{-- 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
@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)
@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)
@endif
@endif
@endforeach
@endif
@if (count($testimonials) > 0)
{{ __('Client Reviews') }}
{{-- Client Reviews --}}
@foreach ($testimonials as $testimonial)
{{-- Image --}}
 }})
{{-- Name --}}
{{ $testimonial->reviewer_name }}
{{-- Position --}}
@if ($testimonial->review_subtext)
{{ $testimonial->review_subtext }}
@endif
{{-- Review --}}
"{{ $testimonial->review }}"
@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') }}
{{ __('Please select a valid date and time slot.') }}
{{-- Success Message (hidden by default) --}}
{{ __('Appointment booked successfully!') }}
{{ __('Please fill all the fields.') }}
@endif
@endif
@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) --}}
{{-- Address --}}
{{-- Notes --}}
{{-- Service Start Datetime --}}
{{-- Date --}}
{{-- Service End Datetime --}}
{{-- Date --}}
@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 (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)
@endif
@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 --}}
@endif
@endif
@if ($plan_details['hide_branding'] == 1)
@else
@endif