<?php $__env->startSection('content'); ?>
    <div>
        <ul class="breadcrumb">
            <li>
                <a href="<?php echo URL::to('company'); ?>">Home</a> <span class="divider">/</span>
            </li>
            <li>
                <a href=''<?php echo URL::to("company/full-calender"); ?>'>Full Calender Report</a>
            </li>

        </ul>
    </div>
    <div class="row-fluid sortable">
        <div class="box span12">
            <div class="box-header well" data-original-title>
                <h2><i class="icon-edit"></i> Full Calender Report</h2>

            </div>
            <div class="box-content">
                <?php echo Form::open(array('role' => 'form', 'id' => 'full-calender', 'accept-charset' => 'utf-8', 'method' => 'post', 'class' => 'form-horizontal', 'url' => 'company/full-calender')); ?>

                <fieldset>
                    <div class="control-group">
                        <label class="control-label" for="company_name">From</label>
                        <div class="controls">
                            <input type="text" id="from" required readonly class="input-xlarge" name="from" id="company_name" placeholder="From Date" >
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="company_name">To</label>
                        <div class="controls">
                            <input type="text" id="to" required readonly class="input-xlarge" name="to" id="company_name" placeholder="To Date" >
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="company_name">Employee</label>
                        <div class="controls">
                            <select class="input-xlarge chosen-select" required name="id" style="width: 32%">
                                <option value="">Select an Employee</option>
                                <?php foreach($allUser as $user): ?>
                                <option value="<?php echo $user->id; ?>"><?php echo $user->username; ?></option>
                                <?php endforeach; ?>
                            </select>
                        </div>
                    </div>
                    <div class="form-actions">
                        <button type="submit" class="btn btn-success">Report</button>
                        <button type="reset" class="btn">Cancel</button>
                    </div>
                    <div id="loader">
                    </div>
                </fieldset>
                </form>
            </div>
        </div><!--/span-->
    </div>
    <script type="text/javascript">
        $(function() {
            $( "#from" ).datepicker({
                dateFormat:'yy-mm-dd',
                defaultDate: "+1w",
                changeMonth: true,
                numberOfMonths: 1,
                onClose: function( selectedDate ) {
                    $( "#to" ).datepicker( "option", "minDate", selectedDate );
                }
            });
            $( "#to" ).datepicker({
                dateFormat:'yy-mm-dd',
                defaultDate: "+1w",
                changeMonth: true,
                numberOfMonths: 1,
                onClose: function( selectedDate ) {
                    $( "#from" ).datepicker( "option", "maxDate", selectedDate );
                }
            });
        });
    </script>
    <?php $flashError=Session::get('flashError');; if ($flashError) { ?>
    <script type="text/javascript">
        $(document).ready(function() {
            $.pnotify({
                title: 'ERROR',
                text: '<?php echo $flashError ?>',
                type: 'error',
                delay: 3000

            });
        });
    </script>

    <?php } ?>
    <?php $__env->stopSection(); ?>
<?php $__env->startSection('jsBottom'); ?>
    <style>
        .chosen-container-single .chosen-search input[type="text"]{
            width: 90% !important;
        }
    </style>
<?php echo HTML::style('css/chosen.css'); ?>

<?php echo HTML::script('js/chosen.jquery.min.js'); ?>

<script>
    $(function() {
        $('.chosen-select').chosen();
        $('.chosen-select-deselect').chosen({ allow_single_deselect: true });
    });
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('Company.CompanyLayout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>