<!-- 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 no-print">
                            <a class="btn btn-circle btn-icon-only btn-default tooltips" href="{$hosturl}/{$controllname}/show" data-container="body" data-placement="top" data-original-title="عرض المقالات">
                                <i class="icon-list"></i>
                            </a>
                        </div>
                    </div>
                    <div>
                        <input type="hidden" id="articleId" value="{$articleData->id}"/>
                        التعليقات الخاصة بمقال: <p class="form-control-static font-red-sunglo bold">{$articleData->title}</p>
                    </div>
                    <div class="portlet-body">
                        <!-- BEGIN FORM-->
                        <div class="form-body" id="CommentDiv">
                            <div>
                                <input type="button" class="btn green no-print disabled ApproveChecked" id="ApproveChecked" data-action='approveChecked' data-link="{$controllname}" value="موافقة للكل"/>
                                <input type="button" class="btn red no-print disabled ApproveChecked" id="refuseChecked" data-action='refuseChecked' data-link="{$controllname}" value="رفض الكل"/>
                                <!--<a href="{$hosturl}/{$controllname}/approveComment/{$articleData->id}" class="btn green no-print"><i class="fa fa-check"></i>موافقة للكل</a>-->
                            </div>
                            <table class="table" id="custom_tbl_dt">
                                <thead>
                                    <tr>
                                        <th><input type="checkbox" class="checkComment" id="checkAllComment" name="commentCheck" value="{$comment.id}" /></th>
                                        <th>المعلِّق</th>
                                        <th>التعليق</th>
                                        <th>الموافقة</th>
                                        <th>حذف التعليقات</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {foreach $allComments as $comment}
                                    <tr>
                                        <td><input type="checkbox" class="checkComment" id="commentCheck" name="commentCheck" value="{$comment.id}" /></td>
                                        <td>{$comment->username}</td>
                                        <td>{$comment->comment}</td>
                                        <td>
                                            <a class="btn {if $comment->approved eq 0}red{else}green{/if} btn-xs approveComment" data-ishide="{if $comment->approved eq 0}0{else}1{/if}" data-id="{$comment->id}" data-link="{$controllname}"><i class="fa {if $comment->approved eq 0}fa-ban{else}fa-check{/if}"></i>
                                            {if $comment->approved eq 0}مرفوض{else}موافق{/if}
                                            </a>
                                        </td>
                                        <td><a href="javascript:;" class="btn red delComment"  data-id="{$comment->id}" data-link="{$controllname}" data-action="delComment" ><i class="fa fa-trash"></i>حذف</a></td>
                                    </tr>
                                    {/foreach}
                                </tbody>
                            </table>
                        </div>

                        <div class="form-actions">
                            <div class="row">
                                <div class="col-md-offset-3 col-md-4">
                                    

                                   <!-- <a href="javascript:;" class="btn blue printit no-print" >طباعة</a>-->
                                </div>
                            </div>
                        </div>
                        <!-- END FORM-->
                    </div>
                </div>
            </div>
        </div>
        <!-- END PAGE CONTENT-->
    </div>
</div>
<!-- END CONTENT -->
