<script src="{{asset('assets/js/app.js')}}"></script>
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
<div class="modal-content">
  <form class="form-horizontal" id="frm-list">
    <div class="modal-header">
      <h6 class="modal-title">{{__('app.action')}}</h6>
      <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="{{__('app.close')}}"></button>
    </div>
    <div class="modal-body">
      <div class="box-body">
        <div class="form-group">
          <label class="col-md-12 control-label">{{ ($action == 'Move' || $action == 'Keep Moving') ? __('app.move_to') : __('app.copy_to') }}</label>
          <div class="col-md-12">
            @include('includes.dropdown_lists', ['popup' => 1, 'multiselect' => 0, 'required' => 1])
          </div>
        </div>
      </div>
    </div>
    <div class="modal-footer">
      <input type="hidden" name="id" value="{{ $id }}">
      <input type="hidden" name="action" value="{{ $action }}">
      <button type="button" class="btn btn-danger" data-bs-dismiss="modal">{{__('app.close')}}</button>
      @if($action == 'Move' || $action == 'Keep Moving')
      <button type="button" class="btn btn-primary btn-loading" onclick="moveCopySegment(this, '{{ route('segment.update.action', ['id' => $id]) }}')"><i class=""></i> {{ __('app.move') }}</button>
      @else
      <button type="button" class="btn btn-primary btn-loading" onclick="moveCopySegment(this, '{{ route('segment.update.action', ['id' => $id]) }}')"><i class=""></i> {{ __('app.copy') }}</button>
      @endif
    </div>
  </form>
</div>
</div>
