<?php /* Smarty version Smarty-3.1.11, created on 2023-12-09 23:46:29
         compiled from "../views/default/suppliersAndProductsReportview/show.html" */ ?>
<?php /*%%SmartyHeaderCode:20409624116574e0358f02b7-17408646%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '97b94dcc02874986d64e2fd856d81c71ab64a8a2' => 
    array (
      0 => '../views/default/suppliersAndProductsReportview/show.html',
      1 => 1693979930,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '20409624116574e0358f02b7-17408646',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'youtubes' => 0,
    'Programsettingdata' => 0,
    'suppliersData' => 0,
    's' => 0,
    'message' => 0,
    'productId' => 0,
    'productIDS' => 0,
    'arrayAlso' => 0,
    'pro' => 0,
    'hidecat' => 0,
    'i' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_6574e036036456_58785072',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6574e036036456_58785072')) {function content_6574e036036456_58785072($_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[78]->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="suppliersAndProductsReportController.php?do=all" 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 wdt300"  name="supplierId" id="supplierId" >
                            <option value="-1">اختر مورد</option>

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

                            <option value="<?php echo $_smarty_tpl->tpl_vars['s']->value->supplierid;?>
"><?php echo $_smarty_tpl->tpl_vars['s']->value->suppliername;?>
 </option>

                            <?php } ?>

                        </select>
                    </div>
                    <br/>
                    <div class="form-group">
                        <label class="sr-only">المنتجات</label>
                        <!--input type="hidden" class="select2product "  name="productId" id="productId" data-placeholder="اختر منتج"  /-->

                        <input type="hidden" class="select2product wdt300"  name="productId" id="productId" data-placeholder="اختر منتج"  />

                    </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;?>
.<?php echo $_smarty_tpl->tpl_vars['productId']->value;?>
</div>
                <div class="panel-body">
                    <table class="table table-black dataTableClass">
                         <thead>
                            <tr>
                                <th>اسم  المورد</th>
                                <th>اسم المنتج</th>
                               <!--  <th>وحدة القياس</th> -->
                                <th>خصم البيع</th>
                                <th>الكميه الحاليه</th>
                                <th> العدد </th>
                                <th>سعر </th>
<!--                                 <th>نوع السعر</th>
 -->                                <th>التاريخ</th>
                                <th class="hidden-print">الفاتورة</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
                            <?php  $_smarty_tpl->tpl_vars['productId'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['productId']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['productIDS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['productId']->key => $_smarty_tpl->tpl_vars['productId']->value){
$_smarty_tpl->tpl_vars['productId']->_loop = true;
?>
                            <?php  $_smarty_tpl->tpl_vars['arrayAlso'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['arrayAlso']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['dataArray_'.($_smarty_tpl->tpl_vars['productId']->value)]->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['arrayAlso']->key => $_smarty_tpl->tpl_vars['arrayAlso']->value){
$_smarty_tpl->tpl_vars['arrayAlso']->_loop = true;
?>
                            <?php  $_smarty_tpl->tpl_vars['pro'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['pro']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['arrayAlso']->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 <?php if ($_smarty_tpl->tpl_vars['pro']->value->billtypes==0){?> style="background: #85ff85" <?php }elseif($_smarty_tpl->tpl_vars['pro']->value->billtypes==1){?>  style="background: #9f9ffb" <?php }else{ ?> style="background: #ff6868" <?php }?>>
                                   <td><?php echo $_smarty_tpl->tpl_vars['pro']->value->suppliername;?>
</td>
                                <td><?php echo $_smarty_tpl->tpl_vars['pro']->value->productName;?>

                                    <?php if ($_smarty_tpl->tpl_vars['hidecat']->value==1){?>
                                    /<?php echo $_smarty_tpl->tpl_vars['pro']->value->productCatName;?>

                                    <?php }?></td>
                                <!-- <td><?php echo $_smarty_tpl->tpl_vars['pro']->value->unitName;?>
</td> -->
                                <td><?php echo $_smarty_tpl->tpl_vars['pro']->value->discounts;?>
</td>
                                <td><?php echo $_smarty_tpl->tpl_vars['pro']->value->productquantity;?>
</td>
                                <td><?php echo $_smarty_tpl->tpl_vars['pro']->value->quantitys;?>
</td>
                                <td><?php echo $_smarty_tpl->tpl_vars['pro']->value->buybilldetailprice;?>
</td>
                                <!--          <td><?php if ($_smarty_tpl->tpl_vars['pro']->value->pricetype==0){?>جملة <?php }else{ ?>تجزئة<?php }?></td>
                                -->          <td><?php echo $_smarty_tpl->tpl_vars['pro']->value->buybilldate;?>
</td>

                                <td>
                                    <?php if ($_smarty_tpl->tpl_vars['pro']->value->billtypes==0){?>
                                    <a href="buyBillController.php?do=details&id=<?php echo $_smarty_tpl->tpl_vars['pro']->value->buybillid;?>
" type="button" class="btn btn-default btn-lg notesicon" target="_blank"></a>
                                    <?php }elseif($_smarty_tpl->tpl_vars['pro']->value->billtypes==1){?>
                                    <a href="buyBillController.php?do=details&id=<?php echo $_smarty_tpl->tpl_vars['pro']->value->buybillid;?>
" type="button" class="btn btn-default btn-lg notesicon" target="_blank"></a>
                                    <?php }else{ ?>
                                    <a href="returnBuyBillController.php?do=details&id=<?php echo $_smarty_tpl->tpl_vars['pro']->value->buybillid;?>
" type="button" class="btn btn-default btn-lg notesicon" target="_blank"></a>
                                    <?php }?>
                                </td>
                            </tr>
                            <?php } ?>
                            <?php } ?>
                            <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'i', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                            <?php } ?>


                        </tbody>

                    </table>

                    <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>
<?php }} ?>