<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#">خصائص عامة</a></li>
            <li><a href="partnerController.php?do=show">الشركاء</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">
                <a href="{$youtubes[6]->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="partnerTransferBetweenController.php" class="hidden-print"><input type="button"
                                                                                           style="margin-left: 12px"
                                                                                           id="submit"
                                                                                           class="btn btn-primary pull-left "
                                                                                           value="إضافة جديد"/></a>
            </div>


            <div class="panel-body">

                <form class="form-inline hidden-print" action="partnerTransferBetweenController.php?do=show"
                      method="post">
                    <div class="form-group">
                        <label class="sr-only">الشريك</label>
                        <select class="select2 wdt100" name="partnerid" id="partnerid">
                            <option value="-1">اختر شريك</option>


                            {foreach $partnerData as $partner}


                            <option value="{$partner->partnerid}">{$partner->partnername}</option>


                            {/foreach}


                        </select>
                    </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="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>
            </div>
            <hr/>


            <div class="clearfix"></div>
            <table class="table table-black">
                <thead>
                <tr>
                    <th>من شريك</th>
                    <th> من الشريك قبل</th>
                    <th> من الشريك بعد</th>
                    <th>الى شريك</th>
                    <th> الى الشريك قبل</th>
                    <th> الى الشريك بعد</th>
                    <th> القيمه</th>
                    <th>التاريخ</th>
                    <!-- <th class="hidden-print">تعديل</th> -->
                    <th class="hidden-print">ايقاف</th>
                </tr>
                </thead>
                <tbody>

                {foreach $partnertransferbetweenData as $partnertransferbetween}
                {if {$partnertransferbetween->conditions} eq 1}
                <tr class="danger"> {elseif {$partnertransferbetween->conditions} eq 0}

                <tr>{/if}

                    <td>{$partnertransferbetween->partneridformname}</td>
                    <td>{$partnertransferbetween->partnerfrombefore}</td>
                    <td>{$partnertransferbetween->partnerfromafter}</td>
                    <td>{$partnertransferbetween->partneridtoname}</td>
                    <td>{$partnertransferbetween->partnertobefore}</td>
                    <td>{$partnertransferbetween->partnertoafter}</td>
                    <td>{$partnertransferbetween->partnervalue}</td>
                    <td>{$partnertransferbetween->partnerdate}</td>
                    <!-- <td class="hidden-print"> {if {$partnertransferbetween->conditions} eq 0} <a href="partnerTransferBetweenController.php?do=edit&partnertransferbetweenid={$partnertransferbetween->partnertransferbetweenid}" type="button" class="btn btn-default btn-lg editicon"></a>{else} محذوف {/if}  </td> -->

                    <td class="hidden-print"> {if {$partnertransferbetween->conditions} eq 0} <a
                            href="partnerTransferBetweenController.php?do=tempdelete&partnertransferbetweenid={$partnertransferbetween->partnertransferbetweenid}"
                            type="button" class="btn btn-default btn-lg removeicon"></a> {else} محذوف {/if}
                    </td>
                </tr>
                {/foreach}


                </tbody>

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


        </div>

        <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>
