<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#">متابعة العملاء</a></li>
            <li><a href="#">العملاء</a></li>
            <li class="active">  التعليقات</li>
        </ol>
        <div class="panel panel-default panel-m">
            <!-- Default panel contents -->
            <!-- Default panel contents -->

            <div class="panel panel-default panel-m">
                <div class="panel-heading" style="padding:5px 15px 15px">
                    <h3 class="panel-title" style="display: inline-block;">عرض التعليق</h3>
                    <a href="{$youtubes[278]->url}" target="_blank" class="hidden-print"><img src="../views/default/assets/img/youtube.png" class="pull-left" alt="Youtube" style="width: 2%;"></a>
                    <a href="comentclientController.php"><input type="button"  id="submit" style="margin-left: 12px" class="btn btn-primary pull-left" value="إضافة جديد"/></a>
                </div>


            <!--<div class="panel-heading">عرض التعليق   </div>-->
            <div class="panel-body">


                <form class="form-inline hidden-print" method="post" action="?do=show">
                    <div class="form-group">
                        <label class="sr-only">من التاريخ</label>
                        <input type="text" class="form-control awdatepicker" autocomplete="off"   data-date-format="yyyy-mm-dd" name="from" >
                    </div>
                    <div class="form-group">
                        <label class="sr-only">إلى التاريخ</label>
                        <input type="text" class="form-control awdatepicker" autocomplete="off"   data-date-format="yyyy-mm-dd" name="to" >
                    </div>
                    <button type="submit" class="btn btn-primary">بحث</button>
                </form>
                <hr/>



                <table class="table table-black" id="commentsclient">
                    <thead>
                    <tr bgcolor="">
                        <th style="text-align: center;width: 100px">الرقم</th>
                        <th style="text-align: center;width: 100px">اسم العميل</th>
                        <th style="text-align: center;width: 100px"> التاريخ</th>
                        <th style="text-align: center;width: 100px"> المستخدم</th>
                        <th style="text-align: center;width: 500px"> التعليق الاخير</th>
                        {if $Programsettingdata->commentClientChasis eq 1}
                        <th style="text-align: center;width: 100px">الشاسيه</th>
                        {/if}
                    </tr>
                    </thead>
                    <tbody>

                    {foreach $comments as $comment}
                    <tr  >
                        <td>{$comment->id}</td>
                        <td>{$comment->clientname}</td>

                        <td>{$comment->commentdate}</td>
                        <td>{$comment->username}</td>
                        <td>{$comment->comments}</td>
                        {if $Programsettingdata->commentClientChasis eq 1}
                        <td>{$comment->chasis}</td>
                        {/if}
                    </tr>
                    {/foreach}

                </table>

            </div>
        </div>
    </div>
</div>