/home/kueuepay/public_html/resources/views/frontend/pages/contact.blade.php
@extends('frontend.layouts.master')
@php
    $app_local  = get_default_language_code();
    $default    = App\Constants\LanguageConst::NOT_REMOVABLE;
    $slug       = Illuminate\Support\Str::slug(App\Constants\SiteSectionConst::CONTACT_US_SECTION);
    $contact    = App\Models\Admin\SiteSections::getData($slug)->first();
@endphp

@section('content')
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Start Contact
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<section class="contact-section ptb-80">
    <div class="container">
        <div class="section-tag">
            <span class="d-flex align-items-center">
                <p>{{ $contact->value->language->$app_local->title ?? $contact->value->language->$default->title ?? '' }}</p> <i class="las la-cog"></i>
            </span>
            <div class="section-element">
                <img src="{{ asset('public/frontend') }}/images/element/section-element.webp">
            </div>
        </div>
        <div class="row pb-40">
            <div class="col-xl-8 lg-10">
                <h2 class="title">{{ $contact->value->language->$app_local->heading ?? $contact->value->language->$default->heading ?? '' }}</h2>
                <p>{{ $contact->value->language->$app_local->sub_heading ?? $contact->value->language->$default->sub_heading ?? '' }}</p>
            </div>
        </div>
        <div class="contact-wrapper">
            <div class="row align-items-center">
                <div class="col-lg-6">
                    <div class="massage-box">
                        <form class="contact-form" action="{{ setRoute('frontend.contact.message.send') }}" method="POST">
                            @csrf
                            <div class="row justify-content-center mb-10-none">
                                <div class="col-xl-12  form-group">
                                    <label>{{ __("Name") }}<span>*</span></label>
                                    <input type="text" name="name" class="form--control" placeholder="{{ __("Enter Name") }}...">
                                </div>
                                <div class="col-xl-12  form-group">
                                    <label>{{ __("Email") }}<span>*</span></label>
                                    <input type="email" name="email" class="form--control" placeholder="{{ __("Enter Email") }}...">
                                </div>
                                <div class="col-xl-12 col-lg-12 form-group">
                                    <label>{{ __("Message") }}<span>*</span></label>
                                    <textarea class="form--control" name="message" placeholder="{{ __("Write Here") }}..."></textarea>
                                </div>
                                <div class="col-lg-12 form-group">
                                    <button type="submit" class="btn--base">{{ __("Send Message") }}</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="col-lg-6">
                    <div class="contact-box">
                        <div class="row justify-content-center mb-30-none">
                            <div class="col-lg-12 mb-30">
                                <div class="contact-widget">
                                    <div class="contact-item-icon">
                                        <img src="{{ asset('public/frontend') }}/images/element/location.gif" alt="icon">
                                    </div>
                                    <div class="contact-item-content">
                                        <h4 class="title">{{ __("Our Location") }}</h4>
                                        <span class="sub-title">{{ $contact->value->address ?? '' }}</span>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-12 mb-30">
                                <div class="contact-widget">
                                    <div class="contact-item-icon">
                                        <img src="{{ asset('public/frontend') }}/images/element/mobile.gif" alt="icon">
                                    </div>
                                    <div class="contact-item-content">
                                        <h4 class="title">{{ __("Call us on") }}: {{ $contact->value->phone ?? '' }}</h4>
                                        @foreach ($contact->value->schedules ?? [] as $item)
                                            <span class="sub-title">{{ __("Our office hours") }} {{ $item->schedule ?? '' }}</span>
                                        @endforeach
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-12 mb-30">
                                <div class="contact-widget">
                                    <div class="contact-item-icon">
                                        <img src="{{ asset('public/frontend') }}/images/element/email.gif" alt="icon">
                                    </div>
                                    <div class="contact-item-content">
                                        <h4 class="title">{{ __("Email us directly") }}</h4>
                                        <span class="sub-title">{{ $contact->value->email ?? '' }}</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    End Contact
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
@endsection
Error Handling

Error Handling

In case of an error, the API will return an error response containing a specific error code 400, 403 Failed and a user-friendly message. Refer to our API documentation for a comprehensive list of error codes and their descriptions.