<div class="modal fade" id="email-share" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle"
   >
    <div class="modal-dialog modal-dialog-centered" role="document">
        <div class="modal-content">
            <form class="form-horizontal" action="{{route('share-report-data')}}" method="post" id="share-email-form">
                @csrf
                <div class="modal-header">
                    <h5 class="modal-title" id="exampleModalLongTitle">Share Report via Email</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span>&times;</span>
                    </button>
                </div>

                <div class="modal-body">
                    <div class="form-group">
                        <label class="col-lg-2 control-label">Recipient</label>
                        <div class="col-lg-10">
                            <!-- <select id='recipients' class="form-control " style='width: 200px;' required="" name="users[]" multiple="multiple">
                            </select> -->
                            <input type="text" name='users' class="form-control " style='width: 100%;' required=""
                                value="{{ old('users','') }}">
                            @if ($errors->any())
                            @foreach ($errors->all() as $error)
                            <li class="text-danger">{{$error}}</li>
                            @endforeach
                            @endif

                        </div>
                    </div>
                    <input type="hidden" name="file_name" id="file_name" value="{{ old('file_name','') }}">
                    <input type="hidden" name="title" id="report_title" value="{{ old('title','') }}">
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-link" data-dismiss="modal">Close</button>
                    <input type="submit" class="btn btn-primary" value="Send" id="send_mail">
                </div>
            </form>
        </div>
    </div>
</div>