<?php /* Smarty version Smarty-3.1.11, created on 2025-01-27 15:21:43
         compiled from "../views/default/projectview/report.html" */ ?>
<?php /*%%SmartyHeaderCode:130665789567978867ababc8-23471887%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '36e49c06a743f7479aa0f6edcc5ef12f019b2ae4' => 
    array (
      0 => '../views/default/projectview/report.html',
      1 => 1698516436,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '130665789567978867ababc8-23471887',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'youtubes' => 0,
    'outputString' => 0,
    'txt' => 0,
    'paied' => 0,
    'project' => 0,
    'supplies' => 0,
    'material' => 0,
    'returnMaterial' => 0,
    'incomeData' => 0,
    'expenses' => 0,
    'supplierdebtchangeamountto' => 0,
    'operation' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_67978867b2f306_46896864',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_67978867b2f306_46896864')) {function content_67978867b2f306_46896864($_smarty_tpl) {?>

<div class="row">
    <div class="container">

        <ol class="breadcrumb">
            <li><a href="#">المشروعات</a></li>
            <li><a href="projectReportController.php"> تقرير المشروعات</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[241]->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">


                <div id="outputString" class="alert alert-block alert-success fade in" style="display:none">
                    <button type="button" class="close pull-left" data-dismiss="alert" aria-hidden="true">&times;</button>

                    <p id="outputStringValue"><?php echo $_smarty_tpl->tpl_vars['outputString']->value;?>
</p>

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



            </div>
            <hr/>
            <form class="form-inline hidden-print " action="projectReportController.php?do=search" method="post">
                <div class="form-group">

                    <label class="sr-only">اسم المشروع</label>
                    <input type="hidden" name="searchvalue" id="searchvalue" value="0"/>
                    <input type="text" name="projectId" id="projectId"   class="select2product wdt100"  data-placeholder="اختر مشروع" />


                </div>
                <button type="submit" class="btn btn-primary">بحث</button>
            </form>

            <?php if (!empty($_smarty_tpl->tpl_vars['txt']->value)){?>
            <table class="table table-black">
                <thead>
                    <tr>
                        <th></th>
                        <th>إيرادات</th>
                        <th></th>
                        <th> مصروفات</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td >مدفوعات للمشروع</td>
                        <td >
                            <?php echo $_smarty_tpl->tpl_vars['paied']->value;?>
<br/>
                            <?php if ($_smarty_tpl->tpl_vars['paied']->value>0){?><a href="clientPayedDeptController.php?do=show&proid=<?php echo $_smarty_tpl->tpl_vars['project']->value->clientid;?>
" target="_blank">التفاصيل</a><?php }?>
                        </td>
                        <td>بضاعة للمشروع</td>
                        <td>
                            <?php echo $_smarty_tpl->tpl_vars['supplies']->value;?>
<br/>
                            <?php if (!empty($_smarty_tpl->tpl_vars['material']->value)){?>
                            <a href="projectoperationController.php?do=show&proid=<?php echo $_smarty_tpl->tpl_vars['project']->value->id;?>
" target="_blank">تفاصيل صرف مواد</a> 
                            <?php }?>

                            <?php if (!empty($_smarty_tpl->tpl_vars['returnMaterial']->value)){?>
                            <br/><a href="projectoperationControllerreturn.php?do=show&proid=<?php echo $_smarty_tpl->tpl_vars['project']->value->id;?>
" target="_blank">تفاصيل مرتجع صرف مواد</a>
                            <?php }?>
                        </td>
                    </tr>
                    <tr>
                         <td >الايرادات</td>
                        <td >
                            <?php echo $_smarty_tpl->tpl_vars['incomeData']->value;?>
<br/>
                            <?php if ($_smarty_tpl->tpl_vars['incomeData']->value>0){?><a href="incomeController.php?do=show&proid=<?php echo $_smarty_tpl->tpl_vars['project']->value->costcenterid;?>
" target="_blank">التفاصيل</a><?php }?>
                        </td>
                        <td>مصروفات</td>
                        <td>
                            <?php echo $_smarty_tpl->tpl_vars['expenses']->value;?>
<br/>
                            <?php if ($_smarty_tpl->tpl_vars['expenses']->value>0){?><a href="expensesController.php?do=show&proid=<?php echo $_smarty_tpl->tpl_vars['project']->value->costcenterid;?>
" target="_blank">التفاصيل</a><?php }?>
                           <!--  <a href="expenseexchange.php?do=shownew&proid=<?php echo $_smarty_tpl->tpl_vars['project']->value->id;?>
" target="_blank">التفاصيل</a> -->
                        </td>
                    </tr>
                     <tr>
                         <td ></td>
                        <td >
                          
                        </td>
                        <td>الدفعات</td>
                        <td>
                            <?php echo $_smarty_tpl->tpl_vars['supplierdebtchangeamountto']->value;?>
<br/>
                            <?php if ($_smarty_tpl->tpl_vars['supplierdebtchangeamountto']->value>0){?><a href="supplierReportsController.php?do=show&proid=<?php echo $_smarty_tpl->tpl_vars['project']->value->costcenterid;?>
" target="_blank">التفاصيل</a><?php }?>
                           <!--  <a href="expenseexchange.php?do=shownew&proid=<?php echo $_smarty_tpl->tpl_vars['project']->value->id;?>
" target="_blank">التفاصيل</a> -->
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2"><?php echo $_smarty_tpl->tpl_vars['txt']->value;?>
</td>
                        <td colspan="2"><?php echo $_smarty_tpl->tpl_vars['operation']->value;?>
</td>
                    </tr>
                </tbody>
            </table>
            <?php }?>

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






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


        </div>



    </div>

</div>

<?php }} ?>