@extends('layouts.website.website')
@section('content')
<section id="main-content">
    <section class="wrapper site-min-height">
        <!-- page start-->
        <div class="col-md-9">
            <section class="panel">
                <header class="panel-heading">
                    Send Email
                                            <div id="templatebar" class="pull-right col-md-6 btn-toolbar">
                            <button class="btn green pull-right" onclick="location.href = 'email/sent'" type="button">
                                Sent Messages</button>
                            <button class="btn green pull-right" onclick="location.href = 'email/manualEmailTemplate'" type="button">
                                Template</button>
                            <button class="btn green pull-right" data-toggle="modal" data-target="#myModal1" type="button">
                                Add Template</button>
                        </div>

                </header>

                <div class="panel-body">
                    <form role="form" class="clearfix" action="email/send" method="post">
                        <label class="control-label">
                            Send Email To                        </label>
                                                    <div class="radio">
                                <label>
                                    <input type="radio" name="radio" id="optionsRadios1" value="allpatient">
                                    All Patients                                </label>
                            </div>
                            <div class="radio">
                                <label>
                                    <input type="radio" name="radio" id="optionsRadios2" value="alldoctor">
                                    All Doctors                                </label>
                            </div>
                                                <div class="radio">
                            <label>
                                <input type="radio" name="radio" id="optionsRadios2" value="bloodgroupwise">
                                Donor
                            </label>
                        </div>


                        <div class="radio pos_client" style="display: none;">
                            <label>
                                Select Blood Group                                <select class="form-control m-bot15" name="bloodgroup" value="">
                                                                            <option value="A+"> A+ </option>
                                                                            <option value="A-"> A- </option>
                                                                            <option value="B+"> B+ </option>
                                                                            <option value="B-"> B- </option>
                                                                            <option value="AB+"> AB+ </option>
                                                                            <option value="AB-"> AB- </option>
                                                                            <option value="O+"> O+ </option>
                                                                            <option value="O-"> O- </option>

                                </select>
                            </label>

                        </div>




                        <div class="radio">
                            <label>
                                <input type="radio" name="radio" id="optionsRadios2" value="single_patient">
                                Single Patient                            </label>
                        </div>

                        <div class="radio single_patient" style="display: none;">
                            <label>
                                Search Patient Name / ID                                <select class="form-control m-bot15 select2-hidden-accessible" id="patientchoose" name="patient" value="" tabindex="-1" aria-hidden="true">
                                                                            <!--<option value="">  </option> -->

                                </select><span class="select2 select2-container select2-container--default" dir="ltr" style="width: 100px;"><span class="selection"><span class="select2-selection select2-selection--single" role="combobox" aria-haspopup="true" aria-expanded="false" tabindex="0" aria-labelledby="select2-patientchoose-container"><span class="select2-selection__rendered" id="select2-patientchoose-container"><span class="select2-selection__placeholder">Search Patient Name / ID</span></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span></span></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>
                            </label>

                        </div>

                        <div class="radio">
                            <label>
                                <input type="radio" name="radio" id="optionsRadios2" value="other">
                                Others                            </label>
                        </div>

                        <div class="radio other" style="display: none;">
                            <label>
                                Email Address                                <input type="email" name="other_email" value="" class="form-control">
                            </label>

                        </div>

                        <div class="">
                            <label>
                                Select Template                                <select class="form-control m-bot15 select2-hidden-accessible" id="selUser5" name="templatess" style="width: 100%;" tabindex="-1" aria-hidden="true">
                                   <!-- <option value='0'>Select Template</option>-->
                                </select><span class="select2 select2-container select2-container--default" dir="ltr" style="width: 100%;"><span class="selection"><span class="select2-selection select2-selection--single" role="combobox" aria-haspopup="true" aria-expanded="false" tabindex="0" aria-labelledby="select2-selUser5-container"><span class="select2-selection__rendered" id="select2-selUser5-container"><span class="select2-selection__placeholder">Select Template</span></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span></span></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>
                            </label>

                        </div>


                        <div class="form-group">
                            <label class="control-label">Subject</label>
                            <input type="text" class="form-control" name="subject" rows="10">
                        </div>

                        <div class="form-group">
                            <label class="control-label">Message</label>
                                                            <input type="button" name="myBtn" value="{phone}" onclick="addtext(this);">
                                                                <input type="button" name="myBtn" value="{email}" onclick="addtext(this);">
                                                                <input type="button" name="myBtn" value="{company}" onclick="addtext(this);">
                                                                <input type="button" name="myBtn" value="{address}" onclick="addtext(this);">
                                                                <input type="button" name="myBtn" value="{name}" onclick="addtext(this);">
                                                                <input type="button" name="myBtn" value="{lastname}" onclick="addtext(this);">
                                                                <input type="button" name="myBtn" value="{firstname}" onclick="addtext(this);">
                                                                    <br>
                                     <br><br>
                            <textarea class="ckeditor" id="editor1" name="message" value="" cols="70" rows="10" style="visibility: hidden; display: none;"></textarea><div id="cke_editor1" class="cke_1 cke cke_reset cke_chrome cke_editor_editor1 cke_ltr cke_browser_webkit" dir="ltr" lang="en" role="application" aria-labelledby="cke_editor1_arialbl"><span id="cke_editor1_arialbl" class="cke_voice_label">Rich Text Editor, editor1</span><div class="cke_inner cke_reset" role="presentation"><span id="cke_1_top" class="cke_top cke_reset_all" role="presentation" style="height: auto; user-select: none;"><span id="cke_12" class="cke_voice_label">Editor toolbars</span><span id="cke_1_toolbox" class="cke_toolbox" role="group" aria-labelledby="cke_12" onmousedown="return false;"><span id="cke_14" class="cke_toolbar" aria-labelledby="cke_14_label" role="toolbar"><span id="cke_14_label" class="cke_voice_label">Editing</span><span class="cke_toolbar_start"></span><span class="cke_toolgroup" role="presentation"><a id="cke_15" class="cke_button cke_button__scayt cke_button_off cke_button_expandable" href="javascript:void('Spell Checker')" title="Spell Checker" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_15_label" aria-describedby="cke_15_description" aria-haspopup="menu" aria-disabled="false" onkeydown="return CKEDITOR.tools.callFunction(2,event);" onfocus="return CKEDITOR.tools.callFunction(3,event);" onclick="CKEDITOR.tools.callFunction(4,this);return false;" aria-expanded="false"><span class="cke_button_icon cke_button__scayt_icon" style="background-image:url('https://codearistos.net/demo/hms/common/assets/ckeditor/plugins/icons.png?t=J1QB');background-position:0 -888px;background-size:auto;">&nbsp;</span><span id="cke_15_label" class="cke_button_label cke_button__scayt_label" aria-hidden="false">Spell Check As You Type</span><span id="cke_15_description" class="cke_button_label" aria-hidden="false"></span><span class="cke_button_arrow"></span></a></span><span class="cke_toolbar_end"></span></span><span id="cke_16" class="cke_toolbar" aria-labelledby="cke_16_label" role="toolbar"><span id="cke_16_label" class="cke_voice_label">Insert</span><span class="cke_toolbar_start"></span><span class="cke_toolgroup" role="presentation"><a id="cke_17" class="cke_button cke_button__image cke_button_off" href="javascript:void('Image')" title="Image" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_17_label" aria-describedby="cke_17_description" aria-haspopup="false" aria-disabled="false" onkeydown="return CKEDITOR.tools.callFunction(5,event);" onfocus="return CKEDITOR.tools.callFunction(6,event);" onclick="CKEDITOR.tools.callFunction(7,this);return false;"><span class="cke_button_icon cke_button__image_icon" style="background-image:url('https://codearistos.net/demo/hms/common/assets/ckeditor/plugins/icons.png?t=J1QB');background-position:0 -360px;background-size:auto;">&nbsp;</span><span id="cke_17_label" class="cke_button_label cke_button__image_label" aria-hidden="false">Image</span><span id="cke_17_description" class="cke_button_label" aria-hidden="false"></span></a><a id="cke_18" class="cke_button cke_button__table cke_button_off" href="javascript:void('Table')" title="Table" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_18_label" aria-describedby="cke_18_description" aria-haspopup="false" aria-disabled="false" onkeydown="return CKEDITOR.tools.callFunction(8,event);" onfocus="return CKEDITOR.tools.callFunction(9,event);" onclick="CKEDITOR.tools.callFunction(10,this);return false;"><span class="cke_button_icon cke_button__table_icon" style="background-image:url('https://codearistos.net/demo/hms/common/assets/ckeditor/plugins/icons.png?t=J1QB');background-position:0 -912px;background-size:auto;">&nbsp;</span><span id="cke_18_label" class="cke_button_label cke_button__table_label" aria-hidden="false">Table</span><span id="cke_18_description" class="cke_button_label" aria-hidden="false"></span></a><a id="cke_19" class="cke_button cke_button__horizontalrule cke_button_off" href="javascript:void('Insert Horizontal Line')" title="Insert Horizontal Line" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_19_label" aria-describedby="cke_19_description" aria-haspopup="false" aria-disabled="false" onkeydown="return CKEDITOR.tools.callFunction(11,event);" onfocus="return CKEDITOR.tools.callFunction(12,event);" onclick="CKEDITOR.tools.callFunction(13,this);return false;"><span class="cke_button_icon cke_button__horizontalrule_icon" style="background-image:url('https://codearistos.net/demo/hms/common/assets/ckeditor/plugins/icons.png?t=J1QB');background-position:0 -336px;background-size:auto;">&nbsp;</span><span id="cke_19_label" class="cke_button_label cke_button__horizontalrule_label" aria-hidden="false">Insert Horizontal Line</span><span id="cke_19_description" class="cke_button_label" aria-hidden="false"></span></a></span><span class="cke_toolbar_end"></span></span><span id="cke_20" class="cke_toolbar" aria-labelledby="cke_20_label" role="toolbar"><span id="cke_20_label" class="cke_voice_label">Tools</span><span class="cke_toolbar_start"></span><span class="cke_toolgroup" role="presentation"><a id="cke_21" class="cke_button cke_button__maximize cke_button_off" href="javascript:void('Maximize')" title="Maximize" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_21_label" aria-describedby="cke_21_description" aria-haspopup="false" aria-disabled="false" onkeydown="return CKEDITOR.tools.callFunction(14,event);" onfocus="return CKEDITOR.tools.callFunction(15,event);" onclick="CKEDITOR.tools.callFunction(16,this);return false;"><span class="cke_button_icon cke_button__maximize_icon" style="background-image:url('https://codearistos.net/demo/hms/common/assets/ckeditor/plugins/icons.png?t=J1QB');background-position:0 -672px;background-size:auto;">&nbsp;</span><span id="cke_21_label" class="cke_button_label cke_button__maximize_label" aria-hidden="false">Maximize</span><span id="cke_21_description" class="cke_button_label" aria-hidden="false"></span></a></span><span class="cke_toolbar_end"></span></span><span id="cke_22" class="cke_toolbar" aria-labelledby="cke_22_label" role="toolbar"><span id="cke_22_label" class="cke_voice_label">Basic Styles</span><span class="cke_toolbar_start"></span><span class="cke_toolgroup" role="presentation"><a id="cke_23" class="cke_button cke_button__bold cke_button_off" href="javascript:void('Bold')" title="Bold (Ctrl+B)" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_23_label" aria-describedby="cke_23_description" aria-haspopup="false" aria-disabled="false" onkeydown="return CKEDITOR.tools.callFunction(17,event);" onfocus="return CKEDITOR.tools.callFunction(18,event);" onclick="CKEDITOR.tools.callFunction(19,this);return false;"><span class="cke_button_icon cke_button__bold_icon" style="background-image:url('https://codearistos.net/demo/hms/common/assets/ckeditor/plugins/icons.png?t=J1QB');background-position:0 -24px;background-size:auto;">&nbsp;</span><span id="cke_23_label" class="cke_button_label cke_button__bold_label" aria-hidden="false">Bold</span><span id="cke_23_description" class="cke_button_label" aria-hidden="false">Keyboard shortcut Ctrl+B</span></a><a id="cke_24" class="cke_button cke_button__italic cke_button_off" href="javascript:void('Italic')" title="Italic (Ctrl+I)" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_24_label" aria-describedby="cke_24_description" aria-haspopup="false" aria-disabled="false" onkeydown="return CKEDITOR.tools.callFunction(20,event);" onfocus="return CKEDITOR.tools.callFunction(21,event);" onclick="CKEDITOR.tools.callFunction(22,this);return false;"><span class="cke_button_icon cke_button__italic_icon" style="background-image:url('https://codearistos.net/demo/hms/common/assets/ckeditor/plugins/icons.png?t=J1QB');background-position:0 -48px;background-size:auto;">&nbsp;</span><span id="cke_24_label" class="cke_button_label cke_button__italic_label" aria-hidden="false">Italic</span><span id="cke_24_description" class="cke_button_label" aria-hidden="false">Keyboard shortcut Ctrl+I</span></a><span class="cke_toolbar_separator" role="separator"></span><a id="cke_25" class="cke_button cke_button__removeformat cke_button_off" href="javascript:void('Remove Format')" title="Remove Format" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_25_label" aria-describedby="cke_25_description" aria-haspopup="false" aria-disabled="false" onkeydown="return CKEDITOR.tools.callFunction(23,event);" onfocus="return CKEDITOR.tools.callFunction(24,event);" onclick="CKEDITOR.tools.callFunction(25,this);return false;"><span class="cke_button_icon cke_button__removeformat_icon" style="background-image:url('https://codearistos.net/demo/hms/common/assets/ckeditor/plugins/icons.png?t=J1QB');background-position:0 -792px;background-size:auto;">&nbsp;</span><span id="cke_25_label" class="cke_button_label cke_button__removeformat_label" aria-hidden="false">Remove Format</span><span id="cke_25_description" class="cke_button_label" aria-hidden="false"></span></a></span><span class="cke_toolbar_end"></span></span><span id="cke_26" class="cke_toolbar" aria-labelledby="cke_26_label" role="toolbar"><span id="cke_26_label" class="cke_voice_label">Paragraph</span><span class="cke_toolbar_start"></span><span class="cke_toolgroup" role="presentation"><a id="cke_27" class="cke_button cke_button__numberedlist cke_button_off" href="javascript:void('Insert/Remove Numbered List')" title="Insert/Remove Numbered List" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_27_label" aria-describedby="cke_27_description" aria-haspopup="false" aria-disabled="false" onkeydown="return CKEDITOR.tools.callFunction(26,event);" onfocus="return CKEDITOR.tools.callFunction(27,event);" onclick="CKEDITOR.tools.callFunction(28,this);return false;"><span class="cke_button_icon cke_button__numberedlist_icon" style="background-image:url('https://codearistos.net/demo/hms/common/assets/ckeditor/plugins/icons.png?t=J1QB');background-position:0 -648px;background-size:auto;">&nbsp;</span><span id="cke_27_label" class="cke_button_label cke_button__numberedlist_label" aria-hidden="false">Insert/Remove Numbered List</span><span id="cke_27_description" class="cke_button_label" aria-hidden="false"></span></a><a id="cke_28" class="cke_button cke_button__bulletedlist cke_button_off" href="javascript:void('Insert/Remove Bulleted List')" title="Insert/Remove Bulleted List" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_28_label" aria-describedby="cke_28_description" aria-haspopup="false" aria-disabled="false" onkeydown="return CKEDITOR.tools.callFunction(29,event);" onfocus="return CKEDITOR.tools.callFunction(30,event);" onclick="CKEDITOR.tools.callFunction(31,this);return false;"><span class="cke_button_icon cke_button__bulletedlist_icon" style="background-image:url('https://codearistos.net/demo/hms/common/assets/ckeditor/plugins/icons.png?t=J1QB');background-position:0 -600px;background-size:auto;">&nbsp;</span><span id="cke_28_label" class="cke_button_label cke_button__bulletedlist_label" aria-hidden="false">Insert/Remove Bulleted List</span><span id="cke_28_description" class="cke_button_label" aria-hidden="false"></span></a><span class="cke_toolbar_separator" role="separator"></span><a id="cke_29" class="cke_button cke_button__blockquote cke_button_off" href="javascript:void('Block Quote')" title="Block Quote" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_29_label" aria-describedby="cke_29_description" aria-haspopup="false" aria-disabled="false" onkeydown="return CKEDITOR.tools.callFunction(32,event);" onfocus="return CKEDITOR.tools.callFunction(33,event);" onclick="CKEDITOR.tools.callFunction(34,this);return false;"><span class="cke_button_icon cke_button__blockquote_icon" style="background-image:url('https://codearistos.net/demo/hms/common/assets/ckeditor/plugins/icons.png?t=J1QB');background-position:0 -168px;background-size:auto;">&nbsp;</span><span id="cke_29_label" class="cke_button_label cke_button__blockquote_label" aria-hidden="false">Block Quote</span><span id="cke_29_description" class="cke_button_label" aria-hidden="false"></span></a></span><span class="cke_toolbar_end"></span></span><span id="cke_30" class="cke_toolbar" aria-labelledby="cke_30_label" role="toolbar"><span id="cke_30_label" class="cke_voice_label">Styles</span><span class="cke_toolbar_start"></span><span id="cke_13" class="cke_combo cke_combo__format cke_combo_off" role="presentation"><span id="cke_13_label" class="cke_combo_label">Format</span><a class="cke_combo_button" title="Paragraph Format" tabindex="-1" href="javascript:void('Paragraph Format')" hidefocus="true" role="button" aria-labelledby="cke_13_label" aria-haspopup="listbox" onkeydown="return CKEDITOR.tools.callFunction(36,event,this);" onfocus="return CKEDITOR.tools.callFunction(37,event);" onclick="CKEDITOR.tools.callFunction(35,this);return false;"><span id="cke_13_text" class="cke_combo_text cke_combo_inlinelabel">Format</span><span class="cke_combo_open"><span class="cke_combo_arrow"></span></span></a></span><span class="cke_toolbar_end"></span></span></span></span><div id="cke_1_contents" class="cke_contents cke_reset" role="presentation" style="height: 200px;"><span id="cke_35" class="cke_voice_label">Press ALT 0 for help</span><iframe src="" frameborder="0" class="cke_wysiwyg_frame cke_reset" style="width: 100%; height: 100%;" title="Rich Text Editor, editor1" aria-describedby="cke_35" tabindex="0" allowtransparency="true"></iframe></div><span id="cke_1_bottom" class="cke_bottom cke_reset_all" role="presentation" style="user-select: none;"><span id="cke_1_resizer" class="cke_resizer cke_resizer_vertical cke_resizer_ltr" title="Resize" onmousedown="CKEDITOR.tools.callFunction(0, event)">◢</span><span id="cke_1_path_label" class="cke_voice_label">Elements path</span><span id="cke_1_path" class="cke_path" role="group" aria-labelledby="cke_1_path_label"><span class="cke_path_empty">&nbsp;</span></span></span></div></div>
                        </div>
                        <input type="hidden" name="id" value="">

                        <div class="form-group col-md-12">
                            <button type="submit" name="submit" class="btn btn-info col-md-3 pull-right"><i class="fa fa-location-arrow"></i> Send Email</button>
                        </div>

                    </form>
                </div>
            </section>
        </div>
        <!-- page end-->
    </section>
</section>
@endsection
