<?php /* Smarty version Smarty-3.1.11, created on 2025-02-10 11:46:19
         compiled from "../views/default/catsellrateReportview/show.html" */ ?>
<?php /*%%SmartyHeaderCode:93305493167a9caeb6e6af8-93296165%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e837ffe15b24c8963a32a63516f092ba8f898034' => 
    array (
      0 => '../views/default/catsellrateReportview/show.html',
      1 => 1699463726,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '93305493167a9caeb6e6af8-93296165',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'youtubes' => 0,
    'Programsettingdata' => 0,
    'catData' => 0,
    'data' => 0,
    'catid' => 0,
    'numberid' => 0,
    'startDate' => 0,
    'endDate' => 0,
    'message' => 0,
    'newarray' => 0,
    'pro' => 0,
    'totalnumofsells' => 0,
    'returnquantity' => 0,
    'totalsellprice' => 0,
    'currency' => 0,
    'numofsellproduct' => 0,
    'totalreturnprice' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_67a9caeb7c63a2_82957562',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_67a9caeb7c63a2_82957562')) {function content_67a9caeb7c63a2_82957562($_smarty_tpl) {?><style>
    .myresult {
        -webkit-print-color-adjust: exact;
    }
</style>

<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#">التقارير</a></li>
            <li class="active"> تقرير المنتجات الراكدة فى التصنيفات</li>
        </ol>
        <div class="panel panel-default panel-m">
            <!-- Default panel contents -->
            <div class="panel-heading"> تقرير المنتجات الراكدة فى التصنيفات
                <a href="<?php echo $_smarty_tpl->tpl_vars['youtubes']->value[75]->url;?>
" target="_blank" class="hidden-print"><img
                        src="../views/default/assets/img/youtube.png" class="pull-left" alt="Youtube"
                        style="width: 2%;"></a>
            </div>
            <div class="panel-body">
                <form class="form-inline hidden-print" action="catsellrateReportController.php?do=show" method="post">
                    <input type="hidden" name="searchvalue" id="searchvalue"
                        value="<?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->searchvalue;?>
" />


                    <div class="form-group wdt300">
                        <label class="sr-only ">التصنيفات</label>
                        <select data-placeholder="اختر تصنيف المنتج" class="select2 wdt200" name="catid" id="catid">
                            <option value="-1">اختر تصنيف</option>

                            <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['catData']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value){
$_smarty_tpl->tpl_vars['data']->_loop = true;
?>
                            <option value="<?php echo $_smarty_tpl->tpl_vars['data']->value->productCatId;?>
" <?php if ($_smarty_tpl->tpl_vars['catid']->value==$_smarty_tpl->tpl_vars['data']->value->productCatId){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['data']->value->productCatName;?>
</option>
                            <?php } ?>


                        </select>

                    </div>

                    <div class="form-group"><span id="sprytextfield1">
                            <label class="sr-only">عدد المبيعات</label>
                            <input name="numberid" class="positiveNo" type="text" id="numberid" value="<?php echo $_smarty_tpl->tpl_vars['numberid']->value;?>
"/>
                            <span class="textfieldRequiredMsg">***.</span></span>
                    </div>


                    <br />
                    <div class="form-group"><span id="sprytextfield2">
                            <label class="sr-only">من التاريخ</label>
                            <input type="text" class="form-control awdatepicker" autocomplete="off"
                                data-date-format="yyyy-mm-dd" name="from" value="<?php echo $_smarty_tpl->tpl_vars['startDate']->value;?>
">
                            <span class="textfieldRequiredMsg">***.</span></span>
                    </div>
                    <div class="form-group"><span id="sprytextfield3">
                            <label class="sr-only">إلى التاريخ</label>
                            <input type="text" class="form-control awdatepicker" autocomplete="off"
                                data-date-format="yyyy-mm-dd" name="to" value="<?php echo $_smarty_tpl->tpl_vars['endDate']->value;?>
">
                            <span class="textfieldRequiredMsg">***.</span></span>
                    </div>
                    <button type="submit" class="btn btn-primary">بحث</button>
                </form>
            </div>

            <div class="panel panel-default panel-m">
                <!-- Default panel contents -->
                <div class="panel-heading"><?php echo $_smarty_tpl->tpl_vars['message']->value;?>
</div>
                <div class="panel-body">
                    <hr />
                    <table class="table table-black">
                        <thead>
                            <tr>
                                <th>اسم المنتج</th>
                                <th> الكميه المباعه</th>
                                <th> الكميه المردوده</th>
                                <th> الكميه</th>


                            </tr>
                        </thead>
                        <tbody>


                            <?php  $_smarty_tpl->tpl_vars['pro'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['pro']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['newarray']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['pro']->key => $_smarty_tpl->tpl_vars['pro']->value){
$_smarty_tpl->tpl_vars['pro']->_loop = true;
?>
                            <tr>
                                <td><?php echo $_smarty_tpl->tpl_vars['pro']->value->productName;?>

                                    /<?php echo $_smarty_tpl->tpl_vars['pro']->value->productCatName;?>

                                </td>

                                <td><?php echo $_smarty_tpl->tpl_vars['pro']->value->sellquantity;?>
</td>
                                <?php if (!empty($_smarty_tpl->tpl_vars['pro']->value->returnquantity)){?>
                                <td><?php echo $_smarty_tpl->tpl_vars['pro']->value->returnquantity;?>
</td>
                                <?php }else{ ?>
                                <td>0</td>
                                <?php }?>
                                <?php if (!empty($_smarty_tpl->tpl_vars['pro']->value->sellandreturn)){?>
                                <td><?php echo $_smarty_tpl->tpl_vars['pro']->value->sellandreturn;?>
</td>
                                <?php }else{ ?>
                                <td>0</td>
                                <?php }?>


                                <!--<td><a href="<?php echo $_smarty_tpl->tpl_vars['pro']->value->controlnname;?>
?do=editprint&id=<?php echo $_smarty_tpl->tpl_vars['pro']->value->sellid;?>
" type="button" class="btn btn-default btn-lg notesicon"></a></td>-->
                            </tr>

                            <?php } ?>


                        </tbody>

                    </table>
                    <div style="width:100%">
                        <!------------------>
                        <div class="col-lg-offset-8 col-lg-4">

                            <div class="well well-sm">

                                <h4 class="text-center" id="vvv">اجمالى المبيعات <?php echo $_smarty_tpl->tpl_vars['totalnumofsells']->value;?>
 </h4>

                            </div>

                        </div>

                        <!--------------->
                        <!-- <div class="col-lg-offset-4 col-lg-4">

                        <div class="well well-sm">

                          <h4 class="text-center">اجمالى المردودات <?php echo $_smarty_tpl->tpl_vars['returnquantity']->value;?>
</h4>

                        </div>

                      </div>-->

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

                        <!-- <div class="col-lg-offset-12 col-lg-4">

                        <div class="well well-sm">

                          <h4 class="text-center">سعر المبيعات <?php echo $_smarty_tpl->tpl_vars['totalsellprice']->value;?>
 <?php echo $_smarty_tpl->tpl_vars['currency']->value;?>
</h4>

                        </div>

                      </div>-->

                        <!--------------->
                        <!--<div class="col-lg-offset-4 col-lg-4">

                       <div class="well well-sm">

                         <h4 class="text-center">الاجمالى العام للمبيعات <?php echo $_smarty_tpl->tpl_vars['numofsellproduct']->value;?>
 قطعه</h4>

                       </div>

                     </div>
                        -->
                        <!--------------->
                        <!--  <div class="col-lg-offset-0 col-lg-4">

                         <div class="well well-sm">

                           <h4 class="text-center">سعر  المردودات <?php echo $_smarty_tpl->tpl_vars['totalreturnprice']->value;?>
 <?php echo $_smarty_tpl->tpl_vars['currency']->value;?>
</h4>

                         </div>

                       </div>-->
                        <!---------------------->

                    </div>

                    <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 hidden-print">طباعة</button>
                                </div>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>

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

        
        <script>

            var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "real");//, {validateOn: ["blur", "change"]}
            var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2", "none");//, {validateOn: ["blur", "change"]}
            var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3", "none");//, {validateOn: ["blur", "change"]}
        </script>
        <?php }} ?>