<?php /* Smarty version Smarty-3.1.11, created on 2023-11-07 23:44:37
         compiled from "../views/default/profitproductview/sallesProductCat.html" */ ?>
<?php /*%%SmartyHeaderCode:1202964504654aafc53fcde1-20780967%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '8fd55ae673582b5a198792a4bdd6ae89d87cb10b' => 
    array (
      0 => '../views/default/profitproductview/sallesProductCat.html',
      1 => 1693253994,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1202964504654aafc53fcde1-20780967',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'message' => 0,
    'youtubes' => 0,
    'Programsettingdata' => 0,
    'itr' => 0,
    'j' => 0,
    'storeData' => 0,
    'store' => 0,
    'myallstor' => 0,
    'productsArr' => 0,
    'pro' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_654aafc5539c82_41903499',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_654aafc5539c82_41903499')) {function content_654aafc5539c82_41903499($_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><a href="productmovmentController.php?do=show">تقرير   حركة المخازن مفصل</a></li>
            <li class="active">عرض التقرير</li>
        </ol>
        <div class="panel panel-default panel-m">
            <!-- Default panel contents -->
            <?php if ($_smarty_tpl->tpl_vars['message']->value!=''){?>
            <div class="panel-heading"><?php echo $_smarty_tpl->tpl_vars['message']->value;?>

                <a href="<?php echo $_smarty_tpl->tpl_vars['youtubes']->value[115]->url;?>
" target="_blank" class="hidden-print"><img src="../views/default/assets/img/youtube.png" class="pull-left" alt="Youtube" style="width: 2%;"></a>
            </div>
            <?php }else{ ?>
            <div class="panel-heading">تقرير   حركة المخازن مفصل
                <a href="<?php echo $_smarty_tpl->tpl_vars['youtubes']->value[115]->url;?>
" target="_blank" class="hidden-print"><img src="../views/default/assets/img/youtube.png" class="pull-left" alt="Youtube" style="width: 2%;"></a>
            </div>
            <?php }?>
            <div class="panel-body">
                <form class="form-inline hidden-print" action="salesNumbersReport.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">
                        <label class="sr-only">تصنيفات المنتج</label>
                        <select class="select2 wdt100"  name="productCatId" id="productCatId"  >
                            <option value="-1">اختر تصنيف</option>
                            <!--option value="all">كل الأصناف</option-->


                            <?php $_smarty_tpl->tpl_vars['j'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['j']->step = 1;$_smarty_tpl->tpl_vars['j']->total = (int)ceil(($_smarty_tpl->tpl_vars['j']->step > 0 ? $_smarty_tpl->tpl_vars['itr']->value+1 - (0) : 0-($_smarty_tpl->tpl_vars['itr']->value)+1)/abs($_smarty_tpl->tpl_vars['j']->step));
if ($_smarty_tpl->tpl_vars['j']->total > 0){
for ($_smarty_tpl->tpl_vars['j']->value = 0, $_smarty_tpl->tpl_vars['j']->iteration = 1;$_smarty_tpl->tpl_vars['j']->iteration <= $_smarty_tpl->tpl_vars['j']->total;$_smarty_tpl->tpl_vars['j']->value += $_smarty_tpl->tpl_vars['j']->step, $_smarty_tpl->tpl_vars['j']->iteration++){
$_smarty_tpl->tpl_vars['j']->first = $_smarty_tpl->tpl_vars['j']->iteration == 1;$_smarty_tpl->tpl_vars['j']->last = $_smarty_tpl->tpl_vars['j']->iteration == $_smarty_tpl->tpl_vars['j']->total;?>

                            <option value="<?php echo $_smarty_tpl->tpl_vars['parentId'.($_smarty_tpl->tpl_vars['j']->value)]->value;?>
"><?php echo $_smarty_tpl->tpl_vars['names'.($_smarty_tpl->tpl_vars['j']->value)]->value;?>
 </option>

                            <?php }} ?>


                        </select>
                    </div>
                    <br>
                    <div class="form-group">
                        <label class="sr-only">المخزن</label>
                        <br>
                        <select class="select2 wdt300"  name="storeId" id="storeId">
                            <option value="-1">اختر مخزن</option>
                            <option value="0"> كل المخازن</option>

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



                            <option value="<?php echo $_smarty_tpl->tpl_vars['store']->value->storeId;?>
"><?php echo $_smarty_tpl->tpl_vars['store']->value->storeName;?>
</option>

                            <?php } ?>


                        </select>
                    </div>


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

            <table class="table table-black">
                <thead>
                    <!--<tr><th colspan="5" style="text-align:center;background:#CCCCCC ;"><?php echo $_smarty_tpl->tpl_vars['myallstor']->value->storeName;?>
</th></tr>-->
                    <tr>
                        <th style="text-align:center">اسم المنتج</th>

                        <th style="text-align:center">الوارد</th>
                        <th style="text-align:center">الصادر  </th>
                        <th style="text-align:center"> الصافى</th>
                        <th style="text-align:center"> الرصيد</th>

                    </tr>
                </thead>
                <?php  $_smarty_tpl->tpl_vars['pro'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['pro']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['productsArr']->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;
?>

                <tbody>
                    <tr>
                        <td style="text-align:center"><?php echo $_smarty_tpl->tpl_vars['pro']->value['productName'];?>
</td>
                        <td style="text-align:center"><?php echo $_smarty_tpl->tpl_vars['pro']->value['plusQuantity'];?>
</td>
                        <td style="text-align:center"><?php echo $_smarty_tpl->tpl_vars['pro']->value['minQuantity'];?>
</td>
                        <td  style="text-align:center"> <?php echo $_smarty_tpl->tpl_vars['pro']->value['diff'];?>
</td>
                        <td  style="text-align:center"> <?php echo $_smarty_tpl->tpl_vars['pro']->value['productquantity'];?>
</td>

                    </tr>
                </tbody>
                <?php } ?>

            </table>




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