<?php /* Smarty version Smarty-3.1.11, created on 2025-02-23 06:42:25
         compiled from "../views/default/settlementstoreview/show.html" */ ?>
<?php /*%%SmartyHeaderCode:110289639567baa731954003-19513691%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'dedf0e06ea073d06a2632128e3f40ff851abac06' => 
    array (
      0 => '../views/default/settlementstoreview/show.html',
      1 => 1740000151,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '110289639567baa731954003-19513691',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'youtubes' => 0,
    'searchinonestore' => 0,
    'storeid' => 0,
    'storedef' => 0,
    'storeData' => 0,
    'store' => 0,
    'Programsettingdata' => 0,
    'message' => 0,
    'storereportData' => 0,
    'storereport' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_67baa7319fc362_85783977',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_67baa7319fc362_85783977')) {function content_67baa7319fc362_85783977($_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="settlementstoreController.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">
                <h3 class="panel-title" style="display: inline-block;">عرض تسويات المخازن</h3>
                <a href="<?php echo $_smarty_tpl->tpl_vars['youtubes']->value[106]->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="settlementstoreController.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="settlementstoreController.php?do=show" method="post">

                    <?php if ($_smarty_tpl->tpl_vars['searchinonestore']->value!=0){?>
                    <div class="form-group">
                        <label class="sr-only">المخزن</label>
                        <input type="hidden" name="storeid" id="storeid"  value="<?php echo $_smarty_tpl->tpl_vars['storeid']->value;?>
">
                       <?php echo $_smarty_tpl->tpl_vars['storedef']->value->storeName;?>

                    </div>
                    <?php }else{ ?>
                    <div class="form-group">
                        <label class="sr-only">المخزن</label>
                        <select class="select2 wdt300"  name="storeid" id="storeid" > 
                            <option value="-1">اختر مخزن</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 if ($_smarty_tpl->tpl_vars['storeid']->value==$_smarty_tpl->tpl_vars['store']->value->storeId){?> selected="selected" <?php }?>><?php echo $_smarty_tpl->tpl_vars['store']->value->storeName;?>
</option>
                            <?php } ?>
                        </select>
                        </div>
                    </div>
                    <?php }?>




                    <div class="form-group">
                        <label class="sr-only">المنتج</label>
                        <input type="hidden" name="searchvalue" id="searchvalue" value="<?php echo $_smarty_tpl->tpl_vars['Programsettingdata']->value->searchvalue;?>
"/>

                        <input type="hidden" class="select2product wdt300"  name="productid" id="productid" data-placeholder="اختر منتج" /><!--onchange="this.form.submit();"-->


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


            


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

                    <?php if (!empty($_smarty_tpl->tpl_vars['storereportData']->value)){?>
                    <table class="table table-black">
                        <thead>
                            <tr>


                                <th>اسم المخزن</th>
                                <th>اسم المنتج</th>
                                <th>اسم العملية</th>
                                <th>الكمية قبل </th>
                                <th>الكمية المتغيرة</th>
                                <th>الكمية بعد</th>
                                <th>التاريخ</th>



                            </tr>
                        </thead>
                        <tbody>




                            <?php  $_smarty_tpl->tpl_vars['storereport'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['storereport']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['storereportData']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['storereport']->key => $_smarty_tpl->tpl_vars['storereport']->value){
$_smarty_tpl->tpl_vars['storereport']->_loop = true;
?>
                            <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['storereport']->value->storereporttype;?>
<?php $_tmp1=ob_get_clean();?><?php if ($_tmp1==1){?>
                            <tr class="danger">
                                <?php }else{?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['storereport']->value->storereporttype;?>
<?php $_tmp2=ob_get_clean();?><?php if ($_tmp2==0){?>
                            <tr>
                                <?php }}?>

                                <td><?php echo $_smarty_tpl->tpl_vars['storereport']->value->storeName;?>
</td>
                                <td><?php echo $_smarty_tpl->tpl_vars['storereport']->value->productName;?>
/<?php echo $_smarty_tpl->tpl_vars['storereport']->value->productCatName;?>
</td>
                                <td><?php echo $_smarty_tpl->tpl_vars['storereport']->value->processname;?>
</td>
                                <td><?php echo $_smarty_tpl->tpl_vars['storereport']->value->productbefore;?>
</td>
                                <td><?php echo $_smarty_tpl->tpl_vars['storereport']->value->productquantity;?>
</td>
                                <td><?php echo $_smarty_tpl->tpl_vars['storereport']->value->productafter;?>
</td>
                                <td><?php echo $_smarty_tpl->tpl_vars['storereport']->value->storereportdate;?>
</td>



                            </tr>
                            <?php } ?>


                        </tbody>
                    </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">طباعة</button>
                                </div>
                            </div>


                        </div>

                        <div class="clearfix"></div>
                    </div>
                    <?php }?>


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







            </div>

        </div>



<?php }} ?>