
<footer class="footer section pb-0">
    <div class="container">
        <div class="row justify-content-between">
            <div class="col-lg-4">
                <div class="content">
                    <img src="{{asset($footer->image)}}" class="logo" alt=""/>
                    <p class="p">
                        {!! $footer->description !!}
                    </p>

                </div>
            </div>
            <div class="col-lg-2">
                <div class="content">
                    <h5 class="title fw-bold mb-4 pb-2 color-primary text-uppercase">{{ __('web.important_links') }}</h5>
                    <div class="links">
                        <a href="{{route('aboutus')}}">{{ __('web.aboutus') }}</a>
                        <a href="{{route('contactus')}}">   {{__('web.contactus')}} </a>
                        @if(settings('email_us'))
                        <a href="#" data-bs-toggle="modal" data-bs-target="#emailModal">{{ __('web.email_us') }}</a>
                        @endif
                    </div>
                </div>
            </div>
            <div class="col-lg-2">
                <div class="content">
                    <h5 class="title fw-bold mb-4 pb-2 color-primary text-uppercase">{{ __('web.other_links') }}</h5>
                    <div class="links">
                        <a href="{{route('conditions')}}">{{__('web.conditions_user')}}</a>
                        <a href="{{route('conditions.company')}}">{{__('web.conditions_company')}}</a>
                        <a href="{{route('privacy')}}">{{__('web.privacy')}}</a>
                    </div>
                </div>
            </div>
            <div class="col-lg-2">
                <div class="content">
                    <h5 class="title fw-bold mb-4 pb-2 color-primary text-uppercase">{{ __('web.contactus') }}</h5>
                    <div class="links">
                        <div class="item">
                            <i class="fas fa-map-marker-alt me-2 color-primary"></i>
                            {{$settings['site_address']}}
                        </div>
                        <div class="item">
                            <i class="fas fa-phone-alt me-2 color-primary"></i>
                            {{$settings['site_phone']}}
                        </div>
                        <div class="item">
                            <i class="fas fa-envelope me-2 color-primary"></i>
                            {{$settings['site_email']}}
                        </div>
                    </div>
                </div>
            </div>

        </div>
        <div class="pay_logos d-flex justify-content-center mt-4">
            @foreach($waysFooter as $row)
                <img src="{{asset($row->image)}}" class="pay_logo" alt=""/>
            @endforeach
        </div>
            {!! __('web.rights') !!}
        
    </div>

</footer>

<div class="modal fade" id="emailModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-lg modal-dialog-centered">
    <div class="modal-content">
      <div class="modal-header">
        <h1 class="modal-title fs-5" id="exampleModalLabel">{{__('web.new_message')}}</h1>
        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
      </div>
        <form method="post" action="{{route('sendEmail')}}" onsubmit="formAction(this)">
            @CSRF
            <div class="modal-body">
              <div class="mb-3">
                <label for="recipient-name" class="col-form-label">{{__('web.to')}}:</label>
                <input type="text" class="form-control" placeholder="example@gmail.com" diasbled value="{{settings('email_us')}}">
              </div>
              {{--<div class="mb-3">
                <label for="recipient-name" class="col-form-label">{{__('web.cc')}}:</label>
                <input type="text" class="form-control" placeholder="example@gmail.com">
              </div>--}}
              <div class="mb-3">
                <label for="recipient-name" class="col-form-label">{{__('web.subject')}}:</label>
                <input type="text" class="form-control" placeholder="" name="subject" value="{{__('web.contactus')}}">
              </div>
              <div class="mb-3">
                <label for="message-text" class="col-form-label">{{__('web.message')}}:</label>
                <textarea class="form-control" rows="6" name="message"  placeholder="your message"></textarea>
              </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="butn" data-bs-dismiss="modal">{{__('web.close')}}</button>
                <button type="submit" class="butn primary_butn ">{{__('web.send_message')}}</button>
            </div>
        </form
    </div>
  </div>
</div>
</div>

<!--Scroll to top button-->
<div class="progress-wrap ">
    <svg class="progress-circle svg-content" width="100%" height="100%" viewBox="-1 -1 102 102"><path d="M50,1 a49,49 0 0,1 0,98 a49,49 0 0,1 0,-98" style="transition: stroke-dashoffset 10ms linear 0s; stroke-dasharray: 307.919, 307.919; stroke-dashoffset: 220.587;"></path></svg>
</div>
@if(settings('whatsapp'))
    <a href="https://api.whatsapp.com/send?phone={{settings('whatsapp')}}&text=" target="_blank" class="whatsapp_butn">
        <img src="{{url('')}}/assets/web/images/icons/whatsapp.png" class="icon" alt=""/>
    </a>
@endif
