<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 -->
            <div class="panel-heading" style="padding:5px 15px 15px">
                <h3 class="panel-title" style="display: inline-block;"> عرض الموظفين</h3>
                <a href="{$youtubes[169]->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="employeeController.php" class="hidden-print"><input type="button"  id="submit" style="margin-left: 12px" class="btn btn-primary pull-left " value="إضافة جديد"/></a>
            </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" name="txtSearch" id="txtSearch" style="float:right;" >
                    </div>

                    <label for="txtSearch"></label>

                    <button type="submit" class="btn btn-primary">بحث</button>
                </form>
                <hr/>



                <!-- ================================================   -->
                <!-- Nav tabs -->
                <ul class="nav nav-tabs hidden-print">
                    <li class="active"><a href="#tab1" data-toggle="tab">الموظفين</a></li>
                    <li><a href="#tab2" data-toggle="tab"> الموظفين المحذوفين</a></li>
                </ul>
                <!-- =================================================   -->
                <!-- Tab panes -->
                <div class="tab-content">
                    <!-- start tab1 -->
                    <div class="tab-pane active" id="tab1">
                        <table class="table table-black dataTableClass">
                            <thead>
                                <tr bgcolor="">
                                    <th>الرقم</th>
                                    <th>اسم الموظف</th>
                                    <th>اسم المستخدم</th>
                                    <th>تاريخ اضافة الموظف</th>
                                    <th>المرتب</th>


                                    <th class="hidden-print" >حذف </th>
                                    <th class="hidden-print" >تعديل</th>
                                </tr>
                            </thead>
                            <tbody>

                                {foreach $allemployee as $emp}
                                {if $emp->conditions eq 0}
                                <tr  {if $emp->conditions eq 1} class="danger" {else}   {/if}>


                                    <td>{$emp->employeeId}</td>
                                    <td>{$emp->employeeName}</td>
                                    <td>{$emp->username}</td>
                                    <td>{$emp->employeeDate}</td>
                                    <td>{$emp->employeeSalary}</td>


                                    <td class="hidden-print" >
                                        {if $emp->conditions eq 1}
                                        <a href="?do=delete&id={$emp->employeeId}&conditions=0" type="button" class="btn btn-default btn-lg deleteicon"></a>
                                        {else}
                                        <a href="?do=delete&id={$emp->employeeId}&conditions=1" type="button" class="btn btn-default btn-lg deleteicon"></a>
                                        {/if}
                                    </td>
                                    <td class="hidden-print" ><a href="?do=edit&id={$emp->employeeId}" type="button"   class="btn btn-default btn-lg editicon"></a></td>
                                </tr>
                                {/if}
                                {/foreach}

                        </table>



                    </div>
                    <!-- start tab1 -->
                    <div class="tab-pane" id="tab2">
                        <table class="table table-black dataTableClass">
                            <thead>
                                <tr bgcolor="">
                                    <th>الرقم</th>
                                    <th>اسم الموظف</th>
                                    <th>اسم المستخدم</th>
                                    <th>تاريخ اضافة الموظف</th>
                                    <th>المرتب</th>


                                    <th class="hidden-print" >حذف </th>
                                    <th class="hidden-print" >تعديل</th>
                                </tr>
                            </thead>
                            <tbody>

                                {foreach $allemployee as $emp}
                                {if $emp->conditions eq 1}
                                <tr  {if $emp->conditions eq 1} class="danger" {else}   {/if}>


                                    <td>{$emp->employeeId}</td>
                                    <td>{$emp->employeeName}</td>
                                    <td>{$emp->username}</td>
                                    <td>{$emp->employeeDate}</td>
                                    <td>{$emp->employeeSalary}</td>


                                    <td class="hidden-print" >
                                        {if $emp->conditions eq 1}
                                        <a href="?do=delete&id={$emp->employeeId}&conditions=0" type="button" class="btn btn-default btn-lg deleteicon"></a>
                                        {else}
                                        <a href="?do=delete&id={$emp->employeeId}&conditions=1" type="button" class="btn btn-default btn-lg deleteicon"></a>
                                        {/if}
                                    </td>
                                    <td class="hidden-print" ><a href="?do=edit&id={$emp->employeeId}" type="button"   class="btn btn-default btn-lg editicon"></a></td>
                                </tr>
                                {/if}
                                {/foreach}

                        </table>


                    </div>

                </div>



            </div>

        </div>