<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#"> صيانه</a></li>
            <li><a href="typeSupplierController.php?do=show"> نوع المورد </a></li>
            <li class="active"> عرض نوع المورد</li>

        </ol>


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






        <table class="table table-black dataTableClass">
            <thead>
            <tr>
                <th class="hidden-print">
                    <input type="checkbox" name="checkAll" id="checkAll"/></th>
                <th> نوع العميل</th>

                <th>التاريخ</th>

                <th class="hidden-print">تعديل</th>
                <th class="hidden-print"> ايقاف</th>
                <th class="hidden-print"> حذف نهائى</th>
            </tr>
            </thead>
            <tbody>
            {assign var=i value=1}
            {foreach $allbranches as $data}

            {if {$data->conditions} eq 1}
            <tr class="danger"> {elseif {$data->conditions} eq 0}
            <tr class="noprint">{/if}
                <td class="hidden-print">
                    <input type="checkbox" name="choosedItem[]" id="checked{$i}" class="choosenItem" value=""/></td>
                <td>{$data->typeName}</td>
                <td>{$data->typeDate}</td>


                <td class="hidden-print"><a href="typeSupplierController.php?do=edit&id={$data->typeId}" type="button"
                                            class="btn btn-default btn-lg editicon"></a></td>

                <td class="hidden-print"> {if {$data->conditions} eq 0} <a
                        href="typeSupplierController.php?do=tempdelete&id={$data->typeId}" type="button"
                        class="btn btn-default btn-lg removeicon"></a> {elseif {$data->conditions} eq 1 } <a
                        href="typeSupplierController.php?do=returndelete&id={$data->typeId}" type="button"
                        class="btn btn-default btn-lg correcticon"></a> {/if}
                </td>
                <td class="hidden-print"><a href="typeSupplierController.php?do=delete&id={$data->typeId}
                                                  " name="dd" type="button"
                                            class="btn btn-default btn-lg deleteicon conformdel1" data-position=""
                                            onClick="if (confirm(' متأكد انك تريد الحذف ؟') == false)
                                                              return false;"></a></td>

            </tr>
            {assign var="i" value=$i+1}
            {/foreach}

            </tbody>

        </table>

        <div class="clearfix"></div>
        <hr/>


        <div class="hidden-print">
            <div class="col-lg-12">
                <div class="form-group">
                    <div class="col-lg-4">
                        <button type="button" onclick="print_Custom('mycustomheader');" class="btn btn-success pull-right">طباعة
                        </button>
                    </div>
                </div>
            </div>

            <div class="clearfix"></div>
        </div>
    </div>
    <div class="clearfix"></div>

</div>
</div>
