
        <h5 class="box-title">{{env('APP_NAME')}}</h5>
        <h4 class="box-title">Statement of Cash Flows</h4>
        <h6>{{date('d/m/Y',strtotime($from))}} through {{date('d/m/Y',strtotime($to))}}</h6>
        
        <div class="row">
        

        <div class="col-md-12 pro-cart" >
            <table width="100%" cellpadding="3" cellspacing="3" style="width: 60%;margin-left: 19%;">
                     <thead>
                     </thead>
                     <tbody>
                        <tr class="btm-margin" >
                            <td></td>
                            <td class="pd-5 txt-c"  ><u> {{date('d/m/Y',strtotime($from))}} - {{date('d/m/Y',strtotime($to))}}</u></td > 
                         </tr>
                     <tr class="bg-grey btm-margin">
                            <th class="pd-5"  style="padding-left: 35px;">OPERATING ACTIVITES</th> 
                            <th></th>
                         </tr>

                         <?php $oper_total = 0;?>

                         <tr >
                            <td class="pd-5"  style="padding-left: 55px;text-align: left;">Net Income</td> 
                            <td>{{number_format($netIncome)}}</td>
                            
                         </tr>

                         <tr class="bg-grey btm-margin">
                            <td class="pd-5"  style="padding-left: 55px;text-align: left;"><b>to net cash provided by operations:</b></td> 
                            <td></td>
                        
                         </tr>

                         @foreach($accountReceivable as $account)
                         @if($account['sum'] != 0 )
                         <tr class="">
                            <td class="pd-5"  style="padding-left: 75px;text-align: left;">{{$account['account']->number}} - {{$account['account']->name}}</td> 
                            <td><a target="_blank" href="{{route('report.trial-balance-detail',['id'=>$account['account']->id])}}">{{number_format($account['sum'] * -1)}}</a></td>
                         </tr>
                         <?php $oper_total += ($account['sum'] * -1);?>
                         @endif

                         @endforeach

                         @foreach($otherCurrentAsset as $account)
                         @if($account['sum'] != 0 )
                         <tr class="">
                            <td class="pd-5"  style="padding-left: 75px;text-align: left;">{{$account['account']->number}} - {{$account['account']->name}}</td> 
                            <td><a target="_blank" href="{{route('report.trial-balance-detail',['id'=>$account['account']->id])}}">{{number_format($account['sum'] * -1)}}</a></td>
                         </tr>
                         <?php $oper_total += ($account['sum'] * -1);?>
                         @endif

                         @endforeach

                         @foreach($accountPayable as $account)
                         @if($account['sum'] != 0 )
                         <tr class="">
                            <td class="pd-5"  style="padding-left: 75px;text-align: left;">{{$account['account']->number}} - {{$account['account']->name}}</td> 
                            <td><a target="_blank" href="{{route('report.trial-balance-detail',['id'=>$account['account']->id])}}">{{number_format($account['sum'] * -1)}}</a></td>
                         </tr>
                         <?php $oper_total += ($account['sum'] * -1);?>
                         @endif

                         @endforeach

                         @foreach($otherCurrentLiability as $account)
                         @if($account['sum'] != 0 )
                         <tr class="">
                            <td class="pd-5"  style="padding-left: 75px;text-align: left;">{{$account['account']->number}} - {{$account['account']->name}}</td> 
                            <td><a target="_blank" href="{{route('report.trial-balance-detail',['id'=>$account['account']->id])}}">{{number_format($account['sum'] * -1)}}</a></td>
                         </tr>
                         <?php $oper_total += ($account['sum'] * -1);?>
                         @endif

                         @endforeach


                         <?php $oper_total = $netIncome + $oper_total;?>


                          <tr class="bg-green btm-margin">
                            <td class="pd-5"  style="padding-left: 35px;text-align: left;"><b>Net Cash Provided by Operating Activities</b></td> 
                            <td style="border-top:1px solid;border-bottom: double;"><b>{{number_format($oper_total)}}</b></td>
                            
                         </tr>


                         <tr class="bg-grey btm-margin">
                            <th class="pd-5"  style="padding-left: 35px;">INVESTING ACTIVITES</th> 
                            <th></th>
                         </tr>

                         <?php $invest_total = 0;?>

                         @foreach($fixedAsset as $account)
                         @if($account['sum'] != 0 )
                         <tr class="">
                            <td class="pd-5"  style="padding-left: 55px;text-align: left;">{{$account['account']->number}} - {{$account['account']->name}}</td> 
                            <td><a target="_blank" href="{{route('report.trial-balance-detail',['id'=>$account['account']->id])}}">{{number_format($account['sum'] * -1)}}</a></td>
                         </tr>
                         <?php $invest_total += ($account['sum'] * -1);?>
                         @endif

                         @endforeach

                         @foreach($otherAsset as $account)
                         @if($account['sum'] != 0 )
                         <tr class="">
                            <td class="pd-5"  style="padding-left: 55px;text-align: left;">{{$account['account']->number}} - {{$account['account']->name}}</td> 
                            <td><a target="_blank" href="{{route('report.trial-balance-detail',['id'=>$account['account']->id])}}">{{number_format($account['sum'] * -1)}}</a></td>
                         </tr>
                         <?php $invest_total += ($account['sum'] * -1);?>
                         @endif

                         @endforeach


                         <tr class="bg-green btm-margin">
                            <td class="pd-5"  style="padding-left: 35px;text-align: left;"><b>Net Cash Provided by Investing Activities</b></td> 
                            <td style="border-top:1px solid;border-bottom: double;"><b>{{number_format($invest_total)}}</b></td>
                            
                         </tr>



                         <tr class="bg-grey btm-margin">
                            <th class="pd-5"  style="padding-left: 35px;">FINANCING ACTIVITES</th> 
                            <th></th>
                         </tr>

                         <?php $fin_total = 0;?>

                         @foreach($equity as $account)
                         @if($account['sum'] != 0 )
                         <tr class="">
                            <td class="pd-5"  style="padding-left: 55px;text-align: left;">{{$account['account']->number}} - {{$account['account']->name}}</td> 
                            <td><a target="_blank" href="{{route('report.trial-balance-detail',['id'=>$account['account']->id])}}">{{number_format($account['sum'] * -1)}}</a></td>
                         </tr>
                         <?php $fin_total += ($account['sum'] * -1);?>
                         @endif

                         @endforeach
                         
                         @foreach($longTermLiability as $account)
                         @if($account['sum'] != 0 )
                         <tr class="">
                            <td class="pd-5"  style="padding-left: 55px;text-align: left;">{{$account['account']->number}} - {{$account['account']->name}}</td> 
                            <td><a target="_blank" href="{{route('report.trial-balance-detail',['id'=>$account['account']->id])}}">{{number_format($account['sum'] * -1)}}</a></td>
                         </tr>
                         <?php $fin_total += ($account['sum'] * -1);?>
                         @endif

                         @endforeach


                         <tr class="bg-green btm-margin">
                            <td class="pd-5"  style="padding-left: 35px;text-align: left;"><b>Net Cash Provided by Financing Activities</b></td> 
                            <td style="border-top:1px solid;border-bottom: double;"><b>{{number_format($fin_total)}}</b></td>
                        
                         </tr>

                         <tr class="bg-grey btm-margin">
                            <td class="pd-5"  style="padding-left: 25px;text-align: left;"><b>Net Cash increase for period</b></td> 
                            <td style="border-top:1px solid;border-bottom: double;"><b>{{number_format($fin_total + $invest_total + $oper_total)}}</b></td>
                        
                         </tr>




                    

                   
                 </tbody>
            </table>

        </div>
    </div>