<div  id="update-report">
                	<div class="col-lg-12  ">
                    <div class="white-box ">
                        <div class="text-center">
                            <h3><strong>{{env('APP_NAME')}}</strong></h3>
                            <h4><strong>Inventory In/Out</strong></h4>
                             <h6>{{date(('d/m/Y'),strtotime($from_date))}} - {{date(('d/m//Y'),strtotime($to_date))}}</h6>
                        </div>

                        <div class="pull-right printFV" style="margin-bottom: 2rem;">
                            <span>Date: <b>{{date('d/m/Y')}}</b></span><br>

                            <span>User ID: &nbsp; {{Auth::user()->name}}</span>
                        </div>

                           <div class="table-responsive" style="clear: both;">
                                <table id="example1"  class="table bdr">
                                    <thead>
                                        <tr>
                                            <th >Item Name</th>
                                            <th class="text-right">Current Quantity</th>
                                            <th class="text-right">Item In</th>
                                            <th class="text-right">Item Out</th>

                                        </tr>
                                    </thead>
                                    <tbody>

                                        <?php $inT = 0 ;$outT = 0; $remT = 0;?>
                                        
                                        @foreach($items as $i)
                                        <tr>
                                            
                                            <td class="printFV">{{$i->item_code}} - {{$i->item_name}}</td>
                                            <td class="text-right">
                                                {{number_format($remaining[$i->id])}}
                                                <?php  $remT +=$remaining[$i->id];?>
                                            </td>
                                            <td class="printFV text-right">{{number_format($in[$i->id])}}
                                                <?php  $inT +=$in[$i->id];?></td>
                                            <td class="printFV text-right">
                                                {{number_format($out[$i->id])}}
                                                <?php  $outT +=$out[$i->id];?>
                                            </td>
                                            </tr>
                                        @endforeach

                                        <tr>
                                            <td class="text-right"><b>Total</b></td>
                                            <td class="text-right"><b>{{number_format($remT)}}</b></td>
                                            <td class="text-right"><b>{{number_format($inT)}}</b></td>
                                            <td class="text-right"><b>{{number_format($outT)}}</b></td>
                                            
                                        </tr>
                                    </tbody>
                                </table>
                              
                        </div>
                    </div>
                </div>

            </div>