@php $show_as_placeholder = false; if (isset($form['show_as_placeholder']) && $form['show_as_placeholder'] == 1) { $show_as_placeholder = true; } $countries_array = null; $max_upload_size = ini_get('upload_max_filesize'); $max_upload_size = str_replace('M', '', $max_upload_size); if($max_upload_size>50){ $max_upload_size=50; } $max_upload_size_str = "The maximum size of uploaded files is $max_upload_size MB"; @endphp
@if ($form['enable_recaptcha'] == 1) @endif @section('extra_scripts') @php $countryName = 'UNKOWN'; try { $ip_adr = is_string($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : ''; $location = json_decode(file_get_contents('http://www.geoplugin.net/json.gp?ip=' . $ip_adr)); if ($location != null) { $countryName = $location->geoplugin_countryName; } } catch (Exception $e) { } @endphp @php $success=session()->pull('success_submit_form');@endphp @if ($success != '') @endif @if (isset($validator)) {!! $validator->selector('#{{ $formId }}') !!} @endif @endsection