<!-- 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 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">
                        <form id='showForm' method='post' action="{$hosturl}/{$controllname}/del">

                            <div class="row">
                                <div class="tabbable tabbable-custom tabbable-noborder ">
                                    <ul class="nav nav-tabs">
                                        <li class="active">
                                            <a href="#tab_setting_1" data-toggle="tab">
                                                <i class="icon-notebook"></i>
                                                شكاوي
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#tab_setting_2" data-toggle="tab">
                                                <i class="icon-crop"></i>
                                                طلبات</a>
                                        </li>
                                        <li>
                                            <a href="#tab_setting_3" data-toggle="tab">
                                                <i class="icon-crop"></i>
                                                مقترحات</a>
                                        </li>
                                    </ul>

                                    <div class="tab-content mysettingrole">
                                        <div class="tab-pane active" id="tab_setting_1">
                                            <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 width="5%"></th>
                                                        <th width="5%"></th>
                                                    </tr>
                                                </thead>
                                                <tbody>
                                                    {assign var=i value=1}
                                                    {foreach $allComplain as $single}
                                                    <tr {if $single->read eq 0}style="background-color: #f3b5b5;"{/if}>
                                                        <td>
                                                            <input type="checkbox" class="checkItem" id="title" name="title" value="{$single->id}" data-extra="{$single->title}" />
                                                        </td>
                                                        <td>
                                                            {$i}
                                                        </td>
                                                        <td>
                                                            {$single.name}
                                                        </td>
                                                        <td>
                                                            {$single.title}
                                                        </td>
                                                        <td>
                                                            {$single.email}
                                                        </td>
                                                        <td>
                                                            {$single.phone}
                                                        </td>
                                                        <td>
                                                            {$single.mdate}
                                                        </td>
                                                        <td>
                                                            <a href="{$hosturl}/{$controllname}/details/{$single.id}" class="btn blue-hoki btn-xs no-print"><i class="fa fa-pencil"></i> بيانات الرساله</a>
                                                        </td>
                                                        <td>
                                                            <a class="btn grey-cascade btn-xs deletemsg no-print" data-id="{$single.id}" data-link="{$controllname}"><i class="fa fa-times"></i> حذف</a>
                                                        </td>
                                                    </tr>
                                                    {capture assign=i}{$i+1}{/capture}
                                                    {/foreach}
                                                </tbody>
                                            </table>
                                        </div>
                                        <div class="tab-pane fade" id="tab_setting_2">
                                            <table class="table table-hover" id="custom_tbl_dt_rep">
                                                <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 width="5%"></th>
                                                        <th width="5%"></th>
                                                    </tr>
                                                </thead>
                                                <tbody>
                                                    {assign var=i value=1}
                                                    {foreach $allRequest as $single}
                                                    <tr {if $single->read eq 0}style="background-color: #f3b5b5;"{/if}>
                                                        <td>
                                                            <input type="checkbox" class="checkItem" id="title" name="title" value="{$single->id}" data-extra="{$single->title}" />
                                                        </td>
                                                        <td>
                                                            {$i}
                                                        </td>
                                                        <td>
                                                            {$single.name}
                                                        </td>
                                                        <td>
                                                            {$single.title}
                                                        </td>
                                                        <td>
                                                            {$single.email}
                                                        </td>
                                                        <td>
                                                            {$single.phone}
                                                        </td>
                                                        <td>
                                                            {$single.mdate}
                                                        </td>
                                                        <td>
                                                            <a href="{$hosturl}/{$controllname}/details/{$single.id}" class="btn blue-hoki btn-xs no-print"><i class="fa fa-pencil"></i> بيانات الرساله</a>
                                                        </td>
                                                        <td>
                                                            <a class="btn grey-cascade btn-xs deletemsg no-print" data-id="{$single.id}" data-link="{$controllname}"><i class="fa fa-times"></i> حذف</a>
                                                        </td>
                                                    </tr>
                                                    {capture assign=i}{$i+1}{/capture}
                                                    {/foreach}
                                                </tbody>
                                            </table>
                                        </div>

                                        <div class="tab-pane fade" id="tab_setting_3">
                                            <table class="table table-hover" id="custom_tbl_dt_rep_tw">
                                                <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 width="5%"></th>
                                                        <th width="5%"></th>
                                                    </tr>
                                                </thead>
                                                <tbody>
                                                    {assign var=i value=1}
                                                    {foreach $allSuggestion as $single}
                                                    <tr {if $single->read eq 0}style="background-color: #f3b5b5;"{/if}>
                                                        <td>
                                                            <input type="checkbox" class="checkItem" id="title" name="title" value="{$single->id}" data-extra="{$single->title}" />
                                                        </td>
                                                        <td>
                                                            {$i}
                                                        </td>
                                                        <td>
                                                            {$single.name}
                                                        </td>
                                                        <td>
                                                            {$single.title}
                                                        </td>
                                                        <td>
                                                            {$single.email}
                                                        </td>
                                                        <td>
                                                            {$single.phone}
                                                        </td>
                                                        <td>
                                                            {$single.mdate}
                                                        </td>
                                                        <td>
                                                            <a href="{$hosturl}/{$controllname}/details/{$single.id}" class="btn blue-hoki btn-xs no-print"><i class="fa fa-pencil"></i> بيانات الرساله</a>
                                                        </td>
                                                        <td>
                                                            <a class="btn grey-cascade btn-xs deletemsg no-print" data-id="{$single.id}" data-link="{$controllname}"><i class="fa fa-times"></i> حذف</a>
                                                        </td>
                                                    </tr>
                                                    {capture assign=i}{$i+1}{/capture}
                                                    {/foreach}
                                                </tbody>
                                            </table>
                                        </div>
                                    </div>
                                </div>
                            </div>

                        </form>

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

<!-- responsive -->
<div id="sendmsg" 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>
    <div class="modal-body">
        <div class="row">
            <div class="col-md-6">
                <h4>المرسل اليه</h4>
                <p>
                    <input class="form-control" type="text" name="sendtoit" readonly=""> </p>
                <input type="hidden" id="msg_id" value=""/>

            </div>
            <div class="col-md-6">
                <h4>عنوان الرساله</h4>
                <p>
                    <input class="form-control" type="text" name="subjectit" minlength="3" maxlength="30"> </p>

            </div>
            <div class="col-md-12">
                <h4>محتوى الرساله</h4>
                <p>
                    <textarea class="form-control" rows="5" name="msgit" minlength="10" maxlength="100"></textarea> </p>

            </div>
        </div>
    </div>
    <div class="modal-footer">
        <button type="button" data-dismiss="modal" class="btn btn-outline dark closemodal">اغلاق</button>
        <button type="button" class="btn green send_btn" id="send_btn">ارسال الرساله</button>
    </div>
</div>


<div id="msgDetail" 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>
    <div class="modal-body" id="msgReply">

    </div>
    <div class="modal-footer">
        <button type="button" data-dismiss="modal" class="btn btn-outline dark closemodal">اغلاق</button>
        <button type="button" class="btn green send_action" id="send_action">ارسال الرساله</button>
    </div>
</div>