@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; $is_enable_gallery = false; $is_payment = false; $custom_html = $business->custom_html_text; $is_branding_enabled = false; $branding = $business->branding_text; $is_gdpr_enabled = 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($contactinfo) && !is_null($contactinfo)) { $contactinfo['is_enabled'] == '1' ? ($is_contact_enable = true) : ($is_contact_enable = false); } if (!is_null($business_hours) && !is_null($businesshours)) { $businesshours['is_enabled'] == '1' ? ($is_enable = true) : ($is_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($gallery_contents) && !is_null($gallery)) { $gallery['is_enabled'] == '1' ? ($is_enable_gallery = true) : ($is_enable_gallery = 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($cardPayment_content) && !is_null($cardPayment)) { $cardPayment['is_enabled'] == '1' ? ($is_payment = true) : ($is_payment = 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 (!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); } $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 {{ $business->title }} {{-- Meta tag Preview --}} {{-- End Meta tag Preview --}} @if ($SITE_RTL == 'on') @else @endif @if (isset($is_slug)) @endif @if ($business->google_fonts != 'Default' && isset($business->google_fonts)) @endif {{-- pwa customer app --}} @if ($business->enable_pwa_business == 'on' && $plan->pwa_business == 'on') @endif @if (!empty($business->pwa_business($business->slug)->theme_color)) @endif @if (!empty($business->pwa_business($business->slug)->background_color)) @endif @foreach ($pixelScript as $script) @endforeach

{{ $business->description }}

@php $j = 1; @endphp @foreach ($card_theme->order as $order_key => $order_value) @if ($j == $order_value) @if ($order_key == 'contact_info')

{{ __('Contact') }}

    @if (!is_null($contactinfo_content) && !is_null($contactinfo)) @foreach ($contactinfo_content as $key => $val) @foreach ($val as $key1 => $val1) @if ($key1 == 'Phone') @php $href = 'tel:'.$val1; @endphp @elseif($key1 == 'Email') @php $href = 'mailto:'.$val1; @endphp @elseif($key1 == 'Address') @php $href = ''; @endphp @else @php $href = $val1 @endphp @endif @if ($key1 != 'id')
  • @if ($key1 == 'Address') @foreach ($val1 as $key2 => $val2) @if ($key2 == 'Address_url') @php $href = $val2; @endphp @endif @endforeach @foreach ($val1 as $key2 => $val2) @if ($key2 == 'Address') {{ $val2 }} @endif @endforeach @else @if ($key1 == 'Whatsapp') @else @endif {{ $val1 }} @endif
  • @endif @php $no++; @endphp @endforeach @endforeach @endif
@endif @if ($order_key == 'service')

{{ __('Services') }}

@php $image_count = 0; @endphp @foreach ($services_content as $k1 => $content)
image
{{ $content->title }}

{{ $content->description }}

@if (!empty($content->purchase_link)) {{ $content->link_title }} @endif
@php $image_count++; $service_row_no++; @endphp @endforeach
@endif @if ($order_key == 'product')

{{ __('Product') }}

@php $pr_image_count = 0; @endphp @foreach ($products_content as $k1 => $content)
image
{{ $content->title }}

{{ $content->description }}

{{ $content->currency }} {{ $content->price }}
@if (!empty($content->purchase_link)) {{ $content->link_title }} @endif
@php $pr_image_count++; $product_row_no++; @endphp @endforeach
@endif @if ($order_key == 'bussiness_hour')

{{ __('Business Hours') }}

    @foreach ($days as $k => $day)
  • {{ __($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
  • @endforeach
@endif @if ($order_key == 'appointment')

{{ __('Make') }}
{{ __('an appointment') }}

@php $radiocount = 1; @endphp @if (!is_null($appoinment_hours)) @foreach ($appoinment_hours as $k => $hour)
@php $radiocount++; $appointment_no++; @endphp @endforeach @endif
@endif @if ($order_key == 'gallery') @endif @if ($order_key == 'testimonials')

{{ __('Testimonials') }}

@if (isset($is_pdf))
@php $t_image_count = 0; $rating = 0; @endphp @foreach ($testimonials_content as $k2 => $testi_content)
image
{{ $testi_content->rating }}/5 @php if (!empty($testi_content->rating)) { $rating = (int) $testi_content->rating; $overallrating = $rating; } else { $overallrating = 0; } @endphp
@for ($i = 1; $i <= 5; $i++) @if ($overallrating < $i) @if (is_float($overallrating) && round($overallrating) == $i) @else @endif @else @endif @endfor
{{ isset($testi_content->name)?$testi_content->name:'' }}

{{ $testi_content->description }}

@php $t_image_count++; $testimonials_row_no++; @endphp @endforeach
@else
@php $t_image_count = 0; $rating = 0; @endphp @foreach ($testimonials_content as $k2 => $testi_content)
image
{{ $testi_content->rating }}/5
@php if (!empty($testi_content->rating)) { $rating = (int) $testi_content->rating; $overallrating = $rating; } else { $overallrating = 0; } @endphp @for ($i = 1; $i <= 5; $i++) @if ($overallrating < $i) @if (is_float($overallrating) && round($overallrating) == $i) @else @endif @else @endif @endfor
{{ isset($testi_content->name)?$testi_content->name:'' }}

{{ $testi_content->description }}

@php $t_image_count++; $testimonials_row_no++; @endphp @endforeach
@endif
@endif @if ($order_key == 'social') @endif @if ($order_key == 'more')

{{ __('More') }}

@endif @if ($order_key == 'custom_html') @endif @if ($order_key == 'payment')

{{ __('Payment') }}

@if (!is_null($cardPayment_content) && !is_null($cardPayment))
@if (!is_null($cardPayment_content) && !is_null($cardPayment)) @if ($cardPayment_content->stripe->status == 'on') @endif @if ($cardPayment_content->paypal->status == 'on') @endif @endif
@endif
@endif @php $j = $j + 1; @endphp @endif @endforeach @if ($plan->enable_branding == 'on') @if ($is_branding_enabled)

{{ $business->branding_text }}

@endif @endif
{{-- Password modal --}}
{{-- End password modal --}} {{-- Image modal --}}
{{-- End image modal --}} {{-- Video modal --}}
{{-- End video modal --}}
@if ($SITE_RTL == 'on') @else @endif @if (isset($plan->enable_qr_code) && $plan->enable_qr_code == 'on') @else @endif @if ($business->enable_pwa_business == 'on' && $plan->pwa_business == 'on') @endif @if (isset($is_slug)) @if ($message = Session::get('success')) @endif @if ($message = Session::get('error')) @endif @endif @if (isset($is_pdf)) @include('business.script'); @endif @if (isset($is_slug)) @if ($is_gdpr_enabled) @endif @endif