@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')
{{-- Row Layout --}}
@if ($custom_styles['layout'] == 'row')
{{-- Profile Image --}}
{{-- 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 --}}
{{-- 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 --}}
 }})
{{-- 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 ($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
@if (count($payment_details) > 0)
{{ __('Payment Options') }}
{{-- Payment options --}}
@foreach ($payment_details as $payment)
@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 --}}
{{-- 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)
@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'))
@endif
@endif
@endif
@if ($plan_details['hide_branding'] == 1)
@else
@endif