

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

        <ol class="breadcrumb">
            <li><a href="#">المشروعات</a></li>
            <li><a href="projectController.php?do=show"> المشروعات</a></li>
            <li class="active"> البرنامج الزمنى</li>
        </ol>


        <div class="panel panel-default panel-m">
            <div class="panel-heading">
                <h3 class="panel-title"> البرنامج الزمنى</h3>
            </div>
            <div class="panel-body">


                {literal}
                <form class="form-horizontal nameToBeChecked" role="form" action="projectController.php?do=update" method="post" id="project-form" enctype="multipart/form-data" >

                    {/literal}


                    <div class="form-group">
                        <div class="col-lg-12" style="text-align: center;font-size: 20px;color: blue;font-weight: bolder;">{$editelement->name}</div>
                    </div>


                   



                    <div class="form-group">

                       <div class="col-lg-12 text-center"  style="color: red;font-size: 20px">برنامج زمنى به بنود </div>
                        <table class="col-lg-12 text-center table table-bordered">
                            <thead style="background: #ccc;font-size: 20px">
                                <tr>
                                    <td width="20%"> البند</td>
                                    <td width="20%">المبلغ</td>
                                    <td width="20%">المده</td>
                                    <td width="20%">  تاريخ بدايه</td>
                                    <td width="20%">  تاريخ نهايه</td>
                                </tr>
                            </thead>
                            <tbody>
                                {assign var=totalamount value=0}
                                {assign var=totalduration value=0}
                                 {foreach $projecttimetableitems as $projecttimetableitem}
                                <tr>
                                    <td>{$projecttimetableitem->clause}</td>
                                    <td>{$projecttimetableitem->amount}</td>
                                    <td>{$projecttimetableitem->duration}</td>
                                    <td>{$projecttimetableitem->startdate}</td>
                                    <td>{$projecttimetableitem->enddate}</td>
                                </tr>
                                {capture assign=totalamount}{$totalamount+$projecttimetableitem->amount}{/capture}
                                {capture assign=totalduration}{$totalduration+$projecttimetableitem->duration}{/capture}
                                {/foreach}

                                 <tr style="background: #9effb0">
                                    <td>الاجمالى</td>
                                    <td>{$totalamount} {$currency}</td>
                                    <td>{$totalduration} يوم</td>
                                    <td></td>
                                    <td></td>
                                </tr>
                            </tbody>
                        </table>

                        
                    </div>

                   




                </form>
            </div>
        </div>




    </div>
</div>



