@extends('cms::frontend.layouts.app')
@section('title', 'Contact us')
@php
$navbar_btn['text'] = 'Try For Free';
$navbar_btn['link'] = route('business.getRegister');
if(isset($__site_details['btns']) && isset($__site_details['btns']['navbar']) && !empty($__site_details['btns']['navbar']['text'])) {
$navbar_btn['text'] = $__site_details['btns']['navbar']['text'] ?? 'Try For Free';
}
if(isset($__site_details['btns']) && isset($__site_details['btns']['navbar']) && !empty($__site_details['btns']['navbar']['link'])) {
$navbar_btn['link'] = $__site_details['btns']['navbar']['link'] ?? route('business.getRegister');
}
@endphp
@includeIf('cms::frontend.layouts.header')
@section('meta')
@endsection
@section('css')
@endsection
@section('content')
@php
$bg_img_url = asset('modules/cms/img/contact.jpg');
if(!empty($page->feature_image_url)) {
$bg_img_url = $page->feature_image_url;
}
@endphp
@php
$mail_us = (isset($__site_details['mail_us']) && !empty($__site_details['mail_us'])) ? $__site_details['mail_us'] : [];
$mail_us_collection = collect($mail_us);
$filtered_mail_us = $mail_us_collection->filter(function ($value, $key) {
return !empty($value['label']) && !empty($value['email']);
});
$contact_us = (isset($__site_details['contact_us']) && !empty($__site_details['contact_us'])) ? $__site_details['contact_us'] : [];
$contact_us_collection = collect($contact_us);
$filtered_contact_us = $contact_us_collection->filter(function ($value, $key) {
return !empty($value['label']) && !empty($value['num']);
});
@endphp
@if(!empty($filtered_contact_us) || !empty($filtered_mail_us))
@if(!empty($filtered_contact_us))
Call Us
@endif
@if(!empty($filtered_mail_us))
Mail Us
@endif
@endif
@endsection
@section('javascript')
@endsection