<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
    <div class="page-content">
        <!-- BEGIN PAGE HEADER-->
        <h3 class="page-title">
            {$shcontrollname}
        </h3>
        <div class="page-bar">
            <ul class="page-breadcrumb">
                {$breadcrumbs}
            </ul>
        </div>
        <!-- END PAGE HEADER-->
        <!-- BEGIN PAGE CONTENT-->
        <div class="row">
            <div class="col-md-12">
                <div class="portlet light bg-inverse">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="icon-equalizer font-red-sunglo"></i>
                            <span class="caption-subject font-red-sunglo bold uppercase">العرض في {$shcontrollname}</span>
                        </div>
                        <div class="actions" id="nestable_list_menu">
<!--                            <a class="btn default btn-xs blue tooltips" href="{$hosturl}/{$controllname}" data-container="body" data-placement="top" data-original-title="إضافة جديد">
                                <i class="fa  fa-plus"></i>
                                إضافة جديد
                            </a>-->
                            <a class="btn default btn-xs red tooltips disabled deleteAppSelected" data-link="{$controllname}" data-container="body" data-placement="top" data-original-title="حذف" id="deleteBtn" >
                                <i class="fa fa-trash"></i>
                                حذف
                            </a>
                        </div>
                    </div>
                    <div class="portlet-body form">
                        <div class="form-group">
                            <label class="col-md-1 control-label">من  </label>
                            <div class="col-md-2">
                                <input type="text" class="form-control date-picker searchDate" readonly data-date-format="yyyy-mm-dd" id='fromDate' value="{$today}"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-1 control-label">إلى  </label>
                            <div class="col-md-2">
                                <input type="text" class="form-control date-picker searchDate" readonly data-date-format="yyyy-mm-dd" id='toDate' value="{$today}"/>
                            </div>
                        </div>
                        <form id='showForm' method='post' action="{$hosturl}/{$controllname}/del">
                            <table class="table table-hover" id="custom_tbl_dt">
                                <thead>
                                    <tr>
                                        <th style="width:8px;"><input type="checkbox" name="checkAll" id="checkAll" /></th>
                                        <th>#</th>
                                        <th>الاسم</th>
                                        <th>تاريخ التقديم</th>
                                        <th>الوظيفة</th>
                                        <th>الهاتف</th>
                                        <th>الجنسية</th>
                                        <th>المؤهل الدراسي:</th>
                                        <th>التفاصيل</th>
                                        <th>تعديل</th>
                                        <th>حذف</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {foreach $allApplicants as $single}
                                    <tr class="odd gradeX">
                                        <td>
                                            <input type="checkbox" class="checkItem" id="{$single@iteration}" name="choosedItem[]" value="{$single.id}" data-extra="{$single.name}" />
                                        </td>
                                        <td>{$single@iteration}</td>
                                        <td>{$single->name}</td>
                                        <td>{$single->adate}</td>
                                        <td>{$single->job}</td>
                                        <td> {$single->phone} </td>
                                        <td> {$single->nationality} </td>
                                        <td> {$single->edu}</td>
                                        <td>
                                            <a href="{$hosturl}/{$controllname}/details/{$single->id}" class=""><i class="fa fa-indent"></i> </a>
                                        </td>
                                        <td>
                                            <a href="{$hosturl}/{$controllname}/edit/{$single.id}" class=""><i class="fa fa-pencil-square-o"></i> </a>
                                        </td>
                                        <td>
                                            <a class="deletemsg" data-id="{$single.id}" data-link="{$controllname}"><i class="fa fa-trash"></i> </a>
                                        </td>
                                    </tr>
                                    {/foreach}
                                </tbody>
                            </table>
                        </form>

                    </div>
                </div>
            </div>
        </div>
        <!-- END PAGE CONTENT-->
    </div>
</div>
<!-- END CONTENT -->

<!-- Message Modal -->
<div id="msgModal" class="modal fade" tabindex="-1" data-width="860">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
        <h4 class="modal-title">ارسال رساله</h4>
    </div>
    <form action="{$hosturl}/registerInfo/sendMsg" method="post" id="msgForm">
        <div class="modal-body">
            <div class="row">
                <input class="form-control" type="hidden" name="userid" id="userid">
                <div class="col-md-6">
                    <h4>عنوان الرسالة</h4>
                    <input class="form-control" type="text" name="title" required minlength="3" maxlength="30">
                </div>
                <div class="col-md-12">
                    <h4>محتوى الرسالة</h4>
                    <textarea class="form-control" rows="5" name="msg" required minlength="10"></textarea>
                </div>
            </div>
        </div>
        <div class="modal-footer">
            <button type="button" data-dismiss="modal" class="btn btn-outline dark closemodal">اغلاق</button>
            <button type="submit" class="btn green" id="msgUser">ارسال الرساله</button>
        </div>
    </form>
</div>
<!-- End Message Modal -->