
<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">
                <h3 class="panel-title">استلام منتج</h3>
            </div>
            <div class="panel-body">
                <form class="form-horizontal rentform" action="?do=isreceive" method="post" id="rentform">

                    <input type="hidden" value="{$billpro->id}" name="proid"/>
                    <div class="form-group">
                        <label class="col-lg-2 control-label">اسم منتج</label>
                        <div class="col-lg-4"> {$billpro->productname}
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-lg-2 control-label">اسم عميل</label>
                        <div class="col-lg-4"> {$billpro->clientname}
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-lg-2 control-label">النوع</label>
                        <div class="col-lg-4"> {if $billpro->type eq 0}داخلى{else}خارجي{/if}
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-lg-2 control-label">العدد</label>
                        <div class="col-lg-4"> {$billpro->amount}
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-lg-2 control-label">تاريخ البدايه</label>
                        <div class="col-lg-4"> {$billpro->startdate}
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-lg-2 control-label">تاريخ النهايه</label>
                        <div class="col-lg-4"> {$billpro->enddate}
                        </div>
                    </div>

                    <input value="{if $smarty.now|date_format:"%Y-%m-%d" > $billpro->enddate}1{else}0{/if}"  name="isdelay" type="hidden" />

                    {if $billpro->type eq 1}

                    <div class="form-group">
                        <label class="col-lg-2 control-label">المورد</label>
                        <div class="col-lg-4"> {$billpro->suppliername}
                        </div>
                    </div>


                    {/if}

                    {if $smarty.now|date_format:"%Y-%m-%d" > $billpro->enddate}
                    <div class="form-group">
                        <label class="col-lg-2 control-label">تكلفه التاخير</label>
                        <div class="col-lg-4">
                            <div class="input-group">
                                <input type="text" name="delayvalue" id="delayvalue" class="numberinput form-control" required="" number="true"/>
                                <span class="input-group-addon">{$currency}</span> </div>
                        </div>
                    </div>

                    <div class="form-group ">
                        <label class="col-lg-2 control-label">النوع</label>
                        <div class="col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input value="1"  class="radioR" name="delaytype" type="radio" />

                                    اجل </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input value="0"  class="noradioR" checked="checked" name="delaytype"  type="radio" />
                                    كاش </label>
                            </div>

                        </div>
                    </div>

                    {/if}



                    <!--==============================-->

                    <div class="form-group">
                        <div class="col-lg-offset-2 col-lg-4">
                            <button name="btnAddRent" type="submit" id="btnAddRent" class="btn btn-primary pull-left">استلام</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
