@php $social_no = 1; $appointment_no = 0; $service_row_no = 0; $product_row_no = 0; $testimonials_row_no = 0; $gallery_row_no = 0; $no = 1; $stringid = $business->id; $is_enable = false; $is_contact_enable = false; $is_enable_appoinment = false; $is_enable_service = false; $is_enable_product = false; $is_enable_testimonials = false; $is_enable_sociallinks = false; $is_custom_html_enable = false; $custom_html = $business->custom_html_text; $is_branding_enabled = false; $branding = $business->branding_text; $is_gdpr_enabled = false; $is_enable_gallery = false; $is_payment = false; $gdpr_text = $business->gdpr_text; $card_theme = json_decode($business->card_theme); $banner = \App\Models\Utility::get_file('card_banner'); $logo = \App\Models\Utility::get_file('card_logo'); $image = \App\Models\Utility::get_file('testimonials_images'); $s_image = \App\Models\Utility::get_file('service_images'); $pr_image = \App\Models\Utility::get_file('product_images'); $company_favicon = Utility::getsettingsbyid($business->created_by); $company_favicon = $company_favicon['company_favicon']; $logo1 = \App\Models\Utility::get_file('uploads/logo/'); $meta_image = \App\Models\Utility::get_file('meta_image'); $gallery_path = \App\Models\Utility::get_file('gallery'); $qr_path = \App\Models\Utility::get_file('qrcode'); if (!is_null($business_hours) && !is_null($businesshours)) { $businesshours['is_enabled'] == '1' ? ($is_enable = true) : ($is_enable = false); } if (!is_null($contactinfo) && !is_null($contactinfo)) { $contactinfo['is_enabled'] == '1' ? ($is_contact_enable = true) : ($is_contact_enable = false); } if (!is_null($appoinment_hours) && !is_null($appoinment)) { $appoinment['is_enabled'] == '1' ? ($is_enable_appoinment = true) : ($is_enable_appoinment = false); } if (!is_null($services_content) && !is_null($services)) { $services['is_enabled'] == '1' ? ($is_enable_service = true) : ($is_enable_service = false); } if (!is_null($products_content) && !is_null($products)) { $products['is_enabled'] == '1' ? ($is_enable_product = true) : ($is_enable_product = false); } if (!is_null($testimonials_content) && !is_null($testimonials)) { $testimonials['is_enabled'] == '1' ? ($is_enable_testimonials = true) : ($is_enable_testimonials = false); } if (!is_null($social_content) && !is_null($sociallinks)) { $sociallinks['is_enabled'] == '1' ? ($is_enable_sociallinks = true) : ($is_enable_sociallinks = false); } if (!is_null($custom_html) && !is_null($customhtml)) { $customhtml->is_custom_html_enabled == '1' ? ($is_custom_html_enable = true) : ($is_custom_html_enable = false); } if (!is_null($gallery_contents) && !is_null($gallery)) { $gallery['is_enabled'] == '1' ? ($is_enable_gallery = true) : ($is_enable_gallery = false); } if (!is_null($cardPayment_content) && !is_null($cardPayment)) { $cardPayment['is_enabled'] == '1' ? ($is_payment = true) : ($is_payment = false); } if (!is_null($business->is_gdpr_enabled) && !is_null($business->is_gdpr_enabled)) { !empty($business->is_gdpr_enabled) && $business->is_gdpr_enabled == 'on' ? ($is_gdpr_enabled = true) : ($is_gdpr_enabled = false); } if (!is_null($business->is_branding_enabled) && !is_null($business->is_branding_enabled)) { !empty($business->is_branding_enabled) && $business->is_branding_enabled == 'on' ? ($is_branding_enabled = true) : ($is_branding_enabled = false); } else { $is_branding_enabled = false; } if (isset($color)) { $business->theme_color = $color; } $color = substr($business->theme_color, 0, 6); $SITE_RTL = Cookie::get('SITE_RTL'); if ($SITE_RTL == '') { $SITE_RTL = 'off'; } $SITE_RTL = Utility::settings()['SITE_RTL']; $url_link = env('APP_URL') . '/' . $business->slug; $meta_tag_image = $meta_image . '/' . $business->meta_image; // Cookie $cookie_data = App\Models\Business::card_cookie($business->slug); $a = $cookie_data; @endphp
{{ $content->description }}
@if (!empty($content->purchase_link)) {{ $content->link_title }} @endif{{ $content->description }}
{{ $testi_content->description }}
{{ __($day) }}: @if (isset($business_hours->$k) && $business_hours->$k->days == 'on') {{ !empty($business_hours->$k->start_time) && isset($business_hours->$k->start_time) ? date('h:i A', strtotime($business_hours->$k->start_time)) : '00:00' }} - {{ !empty($business_hours->$k->end_time) && isset($business_hours->$k->end_time) ? date('h:i A', strtotime($business_hours->$k->end_time)) : '00:00' }} @else {{ __('Closed') }} @endif
{{ $business->branding_text }}
{{ __('Social') }}
@if (!is_null($social_content) && !is_null($sociallinks)) @foreach ($social_content as $social_key => $social_val) @foreach ($social_val as $social_key1 => $social_val1) @if ($social_key1 != 'id')-
@if ($social_key1 == 'Whatsapp')
@if ((new \Jenssegers\Agent\Agent())->isDesktop())
@php
$social_links = url('https://web.whatsapp.com/send?phone=' . $social_val1);
@endphp
@else
@php
$social_links = url('https://wa.me/' . $social_val1);
@endphp
@endif
@else
@php
$social_links = url($social_val1);
@endphp
@endif
@endif
@endforeach
@endforeach
@endif