@php $model = $model ?? $property ?? null; $isProject = $model instanceof \Botble\RealEstate\Models\Project; @endphp
@if (! RealEstateHelper::hideAgentInfoInPropertyDetailPage() && ($account = $model->author) && $account->exists)
{{ __('Contact Agency') }}
@if ($account->phone && ! setting('real_estate_hide_agency_phone', false) && ! $account->hide_phone) {{ $account->phone }} @elseif($hotline = theme_option('hotline')) {{ $hotline }} @endif @if ($account->email && ! setting('real_estate_hide_agency_email', false) && ! $account->hide_email) {{ $account->email }} @endif
@else
{{ __('Contact') }}
@endif @if ($isProject) {!! apply_filters('project_right_details_info', null, $model) !!} @else {!! apply_filters('property_right_details_info', null, $model) !!} @endif @if (RealEstateHelper::isEnabledConsultForm()) {!! apply_filters('before_consult_form', null, $model) !!} {!! \Botble\RealEstate\Forms\Fronts\ConsultForm::create() ->formClass('contact-form') ->setFormInputWrapperClass('ip-group') ->modify('content', 'textarea', ['attr' => ['class' => 'form-control']]) ->modify('submit', 'submit', ['attr' => ['class' => 'tf-btn primary w-100']]) ->add('type', 'hidden', ['attr' => ['value' => $isProject ? 'project' : 'property']]) ->add('data_id', 'hidden', ['attr' => ['value' => $model->getKey()]]) ->addBefore('content', 'data_name', 'text', ['label' => false, 'attr' => ['value' => $model->name, 'disabled' => true]]) ->renderForm() !!} {!! apply_filters('after_consult_form', null, $model) !!} @endif @if (! RealEstateHelper::hideAgentInfoInPropertyDetailPage() && ($account = $model->author) && $account->exists && $account->whatsapp)

{{ __('Or get instant response via WhatsApp') }}

@endif