
<div class="row">
    <div class="container">

        <ol class="breadcrumb">
            <li><a href="#">شركات التأمين  </a></li>
            <li><a href="insurancecompany.php?do=">عرض شركات التأمين  </a></li>
            <li class="active">عرض شركات التأمين  </li>
        </ol>




        <div class="panel panel-default panel-m">
            <!-- Default panel contents -->
            <div class="panel-heading">عرض شركات التأمين</div>
            <div class="panel-body">




            </div>
            <hr/>



            <table class="table table-black">
                <thead>
                    <tr>
                        <th>م</th>
                        <th>الاسم</th>
                        <th>الحالة </th>
                        <th class="hidden-print">تعديل</th>
                        <th class="hidden-print"> حذف</th>

                    </tr>
                </thead>
                <tbody>



                    {assign var=i value=1}
                    {foreach $insuranceCompanies as $company}


                    {if $company->deleted eq 1}
                    <tr class="danger"> {elseif {$company->deleted} eq 0}
                    <tr> {/if}


                        <td>{$i}</td>
                        <td>{$company->name}</td>

                        {if $company->deleted eq 1}
                        <td>
                            محذوف
                        </td>
                        <td class="hidden-print">
                            --
                        </td>
                        <td class="hidden-print">
                            --
                        </td>
                        {else if $company->deleted eq 2}
                        <td>
                            غير سار
                        </td>
                        <td class="hidden-print">
                            <a href="insurancecompany.php?do=edit&id={$company->id}" class="btn btn-default btn-lg editicon"></a>
                        </td>
                        <td class="hidden-print">

                            <a href="insurancecompany.php?do=delete&id={$company->id}" name="dd" type="button"
                               class="btn btn-default btn-lg deleteicon conformdel1" data-position="insurancecompany.php?do=delete&id={$company->id}" ></a>


                        </td>



                        {else}
                        <td>
                            سارى
                        </td>
                        <td class="hidden-print">
                            <a href="insurancecompany.php?do=edit&id={$company->id}" class="btn btn-default btn-lg editicon"></a>
                        </td>
                        <td class="hidden-print">

                            <a href="insurancecompany.php?do=delete&id={$company->id}" name="dd" type="button"
                               class="btn btn-default btn-lg deleteicon conformdel1" data-position="insurancecompany.php?do=delete&id={$company->id}" ></a>


                        </td>


                        {/if}





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


                </tbody>
            </table>







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

            <div  class="hidden-print noprint">
                <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  class="noprint">
                <div class="col-lg-12">


                    <div class="form-group">
                        <div class="col-lg-4">

                        </div>
                    </div>

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






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


        </div>



    </div>

</div>




