<?php $__env->startSection('head'); ?>
<!-- BEGIN PAGE LEVEL STYLES -->
<?php echo HTML::style("assets/global/plugins/bootstrap-select/css/bootstrap-select.min.css"); ?>

<?php echo HTML::style("assets/global/plugins/select2/css/select2.css"); ?>

<?php echo HTML::style("assets/global/plugins/bootstrap-datepicker/css/bootstrap-datepicker.css"); ?>

<?php echo HTML::style("assets/global/plugins/jquery-multi-select/css/multi-select.css"); ?>

<?php echo HTML::style("assets/global/plugins/typeahead/typeahead.css"); ?>

<?php echo HTML::style("assets/global/plugins/bootstrap-summernote/summernote.css"); ?>

<!-- BEGIN THEME STYLES -->

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


<?php $__env->startSection('mainarea'); ?>


<!-- BEGIN PAGE HEADER-->
<div class="page-head">
    <div class="page-title">
        <h1>
            <?php echo e($pageTitle); ?>

        </h1>
    </div>
</div>
<div class="page-bar">
    <ul class="page-breadcrumb breadcrumb">
        <li>
            <a onclick="loadView('<?php echo e(route('admin.projects.index')); ?>')"><?php echo e(__('core.home')); ?></a>
            <i class="fa fa-circle"></i>
        </li>
        <li>
            <a onclick="loadView('<?php echo e(route('admin.projects.index')); ?>')"><?php echo app('translator')->get("pages.projects.indexTitle"); ?></a>
            <i class="fa fa-circle"></i>
        </li>
        <li>
            <span class="active"><?php echo e(__('core.btnAddProject')); ?></span>
        </li>
    </ul>

</div>
<!-- END PAGE HEADER-->
<!-- BEGIN PAGE CONTENT-->
<div class="row">
    <div class="col-md-12">
        <!-- BEGIN EXAMPLE TABLE PORTLET-->

        

        


        <div class="portlet light bordered">


            <div class="portlet-body form">
                <?php echo Form::open(['class'=>'form-horizontal ajax_form','method'=>'POST']); ?>

                <!-- BEGIN FORM-->


                <div class="form-body">

                    <div class="form-group">
                        <label class="col-md-2 control-label"><?php echo e(trans('core.project_name')); ?> : <span class="required">
                                * </span>
                        </label>

                        <div class="col-md-6">
                            <input type="text" class="form-control" id="name" name="name" placeholder="<?php echo e(trans('core.project_name')); ?> ">
                            <span class="help-block"></span>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label"><?php echo e(trans('core.project_description')); ?> : <span class="required">
                                * </span>
                        </label>

                        <div class="col-md-6">
                            <textarea class="form-control" id="description" name="description"></textarea>
                            <span class="help-block"></span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-2 control-label"><?php echo e(trans('core.startDate')); ?> :
                        </label>

                        <div class="col-md-6">
                            <div class="input-group input-medium date date-picker" data-date-viewmode="years">
                                <input type="text" class="form-control" name="start_date" id="start_date" data-date-viewmode="years" readonly value="<?php echo e(date('d-m-Y')); ?>">
                                <span class="input-group-btn">
                                    <button class="btn default" type="button"><i class="fa fa-calendar"></i></button>
                                </span>
                            </div>

                        </div>

                    </div>
                    <div class="form-group">
                        <label class="col-md-2 control-label"><?php echo e(trans('core.endDate')); ?>

                        </label>

                        <div class="col-md-6">
                            <div class="input-group input-medium date date-picker">
                                <input type="text" class="form-control" name="end_date" id="end_date" data-date-format="dd-mm-yyyy" data-date-viewmode="years" readonly>
                                <span class="input-group-btn">
                                    <button class="btn default" type="button"><i class="fa fa-calendar"></i></button>
                                </span>
                            </div>

                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-2 control-label"><?php echo e(trans('core.project_status')); ?>: <span class="required">
                                * </span>
                        </label>

                        <div class="col-md-6">
                            <select class="form-control select floating" name="status">

                                <option value="inactive" selected="selected">Open</option>
                                <option value="active">Active</option>
                                <option value="closed">Closed</option>

                            </select>
                        </div>
                    </div>

                    <!-- END FORM-->

                </div>
                <div class="form-actions">
                    <div class="row">
                        <div class="col-md-offset-2 col-md-9">

                            <button type="button" id="projectCreate" class="btn green" onclick="ajaxCreateProject()">
                                <?php echo e(trans('core.btnSubmit')); ?> </button>

                        </div>
                    </div>
                </div>
                <?php echo Form::close(); ?>

            </div>
            <!-- END EXAMPLE TABLE PORTLET-->

        </div>
    </div>
</div>
<!-- END PAGE CONTENT-->



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

<?php $__env->startSection('footerjs'); ?>

<!-- BEGIN PAGE LEVEL PLUGINS -->
<?php echo HTML::script("assets/global/plugins/bootstrap-select/js/bootstrap-select.min.js"); ?>

<?php echo HTML::script("assets/global/plugins/select2/js/select2.min.js"); ?>

<?php echo HTML::script("assets/global/plugins/jquery-multi-select/js/jquery.multi-select.js"); ?>

<?php echo HTML::script("assets/global/plugins/bootstrap-summernote/summernote.min.js"); ?>

<?php echo HTML::script("assets/global/plugins/typeahead/typeahead.bundle.min.js"); ?>

<?php echo HTML::script("assets/global/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js"); ?>


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

<script>
    //	 ComponentsPickers.init();
    $('#description').summernote({
        height: 300
    });


    $('.date-picker').datepicker({
        dateFormat: 'dd-mm-yyyy'
    });

    function ajaxCreateProject() {

        console.log($(".ajax_form").serialize());
        $.easyAjax({
            url: "<?php echo route('admin.projects.store'); ?>",
            type: "POST",
            data: $(".ajax_form").serialize(),
            container: ".ajax_form",
        });
    }
</script>
<!-- END PAGE LEVEL PLUGINS -->
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.adminlayouts.adminlayout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/dmwachinga/projects/hr/KodiHRM/resources/views/admin/projects/create.blade.php ENDPATH**/ ?>