<script src="{{asset('assets/js/app.js')}}"></script>
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
<div class="modal-content">
  <form >
  <div class="modal-header">
          <h6 class="modal-title">{{__('app.send_email')}} {{ !empty($display_name) ? ' - '.$display_name : '' }}</h6>
          <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
        </div>
  <div class="modal-body">
    <div class="box-body">
      <div class="col-md-12">
              <label class="form-label">{{__('app.email')}}</label>
              <input type="email" class="form-control" placeholder="{{__('app.email')}}" value="" name="email" required>
            </div>
      @if(!empty($broadcast_id) || !empty($template_id))
        <div class="col-md-12 mt-3">
          <label class="form-label">{{ __('app.delivery_servers') }} 
            <a href="{{ route('sending_servers.create') }}">
              <i class="fa fa-plus-square-o"></i>
            </a>
          </label>
           @include('includes.dropdown_sending_server', ['popup' => 1])
      </div>
      @else
      <label></label>
        <input type="hidden" name="sending_server_ids[]" value="{{ $sending_server_id }}">
      @endif
      <div class="col-md-12">
        <div class="col-md-offset-3 col-md-12" id="msg"></div>
      </div>
    </div>
  </div>
  <div class="modal-footer mt-3">
    <input type="hidden" name="broadcast_id" value="{{ $broadcast_id }}">
    <input type="hidden" name="template_id" value="{{ $template_id }}">
    <button type="button" class="btn btn-danger" data-bs-dismiss="modal">{{__('app.close')}}</button>
    <button type="button" id="send-test-email" class="btn btn-info btn-loading" onclick="sendEmailTest(this.form)">{{ __('app.send') }} <i class=""></i></button>
  </div>
</form>
</div>
</div>