<style>
    th,td{
        border: 1px solid #ddd !important;
    }
</style>
<div class="row">
    <div class="container">
        <!--show-------------------------------------------------------------------------------------------->
        <div class="panel panel-default panel-m">
            <!-- Default panel contents -->
            <div class="panel-heading">
                <h3 class="panel-title"><strong>الميزانية العمومية(المركز المالى) </strong></h3>
                <a href="{$youtubes[225]->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>
                    <table class="table table-black">
                        <tr style="background-color:#484747 !important">
                            <th colspan="2" style="text-align: center;border-bottom-color: white !important" class="color-black ">الأصول </th>
                            <th colspan="2" style="text-align: center;border-bottom-color: white !important" class="color-black">الخصوم </th>
                        </tr>
                        <tr style="background-color:#484747 !important">
                            <th colspan="2" style="text-align: center;border-top-color: white !important" class="color-black">أصول ثابتة </th>
                            <th colspan="2" style="text-align: center;border-top-color: white !important" class="color-black">خصوم ثابتة </th>
                        </tr>
                        {for $foo = 0 to $realCountFixed step=2}
                        {if $fixedArr[$foo]->name =="" && $fixedArr[$foo+1]->name ==""}
                        {else}
                        <tr>
                            <th>{$fixedArr[$foo]->customName}</th>
                            <td>{$fixedArr[$foo]->theValue}</td>
                            <th>{$fixedArr[$foo+1]->customName}</th>
                            <td>{$fixedArr[$foo+1]->theValue}</td>
                        </tr>
                        {/if}
                        {/for}
                        <tr class="bg-black">
                            <th width="25%">المجموع:</th>
                            <td width="25%">{$totalFixedAssets}</td>
                            <th width="25%">المجموع:</th>
                            <td width="25%">{$totalFixedOpponents}</td>
                        </tr>
                        <!----------------------------------------------------->
                        <tr style="background-color:#484747 !important">
                            <th colspan="2" style="text-align: center;" class="color-black">أصول متداولة </th>
                            <th colspan="2" style="text-align: center;" class="color-black">خصوم متداولة </th>
                        </tr>
                        {for $foo = 0 to $realCountCirculating step=2}
                        {if $circulatingArr[$foo]->name =="" && $circulatingArr[$foo+1]->name ==""}
                        {else}
                        <tr>
                            <th>{$circulatingArr[$foo]->customName}</th>
                            <td>{$circulatingArr[$foo]->theValue}</td>
                            <th>{$circulatingArr[$foo+1]->customName}</th>
                            <td>{$circulatingArr[$foo+1]->theValue}</td>
                        </tr>
                        {/if}
                        {/for}
                        <tr class="bg-black">
                            <th>المجموع:</th>
                            <td>{$totalCirculatingAssets}</td>
                            <th>المجموع:</th>
                            <td>{$totalCirculatingOpponents}</td>
                        </tr>
                        <!----------------------------------------------------->
                        {if $realCountOther >0}
                        <tr style="background-color:#484747 !important">
                            <th colspan="2" style="text-align: center;" class="color-black">أصول أخرى </th>
                            <th colspan="2" style="text-align: center;" class="color-black">خصوم أخرى </th>
                        </tr>
                        {for $foo = 0 to $realCountOther step=2}
                        {if $otherArr[$foo]->name =="" && $otherArr[$foo+1]->name ==""}
                        {else}
                        <tr>
                            <th>{$otherArr[$foo]->customName}</th>
                            <td>{$otherArr[$foo]->theValue}</td>
                            <th>{$otherArr[$foo+1]->customName}</th>
                            <td>{$otherArr[$foo+1]->theValue}</td>
                        </tr>
                        {/if}
                        {/for}
                        <tr class="bg-black">
                            <th>المجموع:</th>
                            <td>{$totalOtherAssets}</td>
                            <th>المجموع:</th>
                            <td>{$totalOtherOpponents}</td>
                        </tr>
                        {/if}
                        <!----------------------------------------------------->
                        <tr class="bg-total">
                            <th>الاجمالى:</th>
                            <td>{$totalFixedAssets+$totalCirculatingAssets+$totalOtherAssets}</td>
                            <th>الاجمالى:</th>
                            <td>{$totalFixedOpponents+$totalCirculatingOpponents+$totalOtherOpponents}</td>
                        </tr>
                    </table>
                    <br/>
                    <!--div class="col-lg-offset-16 col-lg-4">
                        <div class="well well-sm">
                            <h4 class="text-center">{$gainLossMsg}</h4>
                        </div>
                    </div-->
                </div>
                </br>
            </div>
        </div>
    </div>
</div>