80 lines
5.2 KiB
PHP
80 lines
5.2 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('title', 'Hubungi Kami - INUFA')
|
|
@section('header', $contactInfo->title ?? 'Hubungi Kami')
|
|
|
|
@section('content')
|
|
<div class="container mx-auto px-4 py-6">
|
|
<div class="bg-white rounded-lg shadow-lg p-6 max-w-2xl mx-auto">
|
|
@if($contactInfo)
|
|
@if($contactInfo->description)
|
|
<div class="mb-6 text-gray-800 font-semibold">
|
|
{!! nl2br(e($contactInfo->description)) !!}
|
|
</div>
|
|
@endif
|
|
|
|
<div class="space-y-4">
|
|
@if($contactInfo->name)
|
|
<div class="flex items-center space-x-3">
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-blue-600" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4" />
|
|
</svg>
|
|
<span class="text-gray-800 font-semibold">
|
|
{{ $contactInfo->name }}
|
|
</span>
|
|
</div>
|
|
@endif
|
|
|
|
@if($contactInfo->address)
|
|
<div class="flex items-start space-x-3">
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-blue-600 mt-1" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" />
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z" />
|
|
</svg>
|
|
<span class="text-gray-800 font-semibold">
|
|
{!! nl2br(e($contactInfo->address)) !!}
|
|
</span>
|
|
</div>
|
|
@endif
|
|
|
|
@if($contactInfo->phone)
|
|
<div class="flex items-center space-x-3">
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-blue-600" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z" />
|
|
</svg>
|
|
<a href="tel:{{ $contactInfo->phone }}" class="text-blue-600 hover:text-blue-800">
|
|
{{ $contactInfo->phone }}
|
|
</a>
|
|
</div>
|
|
@endif
|
|
|
|
@if($contactInfo->email)
|
|
<div class="flex items-center space-x-3">
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-blue-600" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
|
|
</svg>
|
|
<a href="mailto:{{ $contactInfo->email }}" class="text-blue-600 hover:text-blue-800">
|
|
{{ $contactInfo->email }}
|
|
</a>
|
|
</div>
|
|
@endif
|
|
|
|
@if($contactInfo->whatsapp)
|
|
<div class="flex items-center space-x-3">
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-green-600" fill="currentColor" viewBox="0 0 24 24">
|
|
<path d="M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.893 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z"/>
|
|
</svg>
|
|
<a href="https://wa.me/{{ preg_replace('/[^0-9]/', '', $contactInfo->whatsapp) }}" target="_blank" class="text-green-600 hover:text-green-800">
|
|
{{ $contactInfo->whatsapp }}
|
|
</a>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
@else
|
|
<div class="text-center text-gray-600">
|
|
Informasi kontak belum tersedia.
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
@endsection
|