<button type="button" class="btn btn-info btn-md" data-toggle="modal" data-target="#open_request_{{ $editor_role->ebm_id }}">
    <span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span> Open </button>

<!-- Modal -->
<div id="open_request_{{ $editor_role->ebm_id }}" class="modal fade" role="dialog">
    <div class="modal-dialog">

        <!-- Modal content-->
        <div class="modal-content">
            @if(!empty($editor_role->email_accp_name) || !empty($editor_role->eic_approval) || !empty($editor_role->director_approval) || !empty($editor_role->agreement_form_name))
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Select Download Options </h4>
            </div>
            @endif
            <div class="modal-body">
                @if(!empty($editor_role->email_accp_name))
                <a href="{{url('admin/editor_role/download_email_accp/'.$editor_role->email_accp_name)}}" class="btn btn-info btn-md" title="ownload Acceptance Email" style="background-color:#009688;"><span class="	glyphicon glyphicon-download-alt" aria-hidden="true"></span>
                </a> Download Acceptance Email
                <br> <br>
                @endif

                @if(!empty($editor_role->eic_approval))
                <a href="{{url('admin/editor_role/download_eic_approval/'.$editor_role->eic_approval)}}" class="btn btn-info btn-md" title="Download EIC Approval" style="background-color:#009688;"><span class="	glyphicon glyphicon-download-alt" aria-hidden="true"></span>
                </a> Download EIC Approval
                <br> <br>
                @endif

                @if(!empty($editor_role->director_approval))
                <a href="{{url('admin/editor_role/download_director_approval/'.$editor_role->director_approval)}}" class="btn btn-info btn-md" title="Download Dr.Sahab Approval" style="background-color:#009688;"><span class="	glyphicon glyphicon-download-alt" aria-hidden="true"></span>
                </a> Download Dr.Sahab Approval
                <br> <br>
                @endif

                @if(!empty($editor_role->agreement_form_name))
                <a href="{{url('admin/editor_role/download_agreement_form/'.$editor_role->agreement_form_name)}}" class="btn btn-info btn-md" title=" Download Agreement Form" style="background-color:#009688;"><span class="	glyphicon glyphicon-download-alt" aria-hidden="true"></span>
                </a> Download Agreement Form
                @endif

                <hr>
                <h4 class="modal-title">Select Other Options</h4>
                <hr>
                @if(!empty($editor_role->resign_email_text))
                <button type="button" class="btn btn-warning btn-md" data-toggle="modal" data-target="#resign_email_{{ $editor_role->ebm_id }}">
                    <span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span></button>Resign Email
                <div id="resign_email_{{ $editor_role->ebm_id }}" class="modal fade" role="dialog">
                    <div class="modal-dialog modal-xl">
                        <!-- Modal content-->
                        <div class="modal-content">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal">&times;</button>
                                <h4 class="modal-title">Resign Email Text </h4>
                            </div>
                            <div class="modal-body">
                                {!! $editor_role->resign_email_text !!}
                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                            </div>
                        </div>
                    </div>
                </div>
                <br> <br>
                @endif

                <a href="{{url('admin/editor_role/edit/'.$editor_role->ebm_id)}}" class="btn btn-warning btn-md" title="Edit Editor Role" style="background-color:#00bcd4;">
                    <span class="glyphicon glyphicon-user" aria-hidden="true"></span> <span class="glyphicon glyphicon-time" aria-hidden="true"></span>
                </a> Edit Editor Role
                <br> <br>

                <button type="button" class="btn btn-danger btn-md" data-toggle="modal" data-target="#delete_editor_role{{ $editor_role->ebm_id }}"><span class="glyphicon glyphicon-user" aria-hidden="true"></span> <span class="glyphicon glyphicon-trash" aria-hidden="true"></span></button>Delete Editor Role
                <div id="delete_editor_role{{ $editor_role->ebm_id }}" class="modal fade" role="dialog">
                    <div class="modal-dialog modal-xl">
                        <!-- Modal content-->
                        <form method="post" action="{{ url('admin/editor_role/delete/'.$editor_role->ebm_id) }}" enctype="multipart/form-data">
                            @csrf <!-- Add this line to include the CSRF token -->
                            <div class="modal-content">
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                                    <h3 class="modal-title text-danger">Confirmation</h3>
                                </div>
                                <div class="modal-body">
                                    <label for="e1" class="control-label">Comment: <span class="text-danger">*</span></label>
                                    <textarea class="form-control resize_vertical" name="role_delete_comment" placeholder="" rows="3" required></textarea>
									
									<label for="e1" class="control-label m-t-5">Upload File: <span class="text-danger"> (Supported Format .doc, .docx, .pdf) *</span></label>
                                    <div class="fileinput fileinput-new input-group" data-provides="fileinput">
                                        <div class="form-control" data-trigger="fileinput">
                                            <span class="fileinput-filename"></span>
                                            <input type="file" value="" name="role_delete_filename" required>
                                        </div>
                                    </div>
                                </div>
                                <div class="modal-footer">
                                    <button type="submit" class="btn btn-danger btn-md" title="Delete Editor Role">
                                        Delete
                                        <span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
                                    </button>
                                    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>