@if(config('services.recaptcha.sitekey'))
    <div class="mt-2 row text-center">
        <div class="g-recaptcha"
             style="display: inline-block;"
             data-theme="light"
             data-sitekey="{{config('services.recaptcha.sitekey')}}">
        </div>
        @if ($errors->has('g-recaptcha-response'))
            <br><span class="text-danger">{{ $errors->first('g-recaptcha-response') }}</span>
        @endif
    <script src="https://www.google.com/recaptcha/api.js" async defer></script>
    </div>
@endif

