<?php $__env->startSection('content'); ?>
<?php $input['date_range'] = !empty($input['date_range']) ? $input['date_range'] : null; 
$currency =  setting_by_key("currency");
?>
<link href="<?php echo e(url('assets/css/plugins/datapicker/datepicker3.css')); ?>" rel="stylesheet">

 <link href="<?php echo e(url('assets/css/plugins/daterangepicker/daterangepicker-bs3.css')); ?>" rel="stylesheet">

<div class="wrapper wrapper-content animated fadeInRight">
            <div class="row">
                <div class="col-lg-8">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5><?php echo app('translator')->getFromJson('reports.user_activities'); ?></h5>
                        
                    </div>
                    <div class="ibox-content">

                        <table class="table">
                            <thead>
                           <tr>
                            <th>#</th>
                            <th>Date time</th>
							<th>Action</th>
                        </tr>
                            </thead>
                            <tbody>
							<?php $total_amount = 0; ?>
                    <?php if(!empty($activities)): ?>
                        <?php $__empty_1 = true; $__currentLoopData = $activities; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                            <tr>
                                <td><?php echo e($key + 1); ?></td>
                               <td><?php echo e(date('d F Y - h:i A' , strtotime($row->datetime))); ?></td>
                                
							   <td><?php echo e($row->activity); ?></td>
							   
                           
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                            <?php echo $__env->make('backend.partials.table-blank-slate', ['colspan' => 4], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                        <?php endif; ?>
                    <?php endif; ?>
                    </tbody>
					
						
							
							
                        </table>

                    </div>
                </div>
            </div>
            
            <div class="col-md-4">
            <div class="panel panel-default">
                 <div class="ibox-title">
                        <h5><?php echo app('translator')->getFromJson('reports.date_range'); ?></h5>
                        
                    </div>
                 <div class="ibox-content">    
                   	
						<div class="form-group" id="data_5">
                                <label class="font-noraml"><?php echo app('translator')->getFromJson('reports.range_select'); ?></label>
                                <div class="input-daterange input-group" id="datepicker">
									
                                    <select onChange="javascript:location.href = this.value" class="input-sm form-control" name="start"> 
									<?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $u): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
										<option value="<?php echo e(url('reports/staff_log/' . $u->id )); ?>" <?php if($user->id == $u->id) echo "selected" ?>> <?php echo e($u->name); ?> </option>
									<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
									</select>
                                    
                                </div>
                            </div>

                        

                        
                    </form>
                </div>
            </div>
        </div>
        
    </div>
</div>
	<!-- <?php echo app('translator')->getFromJson('reports.date_range'); ?> use moment.js same as full calendar plugin -->
	
	 <!-- Data picker -->
   <script src="<?php echo e(url('assets/js/plugins/datapicker/bootstrap-datepicker.js')); ?>"></script>

    <script src="<?php echo e(url('assets/js/plugins/fullcalendar/moment.min.js')); ?>"></script>
    <script src="<?php echo e(url('assets/js/plugins/daterangepicker/daterangepicker.js')); ?>"></script>
	
			<script> 
			$('#data_5 .input-daterange').datepicker({
                keyboardNavigation: false,
                forceParse: false,
                autoclose: true
            });
			</script>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>