<?php /* Smarty version Smarty-3.1.11, created on 2025-02-25 15:35:49
         compiled from "../views/default/balancereportview/show.html" */ ?>
<?php /*%%SmartyHeaderCode:196535398467bdc7355925f0-37348694%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '88d11688a2a74ae9be8f5e79f1689573b3bda8c5' => 
    array (
      0 => '../views/default/balancereportview/show.html',
      1 => 1740000149,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '196535398467bdc7355925f0-37348694',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'youtubes' => 0,
    'message' => 0,
    'assetsData' => 0,
    'assets' => 0,
    'assetValue' => 0,
    'capitalAmount' => 0,
    'profitFinal' => 0,
    'mess' => 0,
    'productPrice' => 0,
    'saveValue' => 0,
    'bankAccountbalance' => 0,
    'totalclientcheck' => 0,
    'notSellingKempialaValue' => 0,
    'clientDebt' => 0,
    'withdrawalValue' => 0,
    'supplierDebt' => 0,
    'totalsuppliercheck' => 0,
    'forYou' => 0,
    'forTo' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_67bdc735694947_92619550',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_67bdc735694947_92619550')) {function content_67bdc735694947_92619550($_smarty_tpl) {?><style>
    .myresult {
        -webkit-print-color-adjust: exact;
    }

    @media print {
        table.table_1 {
            /* margin-right: 100px !important; */
            /* width: 141px !important; */
            /* margin-left: 50px !important; */
        }

        table.table_2 {
            /* margin-right: 100px !important;
            margin-left: 50px !important; */
        }

        .table-black {
            border: 1px solid black;
        }

        td {
            border: 1px solid #000 !important;
        }

        /* table , p , .table-black { width:  700px  !important;  } */

        .table-black {
            /* width: 100px !important; */
        }

        /* p,
        h4,
        h3,
        h2,
        h1,
        span,
        label,
        td,
        th,
        div.dataTables_info,
        a,
        .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
        div.dataTables_wrapper div.dataTables_info,
        tr.odd td.sorting_1 {
            color: #000 !important
        } */

        .table thead>tr>th,
        .table tbody>tr>th,
        .table tfoot>tr>th,
        .table thead>tr>td,
        .table tbody>tr>td,
        .table tfoot>tr>td {
            text-align: center
        }

        .noborder {
            border: 0
        }

    }
</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[121]->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="balancereportController.php?do=show" method="post">
                    <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" style="width: 100%;">
                <!-- 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" style="width: 100%;">
                        <thead>
                            <tr>
                                <th colspan="2">
                                    أصول ثابتة
                                </th>
                                <th colspan="2">
                                    خصوم ثابتة
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td colspan="2">
                                    <table style="" class="table-black">
                                        <?php  $_smarty_tpl->tpl_vars['assets'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['assets']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['assetsData']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['assets']->key => $_smarty_tpl->tpl_vars['assets']->value){
$_smarty_tpl->tpl_vars['assets']->_loop = true;
?>
                                        <tr>
                                            <td><?php echo $_smarty_tpl->tpl_vars['assets']->value->cattitel;?>
</td>
                                            <td><?php echo $_smarty_tpl->tpl_vars['assets']->value->sumasset;?>
</td>
                                        </tr>
                                        <?php } ?>
                                        <!--                <tr class="active">
                                                      <td>المجموع</td>
                                                      <td><?php echo $_smarty_tpl->tpl_vars['assetValue']->value;?>
</td>
                                                    </tr>-->
                                    </table>
                                </td>
                                <td colspan="2">
                                    <table style="width: 100%;" class="table-black noborder">
                                        <tr>
                                            <td>رأس المال</td>
                                            <td><?php echo $_smarty_tpl->tpl_vars['capitalAmount']->value;?>
</td>
                                        </tr>
                                        <!--                <tr>
                                                      <td>صافى الأرباح</td>
                                                      <td><?php echo $_smarty_tpl->tpl_vars['profitFinal']->value;?>
</td>
                                                    </tr>-->
                                    </table>
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>

                            <tr class="active">
                                <th>
                                    <center>
                                        مجموع الاصول الثابتة
                                    </center>
                                </th>
                                <th><?php if (empty($_smarty_tpl->tpl_vars['assetValue']->value)){?> 0 <?php }else{ ?> <?php echo $_smarty_tpl->tpl_vars['assetValue']->value;?>
 <?php }?></th>
                                <th>
                                    <center>
                                        مجموع الخصوم الثابتة
                                    </center>
                                </th>
                                <th><?php if (empty($_smarty_tpl->tpl_vars['capitalAmount']->value)){?> 0 <?php }else{ ?> <?php echo $_smarty_tpl->tpl_vars['capitalAmount']->value;?>
 <?php }?></th>
                            </tr>

                        </tfoot>
                    </table>
                    <br>
                    <!--=================================================-->
                    <table class="table table-black ">
                        <thead>
                            <tr>
                                <th colspan="2">
                                    <center>
                                        أصول متداولة
                                    </center>
                                </th>
                                <th colspan="2">
                                    <center>
                                        خصوم متداولة
                                    </center>
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td colspan="2">
                                    <!-- style="margin-right: 260px;"  -->
                                    <table style="width: 100%;" class="table-black table_1 noborder">
                                        <tr>
                                            <td>المخزون : (<?php echo $_smarty_tpl->tpl_vars['mess']->value;?>
)</td>
                                            <td><?php echo $_smarty_tpl->tpl_vars['productPrice']->value;?>
</td>
                                        </tr>
                                        <tr>
                                            <td>الخزن</td>
                                            <td><?php echo $_smarty_tpl->tpl_vars['saveValue']->value;?>
</td>
                                        </tr>
                                        <tr>
                                            <td>البنك</td>
                                            <td><?php echo $_smarty_tpl->tpl_vars['bankAccountbalance']->value;?>
</td>
                                        </tr>
                                        <tr>
                                            <td>الشيكات المستحقه للشركه
                                            </td>
                                            <td><?php echo $_smarty_tpl->tpl_vars['totalclientcheck']->value;?>
</td>
                                        </tr>
                                        <tr>
                                            <td>كمبيالات</td>
                                            <td><?php echo $_smarty_tpl->tpl_vars['notSellingKempialaValue']->value;?>
</td>
                                        </tr>
                                        <tr>
                                            <td>حساب المدينين</td>
                                            <td><?php echo $_smarty_tpl->tpl_vars['clientDebt']->value;?>
</td>
                                        </tr>
                                    </table>
                                </td>
                                <td colspan="2">
                                    <!-- style="margin-right: 150px;" -->
                                    <table style="width: 100%;" class="table-black table_2 noborder">
                                        <!-- <tr>
                                            <td>المسحوبات</td>
                                            <td><?php echo $_smarty_tpl->tpl_vars['withdrawalValue']->value;?>
</td>
                                        </tr> -->
                                        <tr>
                                            <td>حساب الدائنين</td>
                                            <td><?php echo $_smarty_tpl->tpl_vars['supplierDebt']->value;?>
</td>
                                        </tr>
                                        <tr>
                                            <td> شيكات (الموردين)</td>
                                            <td><?php echo $_smarty_tpl->tpl_vars['totalsuppliercheck']->value;?>
</td>
                                        </tr>

                                    </table>
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr class="active">
                                <th>
                                    <center>
                                        مجموع الاصول المتادولة
                                    </center>
                                </th>
                                <th><?php echo $_smarty_tpl->tpl_vars['productPrice']->value+$_smarty_tpl->tpl_vars['saveValue']->value+$_smarty_tpl->tpl_vars['bankAccountbalance']->value+$_smarty_tpl->tpl_vars['notSellingKempialaValue']->value+$_smarty_tpl->tpl_vars['clientDebt']->value+$_smarty_tpl->tpl_vars['totalclientcheck']->value;?>
</th>
                                <th>
                                    <center>
                                        مجموع الخصوم المتادولة
                                    </center>
                                </th>
                                <!-- <th><?php echo $_smarty_tpl->tpl_vars['withdrawalValue']->value+$_smarty_tpl->tpl_vars['supplierDebt']->value+$_smarty_tpl->tpl_vars['totalsuppliercheck']->value;?>
</th> -->
                                <th><?php echo $_smarty_tpl->tpl_vars['supplierDebt']->value+$_smarty_tpl->tpl_vars['totalsuppliercheck']->value;?>
</th>
                            </tr>
                            <tr class="active">
                                <th>
                                    <center>
                                        مجموع الأصول
                                    </center>
                                </th>
                                <th><?php if (empty($_smarty_tpl->tpl_vars['forYou']->value)){?> 0 <?php }else{ ?> <?php echo $_smarty_tpl->tpl_vars['forYou']->value;?>
 <?php }?></th>
                                <th>
                                    <center>
                                        مجموع الخصوم
                                    </center>
                                </th>
                                <th><?php if (empty($_smarty_tpl->tpl_vars['forTo']->value)){?> 0 <?php }else{ ?> <?php echo $_smarty_tpl->tpl_vars['forTo']->value;?>
 <?php }?></th>
                            </tr>
                            <tr class="active">
                                <th></th>
                                <th></th>
                                <th> <span> الفرق = <?php echo $_smarty_tpl->tpl_vars['forYou']->value-$_smarty_tpl->tpl_vars['forTo']->value;?>
 </span></th>
                                <th></th>


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