@extends('layouts.main')
@section('content')
    @if(session('success'))
        <div class="alert alert-success">
            {{ session('success') }}
        </div>
    @endif
    <div class="container mt-5">
        <h1 class="mt-4 mb-4">Contact Us</h1>
        <div class="row">
            <div class="col-md-8 offset-md-2">
                <form action="{{ route('contact.submit') }}" method="POST">
                    @csrf
                    <div class="mb-3">
                        <label for="name" class="form-label">Your Name</label>
                        <input type="text" class="form-control" id="name" name="name" placeholder="Enter your name" required>
                    </div>
                    <div class="mb-3">
                        <label for="email" class="form-label">Email Address</label>
                        <input type="email" class="form-control" id="email" name="email" placeholder="Enter your email" required>
                    </div>
                    <div class="mb-3">
                        <label for="message" class="form-label">Message</label>
                        <textarea class="form-control" id="message" name="message" rows="5" placeholder="Enter your message" required></textarea>
                    </div>
                    <button type="submit" class="btn btn-primary">Send</button>
                </form>
            </div>
        </div>
        <div class="row mt-5 text-center justify-content-center">
        @foreach(config('social.links') as $link)
            <div class="col-6 col-md-8 mb-4">
                <a href="{{ $link['url'] }}" class="social-link text-decoration-none d-flex align-items-center justify-content-center gap-2 p-3 border rounded social-link"
                   target="_blank">
                    <i class="{{ $link['icon'] }} fs-3 text-primary"></i>
                    <span style="font-size: 1rem; font-weight: bold;">{{ $link['name'] }}</span>
                </a>
            </div>
        @endforeach
</div>
    </div>
@endsection
