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/SBogers10/umans.komma.pro/app/views/layouts/partials/offerBlock.blade.php
<div class="offer-block">
    <h4 class="thank-you">@lang('translations.thank-you-form')</h4>
    <div class="form-area">
        <h5>
            @if( \Config::get('app.radepoActive'))
                @lang('offer.form-cta')
            @else
                @lang('offer.form-cta-24')
            @endif
        </h5>

        <form action="{{ URL::route('offer.process') }}" method="post" id="quick-form">
            <input type="hidden" name="formName" value="quick-form">
            {{--<div class="offer-value">
                <select name="offerValue">

                    @foreach(trans('offer.dropdown') as $option)
                        <option value="{{$option['value']}}">{{$option['name']}}</option>
                    @endforeach

                </select>
            </div>--}}

            <label for="name">@lang('offer.name'):</label><input id="name" type="text" name="name">
            <label for="email">@lang('offer.email'):</label><input id="email" type="email" name="email">

            <div class="hidden-inputs non-active">
                <label for="phone">@lang('offer.phone'):</label><input id="phone" type="text" name="phone">
                <label class="form-label" for="message">@lang('offer.message'):</label>
                {{ Form::textarea('formMessage', Input::old('formMessage') ,['id'=>'formMessage', 'rows'=>'6']) }}
            </div>

            <div class="submit-button">@lang('offer.submit')<span></span></div>

        </form>
    </div>

    {{--<script type="text/javascript">--}}
    {{--$(function () {--}}
    {{--$('.submit-button').click(function () {--}}
    {{--$('#quick-form').submit();--}}
    {{--});--}}

    {{--$( "#quick-form #name" ).change(function() {--}}
    {{--$( "#quick-form .phone-wrapper").removeClass('non-active');--}}
    {{--});--}}

    {{--$('#quick-form').submit(function (event) {--}}
    {{--event.preventDefault();--}}

    {{--$('#quick-form h5.alert').remove();--}}

    {{--$('.offer-block').css('min-height', $('.offer-block').height());--}}

    {{--var form = $(this);--}}

    {{--var name = form.find('input[name="name"]').val();--}}
    {{--var email = form.find('input[name="email"]').val();--}}
    {{--var phone = form.find('input[name="phone"]').val();--}}
    {{--var formName = form.find('input[name="formName"]').val();--}}

    {{--//var offer = form.find('.offer-value .selectric .label').html();--}}

    {{--if(name && email ){--}}

    {{--var submitting = $.post(form.attr('action'), {formName: formName ,name: name, phone: phone, email: email});--}}
    {{--submitting.done(function(data){--}}
    {{--console.log(data);--}}

    {{--if(data=='true'){--}}
    {{--$('.offer-block .form-area').remove();--}}
    {{--$('.thank-you').css('opacity', 1);--}}
    {{--$('.thank-you').css('margin-bottom', '115px');--}}
    {{--$('.offer-block').css('min-height', 0);--}}
    {{--}--}}
    {{--else{--}}
    {{--$.each(data, function(key, value){--}}
    {{--$('#quick-form .offer-value').after('<h5 class="alert">'+value+'</h5>');--}}
    {{--});--}}
    {{--}--}}
    {{--});--}}
    {{--}--}}
    {{--else{--}}
    {{--$('#quick-form input').addClass('alert');--}}
    {{--$('#quick-form .offer-value').after('<h5 class="alert">@lang('translations.alert-quick-form')</h5>');--}}
    {{--}--}}
    {{--});--}}
    {{--});--}}
    {{--</script>--}}
</div>