
@extends('frontend.layouts.navBar')

@section('content')
@include('backend.partials.import')


    <div class="page">
        <div class="banner">
            <img src="{{ asset('frontend/images/contact.jpg') }}" alt="">
            {{-- <div class="devis">Demande de Devis</div> --}}
        </div>

<div class="containerContactPage container contact" style="margin-top:5.5rem !important; margin-bottom:5.5rem !important">
    <div class="row">
    <div class="col-lg-6 col-md-12 contact">

        @foreach($contacts as $contact)
        @if($contact->coorType_id == 4)
        <div style="width: 100%">{!!$contact->coordonnees!!}</div>
              @endif

       @endforeach

    </div>

    <div class="col-lg-5 col-md-12">
        <div class="card card-user">

            <div class="card-body">
                @if(Session::has('success'))
                <div class="alert alert-success">
                    {{ Session::get('success') }}
                </div>
                @endif

                <form method="post" action="{{route('contactez-nous')}}">

                    @csrf
                    <div class="row">

                        <div class="col-md-12 mb-3">
                            <div class="form-group">
                                <label> Email </label>
                                <input type="text" class="form-control @error('email') is-invalid @enderror" name="email" required>
                                @error('email')
                                <span class="invalid-feedback" role="alert">
                                    <strong>{{ $message }}</strong>
                                </span>
                                @enderror
                            </div>
                        </div>

                        <div class="col-md-12 mb-3">
                            <div class="form-group">
                                <label> Objet </label>
                                <input type="text" class="form-control @error('subject') is-invalid @enderror" name="objet" required>
                                @error('subject')
                                <span class="invalid-feedback" role="alert">
                                    <strong>{{ $message }}</strong>
                                </span>
                                @enderror
                            </div>
                        </div>
                        <div class="col-md-12 mb-3">
                            <div class="form-group">
                                <label> Message </label>
                                <textarea class="form-control textarea @error('message') is-invalid @enderror" name="message" required></textarea>
                                @error('message')
                                <span class="invalid-feedback" role="alert">
                                    <strong>{{ $message }}</strong>
                                </span>
                                @enderror
                            </div>


                        </div>
                    </div>
                    
                        <div class="update ml-auto mr-auto d-flex justify-content-end">
                            <button type="submit" class="btn btn-success btn-round">Envoyer</button>
                        </div>
                    
                </form>
            </div>
        </div>
    </div>
</div>
</div>
</div>

<style>
    label{
        justify-content: left;
    display: flex;
    }

</style>
@endsection


