<?php $__env->startSection('content'); ?>
  <article class="content items-list-page">
                    <div class="title-search-block">
               
                        <div class="title-block">
                            <div class="row">
                                <div class="col-md-6">
                                    <h3 class="title">
                    Payroll Generate
                   
                    <!--<a href="<?php echo e(url('admin/emp/create')); ?>" class="btn btn-primary btn-sm rounded-s">
                        <i class="fa fa-location-arrow"></i> New Appointment
                    </a> -->
                    
                <div class="action dropdown">
                        <button class="btn  btn-sm rounded-s btn-secondary dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                            Reports
                        </button>
                       
                    </div> 
                </h3>
                                    <p class="title-description"> 
        <ul class='breadcrumb'>
        <li><a href="<?php echo e(URL('admin/dashboard')); ?>"><i class="fa fa-home"></i> Dashboard</a></li>
        <li>Vacation Requests</li>

    </ul>
</p>
                                </div>
                            </div>
                        </div>
                        <div class="items-search">
                            <form class="form-inline" role="form" enctype="multipart/form-data" method="POST" action="<?php echo e(url('/admin/emp/search')); ?>">
                        <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
                            <!--<form class="form-inline"> -->
                                <div class="input-group"> <input type="text" name="query" class="form-control boxed rounded-s" placeholder="Search for..."> <span class="input-group-btn">
                    <button class="btn btn-secondary rounded-s" type="submit">
                        <i class="fa fa-search"></i>
                    </button>
                </span> </div>
                            </form>
                        </div>
                    </div>
 <?php if(count($errors) > 0): ?>
                        <div class="alert alert-danger">
                            <strong>Whoops!</strong> There were some problems with your input.<br><br>
                            <ul>
                                <?php foreach($errors->all() as $error): ?>
                                    <li><?php echo e($error); ?></li>
                                <?php endforeach; ?>
                            </ul>
                        </div>
                    <?php endif; ?>

                 <?php if(Session::has('message')): ?>
                        <div class="alert alert-success">
                            <strong>  <?php echo e(Session('message')); ?> </strong>
                        </div>
                    <?php endif; ?>

 <section class="section">
                        <div class="row sameheight-container">
                            <div class="col-md-6">
                                <div class="card card-block sameheight-item">
                                    <div class="title-block">
                                        <h3 class="title">
            Generate Payroll
          </h3> </div>
                                  <form class="form-horizontal" role="form" method="POST" action="<?php echo e(url('/admin/payroll/generate')); ?>">
            <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">

            

            
                          <div class="form-group">
                  
          
               
              <div class="col-md-6">
              
                <input type="text" id="date-start" name="work_in" class="form-control underlined floating-label" placeholder="Start Date">
              </div>
          
               <div class="col-md-6">
                <input type="text" id="date-end" name="work_out" class="form-control underlined floating-label" placeholder="End Date">
              </div>
            </div>
                                     
                          <!-- <div class="form-group">
              <label class="col-md-4 control-label">Method</label>
              <div class="col-md-6">
                            <select class="form-control" name="method">

  <option value="1">Monthly Pay</option>
  <option value="2">Hourly Pay</option>  

    </select>

              </div>
            </div> -->

<br /><br />
            <div class="form-group">
              
                <button type="submit" class="btn btn-primary btn-lg">
                   Generate
                </button>
              
            </div>
          </form>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="card card-block sameheight-item">
                                    <div class="title-block">
                                        <h3 class="title">
           Recent Log
          </h3> </div>
          <?php if(count($logs) > 0): ?>
                                    <table class="table table-striped sortable">
                     <thead>
                         <tr>
                            <th>Log Time</th>
                            <th>Period</th>
                            </tr>
                     </thead>
                     <tbody>
                      <?php foreach($logs as $log): ?>
                     <tr>
                           <td><?php echo e($log->log_time); ?> </td> 
                           <td><?php echo e($log->info); ?> </td> 
                        </tr>
                         <?php endforeach; ?>
                     </tbody>

                     </table> 
<?php else: ?>
<h4>Nothing Found</h4>

<?php endif; ?>
                    
                                </div>
                            </div>
                        </div>
                    </section>

                     	


 


   
                    
  
                   
                </article>



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

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