2026-04-03 05:33:21 +07:00
|
|
|
@extends('public.layout')
|
|
|
|
|
@section('title', 'Kontak')
|
|
|
|
|
@section('content')
|
|
|
|
|
|
2026-04-03 05:47:18 +07:00
|
|
|
<section class="max-w-6xl mx-auto px-6 py-24 grid md:grid-cols-2 gap-16">
|
|
|
|
|
<div>
|
|
|
|
|
<p class="text-xs font-semibold text-gray-400 uppercase tracking-widest mb-4 flex items-center gap-2">
|
|
|
|
|
<span class="w-4 h-px bg-gray-400 inline-block"></span> Kontak
|
|
|
|
|
</p>
|
|
|
|
|
<h1 class="text-5xl font-bold leading-tight mb-6">Hubungi<br>kami</h1>
|
|
|
|
|
<p class="text-gray-500 leading-relaxed mb-8">
|
|
|
|
|
Kirimkan pesan, pertanyaan, atau saran. Kami akan merespons secepatnya.
|
|
|
|
|
</p>
|
|
|
|
|
<div class="space-y-3 text-sm text-gray-500">
|
|
|
|
|
<p>📍 Desa Karangdadap, Kecamatan Kalibagor, Kabupaten Banyumas</p>
|
|
|
|
|
</div>
|
2026-04-03 05:33:21 +07:00
|
|
|
</div>
|
|
|
|
|
|
2026-04-03 05:47:18 +07:00
|
|
|
<div>
|
|
|
|
|
@if(session('success'))
|
|
|
|
|
<div class="border border-gray-200 bg-gray-50 rounded-xl px-5 py-4 mb-6 text-sm text-gray-700">
|
|
|
|
|
{{ session('success') }}
|
|
|
|
|
</div>
|
|
|
|
|
@endif
|
2026-04-03 05:33:21 +07:00
|
|
|
|
2026-04-03 05:47:18 +07:00
|
|
|
<form method="POST" action="{{ route('kontak.store') }}" class="space-y-4">
|
|
|
|
|
@csrf
|
2026-04-03 05:33:21 +07:00
|
|
|
<div>
|
2026-04-03 05:47:18 +07:00
|
|
|
<label class="block text-xs font-medium text-gray-500 uppercase tracking-widest mb-1.5">Nama *</label>
|
2026-04-03 05:33:21 +07:00
|
|
|
<input type="text" name="name" value="{{ old('name') }}" required
|
2026-04-03 05:47:18 +07:00
|
|
|
class="w-full border border-gray-200 rounded-xl px-4 py-3 text-sm focus:outline-none focus:border-gray-400 transition @error('name') border-red-300 @enderror">
|
2026-04-03 05:33:21 +07:00
|
|
|
@error('name')<p class="text-red-500 text-xs mt-1">{{ $message }}</p>@enderror
|
|
|
|
|
</div>
|
|
|
|
|
|
2026-04-03 05:47:18 +07:00
|
|
|
<div class="grid grid-cols-2 gap-4">
|
2026-04-03 05:33:21 +07:00
|
|
|
<div>
|
2026-04-03 05:47:18 +07:00
|
|
|
<label class="block text-xs font-medium text-gray-500 uppercase tracking-widest mb-1.5">Email</label>
|
2026-04-03 05:33:21 +07:00
|
|
|
<input type="email" name="email" value="{{ old('email') }}"
|
2026-04-03 05:47:18 +07:00
|
|
|
class="w-full border border-gray-200 rounded-xl px-4 py-3 text-sm focus:outline-none focus:border-gray-400 transition">
|
2026-04-03 05:33:21 +07:00
|
|
|
</div>
|
|
|
|
|
<div>
|
2026-04-03 05:47:18 +07:00
|
|
|
<label class="block text-xs font-medium text-gray-500 uppercase tracking-widest mb-1.5">Telepon</label>
|
2026-04-03 05:33:21 +07:00
|
|
|
<input type="text" name="phone" value="{{ old('phone') }}"
|
2026-04-03 05:47:18 +07:00
|
|
|
class="w-full border border-gray-200 rounded-xl px-4 py-3 text-sm focus:outline-none focus:border-gray-400 transition">
|
2026-04-03 05:33:21 +07:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
2026-04-03 05:47:18 +07:00
|
|
|
<label class="block text-xs font-medium text-gray-500 uppercase tracking-widest mb-1.5">Subjek *</label>
|
2026-04-03 05:33:21 +07:00
|
|
|
<input type="text" name="subject" value="{{ old('subject') }}" required
|
2026-04-03 05:47:18 +07:00
|
|
|
class="w-full border border-gray-200 rounded-xl px-4 py-3 text-sm focus:outline-none focus:border-gray-400 transition @error('subject') border-red-300 @enderror">
|
2026-04-03 05:33:21 +07:00
|
|
|
@error('subject')<p class="text-red-500 text-xs mt-1">{{ $message }}</p>@enderror
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
2026-04-03 05:47:18 +07:00
|
|
|
<label class="block text-xs font-medium text-gray-500 uppercase tracking-widest mb-1.5">Pesan *</label>
|
2026-04-03 05:33:21 +07:00
|
|
|
<textarea name="message" rows="5" required
|
2026-04-03 05:47:18 +07:00
|
|
|
class="w-full border border-gray-200 rounded-xl px-4 py-3 text-sm focus:outline-none focus:border-gray-400 transition @error('message') border-red-300 @enderror">{{ old('message') }}</textarea>
|
2026-04-03 05:33:21 +07:00
|
|
|
@error('message')<p class="text-red-500 text-xs mt-1">{{ $message }}</p>@enderror
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<button type="submit"
|
2026-04-03 05:47:18 +07:00
|
|
|
class="w-full bg-gray-900 text-white font-medium py-3 rounded-full text-sm hover:bg-gray-700 transition">
|
2026-04-03 05:33:21 +07:00
|
|
|
Kirim Pesan
|
|
|
|
|
</button>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
2026-04-03 05:47:18 +07:00
|
|
|
</section>
|
2026-04-03 05:33:21 +07:00
|
|
|
|
|
|
|
|
@endsection
|