@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 SMS
                    <div id="templatebar" class="pull-right col-md-6 btn-toolbar">
                        <button class="btn green pull-right" onclick="location.href = 'sms/sent'" type="button">
                            Sent Messages</button>
                        <button class="btn green pull-right" onclick="location.href = 'sms/manualSMSTemplate'" 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" name="myform" id="myform" class="clearfix" action="sms/send" method="post">
                        <label class="control-label">
                            Send SMS 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="">
                            <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">Message</label><br>
                                                            <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="{phone}" onclick="addtext(this);">
                                                                <input type="button" name="myBtn" value="{email}" 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="" id="editor1" name="message" value="" cols="70" rows="10"></textarea>
                        </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 SMS</button>
                        </div>

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