Contact statische text via API

This commit is contained in:
NH Gooi
2026-02-27 14:58:59 +01:00
parent c6271899aa
commit 851a0df432
2 changed files with 90 additions and 98 deletions

View File

@@ -12,7 +12,17 @@ class ContactController extends Controller
{ {
public function show() public function show()
{ {
return view('contact'); $page = $this->API('statisch/contact');
if ($page == null) {
return abort(404);
}
$page->published = Controller::JsonToDateTime($page->published);
if ($page->edited) {
$page->edited = Controller::JsonToDateTime($page->edited);
}
return view('contact', ['page' => $page]);
} }
public function submit(Request $request) public function submit(Request $request)

View File

@@ -1,65 +1,44 @@
@extends('layouts/full') @extends('layouts/full')
@section('title') @section('title')
Neem contact op Neem contact op
@endsection @endsection
@section('page_class')news_post post_container @endsection
@section('breadcrumb') @section('breadcrumb')
<ul class="bread_crumb"> <ul class="bread_crumb">
<li><a title="Home" href="/">Home</a></li> <li><a title="Home" href="/">Home</a></li>
<li class="separator"><i class="fa-solid fa-chevron-right"></i></li> <li class="separator"><i class="fa-solid fa-chevron-right"></i></li>
<li><a title="NH Gooi" href="{{route('contact')}}">NH Gooi</a></li> <li><a title="NH Gooi" href="{{route('contact')}}">NH Gooi</a></li>
<li class="separator"><i class="fa-solid fa-chevron-right"></i></li> <li class="separator"><i class="fa-solid fa-chevron-right"></i></li>
<li>Neem contact op</li> <li>Neem contact op</li>
</ul> </ul>
@endsection @endsection
@section('content') @section('content')
<div class="page_body"> <div class="post_body">
<div class="row "> <ul class="post_details clearfix">
<li class="detail date">
<i class="fa-regular fa-clock"></i>
{{Formatter::relativeDate($page->published)}} om {{$page->published->format('H:i')}}
@if($page->edited && ($page->edited->format('d m H i') != $page->published->format('d m H i')))
| bijgewerkt:
@if($page->edited->format('d m') != $page->published->format('d m'))
{{strtolower(Formatter::relativeDate($page->edited))}}
@endif
om {{$page->edited->format('H:i')}} uur
@endif
</li>
{{-- @if($page->author)
<li class="detail author"><i class="fa-solid fa-pen"></i> {{$page->author}}</li>
@endif --}}
</ul>
<div class="row">
<div class="col-12 col-md-6"> <div class="col-12 col-md-6">
<p>NH Gooi is de publieke streekomroep van Gooi en Vechtstreek. We houden je 24 uur per dag <p>{!!$page->content!!}</p>
op de hoogte van al het nieuws, betrouwbaar en snel. Dat doen we via een eigen nieuws-
app, onze website en social media, maar ook op radio en televisie. Daarnaast brengen we
een gevarieerd aanbod van podcasts, radio- en televisieprogramma's.</p>
<p>Ons team van journalisten en programmamakers bestaat uit betaalde krachten, vrijwilligers
en stagiaires. We vinden het belangrijk mensen op te leiden en een goede plek te bieden
voor talent.</p>
<p>De redactie van NH Gooi is journalistiek onafhankelijk en wordt geleid door de chef redactie.</p>
<h3>Contactinformatie</h3>
<p>Neem contact op met NH Gooi, de streekomroep voor Gooi &amp; Vechtstreek.</p>
<p>Wij zijn te ontvangen in heel Gooi en Eemland. <br>
<a href="{{url('frequenties')}}" class="action_button">
<span class="fa fa-list"></span>
<span>Frequenties</span>
</a>
</p>
<p class="page_margin_top">
<b>NHGooi</b><br>
Postbus 83<br>
1270 AB Huizen<br>
Tel: <a href="tel:+31356424776">035-6424774</a><br>
KvK: 41194132<br>
<br>
<b>Bezoekadres / Studio:</b><br>
IJsselmeerstraat 3B<br>
1271 AA Huizen<br><br>
<p>
<b>NHGooi Radio</b><br>
IJsselmeerstraat 3B<br/>
1271 AA, Huizen<br/>
studio: <a href="tel:+31356424776">035-6424776</a><br/>
KvK: 41194132<br>
</p>
</div> </div>
<div class="col-12 col-md-6"> <div class="col-12 col-md-6">
<h3>Contactformulier</h3> <h3>Contactformulier</h3>
@@ -79,7 +58,8 @@ voor talent.</p>
</div> </div>
@endif @endif
<form class="contant-form" action="{{ route('contact.submit') }}" method="POST" enctype="multipart/form-data"> <form class="contant-form" action="{{ route('contact.submit') }}" method="POST"
enctype="multipart/form-data">
{{ csrf_field() }} {{ csrf_field() }}
<div class="form-group"> <div class="form-group">
<label for="name">Naam</label> <label for="name">Naam</label>
@@ -87,11 +67,13 @@ voor talent.</p>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="email">Email</label> <label for="email">Email</label>
<input type="email" class="form-control" id="email" name="email" value="{{ old('email') }}" required> <input type="email" class="form-control" id="email" name="email" value="{{ old('email') }}"
required>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="message">Bericht</label> <label for="message">Bericht</label>
<textarea class="form-control" id="message" name="message" rows="5" required>{{ old('message') }}</textarea> <textarea class="form-control" id="message" name="message" rows="5"
required>{{ old('message') }}</textarea>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="image">Afbeelding (optioneel)</label> <label for="image">Afbeelding (optioneel)</label>
@@ -108,9 +90,9 @@ voor talent.</p>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
@endsection @endsection
@push('scripts') @push('scripts')
{!! FriendlyCaptcha::renderWidgetScripts() !!} {!! FriendlyCaptcha::renderWidgetScripts() !!}
@endpush @endpush