@php use App\Models\Admin\Settings; use Illuminate\Support\Str; use App\Libraries\FileSystem; use App\Models\Frontend\PageCustomField; $pageId = $page->id; $getAllField = PageCustomField::getAll([],['page_id' => $pageId]); // dd($getAllField); @endphp @extends('frontLayout.frontlayout') @section('content') @php $formTitle = PageCustomField::get('form_title',$page->id); @endphp
{{isset($formTitle) && $formTitle ? $formTitle : ""}}
{{ @csrf_field() }}
@php $conTitle = PageCustomField::get('contact_us_title',$page->id); $conDes = PageCustomField::get('contact_us_description',$page->id); $conPhone = Settings::get('contact_us_phone'); $conEmail = Settings::get('contact_us_email'); $conAdd = Settings::get('company_address'); @endphp
@php $mapHeading = PageCustomField::get('google_map_heading',$page->id); $mapAdd = PageCustomField::get('google_map_address',$page->id); $googleMapLink = PageCustomField::get('contact_us_google_map_link',$page->id); @endphp

{{isset($page->title) && $page->title ? $page->title : ""}}

{{isset($page->sub_title) && $page->sub_title ? $page->sub_title : ""}}

{!! isset($page->description) && $page->description ? nl2br($page->description) : "" !!}

{!! isset($googleMapLink) && $googleMapLink ? $googleMapLink : "" !!}
@endsection