@extends('layouts.classic') @section('content') {{-- Custom JS --}} @section('custom-css') {{-- AdSense status --}} @if ($setting->adsense_code != "DISABLE") @if ($setting->adsense_code != "") {{-- AdSense code --}} @endif @endif @endsection {{-- Topbar --}} @include('website.classic.includes.topbar') @php use App\Models\Page; use App\Models\Setting; $page = Page::where('slug', 'contact')->where('status', 1)->get(); $settings = Setting::where('status', 1)->first(); // Recaptcha Configuration $recaptcha_configuration = [ 'RECAPTCHA_ENABLE' => env('RECAPTCHA_ENABLE', 'off'), 'RECAPTCHA_SITE_KEY' => env('RECAPTCHA_SITE_KEY', ''), 'RECAPTCHA_SECRET_KEY' => env('RECAPTCHA_SECRET_KEY', ''), 'RECAPTCHA_SKIP_IP' => env('RECAPTCHA_SKIP_IP', '[]'), ]; $settings['recaptcha_configuration'] = $recaptcha_configuration; @endphp {{-- Contact --}}
{{-- Heading --}} @if (!empty($page[0]->body)) @foreach (preg_split('/(<[^>]*>)/', $page[0]->body, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY) as $part) @if (strpos($part, '<') === 0) {!! __($part) !!} @else {{ __($part) }} @endif @endforeach @endif {{-- Contact details --}}
{{-- Details --}} @if (!empty($page[1]->body)) @foreach (preg_split('/(<[^>]*>)/', $page[1]->body, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY) as $part) @if (strpos($part, '<') === 0) {!! __($part) !!} @else {{ __($part) }} @endif @endforeach @endif {{-- Form --}}
@csrf {{-- Success --}} @if(Session::has("success"))
{{Session::get('success')}}
{{-- Failed --}} @elseif(Session::has("failed"))
{{Session::get('failed')}}
{{-- Error --}} @elseif(Session::has("error"))
{{Session::get('error')}}
@endif {{-- Name --}}
{{-- Email --}}
{{-- Message --}}
{{-- Google Recaptcha : v2 Checkbox --}} @if ($settings['recaptcha_configuration']['RECAPTCHA_ENABLE'] == 'on')
{!! htmlFormSnippet() !!}
@endif
{{-- Footer --}} @include('website.classic.includes.footer') @endsection