HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers95/rentman.io/resources/views/site/organisms/forms/hubspot-forms.blade.php
@php
    $hubspotForms = [
        'en' => '46f80104-9a15-4ee4-977e-497e1c1b45ae',
        'nl' => '043f35fe-840c-4bfd-b363-a5be67fdc5a4',
        'de' => '663595bd-8a65-4637-9141-8568632a4292',
        'fr' => '879a509d-8be9-4f39-9152-d85bfdb0932e',
        'it' => 'a3c2b50e-3f89-4670-93c0-8bc2f45ecff3',
        'es' => 'd92c23d0-2d90-45d7-9a3b-cac87afb8442',
    ];

    $currentLocale = \App::getLocale();
    $formId = $hubspotForms[$currentLocale] ?? null;
@endphp

<div class="c-hubspot-forms">
    <h5 class="c-hubspot-forms__title">
        @lang('site/contact.contact_sales.secondTitle')
    </h5>

    @if($formId)
        <script src="//js.hsforms.net/forms/{{ $currentLocale === 'en' ? 'shell' : 'v2' }}.js" type="text/javascript" charset="utf-8"></script>
        <script>
            hbspt.forms.create({
                region: "na1",
                portalId: "3871320",
                formId: "{{ $formId }}"
            });
        </script>
    @endif
</div>