<?php $__env->startSection('content'); ?>
    <h3 class="page-title">Task Manager</h3>
    <?php echo Form::open(['method' => 'POST', 'route' => ['admin.taskmanager.store']]); ?>


    <div class="panel panel-default">
        <div class="panel-heading">
            <?php echo app('translator')->getFromJson('quickadmin.qa_create'); ?>
        </div>
        
        <div class="panel-body">
		
		
		 <div class="row">
                <div class="col-xs-12 form-group"> 
				<?php echo Form::label('company_id', 'Company', ['class' => 'control-label']); ?>

				
				
				<select name="company_id" id="company_id" value="<?php echo e(old('company_id')); ?>" class="form-control" required>
						<option value="">Please select</option>
			<?php $__currentLoopData = $company; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $comp): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
			<option value="<?php echo e($comp->company_name); ?>">
			<?php echo e($comp->company_name); ?>

			</option>
			<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
			  </select>
			</div>
          </div>
		  
		  
		   <div class="row">
                <div class="col-xs-12 form-group"> 
				<?php echo Form::label('item', 'Item', ['class' => 'control-label']); ?>

				
				
				<textarea name="item" id="item"  class="form-control" required>
				<?php echo e(old('item')); ?>

			  </textarea>
			</div>
          </div>
		  
		  
	        <div class="row">
                <div class="col-xs-12 form-group"> 
				<?php echo Form::label('segment_id', 'Segment', ['class' => 'control-label']); ?>

				
				
				<select name="segment_id" id="segment_id" value="<?php echo e(old('segment_id')); ?>" class="form-control" required>
						<option value="">Please select</option>
			<?php $__currentLoopData = $segments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $segment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
			<option value="<?php echo e($segment->segment_name); ?>">
			<?php echo e($segment->segment_name); ?>

			</option>
			<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
			  </select>
			</div>
          </div>
		  
		  
		  
		     <div class="row">
                <div class="col-xs-12 form-group"> 
				<?php echo Form::label('owner_id', 'Owner', ['class' => 'control-label']); ?>

				
				
				<select name="owner_id" id="owner_id" value="<?php echo e(old('owner_id')); ?>" class="form-control" required>
						<option value="">Please select</option>
			<?php $__currentLoopData = $owner; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $owne): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
			<option value="<?php echo e($owne->owner_name); ?>">
			<?php echo e($owne->owner_name); ?>

			</option>
			<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
			  </select>
			</div>
          </div>
			
			
            <div class="row">
                <div class="col-xs-12 form-group">
                    <?php echo Form::label('employee_id', 'Employee*', ['class' => 'control-label']); ?>

					<select name="employee_id" id="employee_id" value="<?php echo e(old('employee_id')); ?>" class="form-control" required>
						<option value="">Please select</option>
						<?php $__currentLoopData = $employees; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $employee): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
						<option value="<?php echo e($employee->id); ?>"><?php echo e($employee->first_name); ?> <?php echo e($employee->last_name); ?></option>
						<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
					</select>
                    <p class="help-block"></p>
                    <?php if($errors->has('employee_id')): ?>
                        <p class="help-block">
                            <?php echo e($errors->first('employee_id')); ?>

                        </p>
                    <?php endif; ?>
                </div>
            </div>
			
			
			
			<div class="row">
                <div class="col-xs-12 form-group"> 
				<?php echo Form::label('type_of_meeting', 'Type of Meeting', ['class' => 'control-label']); ?>

				
				
				<select name="type_of_meeting" id="type_of_meeting" value="<?php echo e(old('type_of_meeting')); ?>" class="form-control" required>
						<option value="">Please select</option>
			<?php $__currentLoopData = $meeting; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $meet): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
			<option value="<?php echo e($meet->name); ?>">
			<?php echo e($meet->name); ?>

			</option>
			<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
			  </select>
			</div>
          </div>
		  
		  
		  
            <div class="row">
                <div class="col-xs-12 form-group">
                    <?php echo Form::label('meeting_date', 'Meeting Date*', ['class' => 'control-label']); ?>

                    <?php echo Form::text('meeting_date', old('meeting_date'), ['class' => 'form-control date', 'placeholder' => '', 'required' => '']); ?>

                    <p class="help-block"></p>
                    <?php if($errors->has('meeting_date')): ?>
                        <p class="help-block">
                            <?php echo e($errors->first('meeting_date')); ?>

                        </p>
                    <?php endif; ?>
                </div>
            </div>
			
			
			 <div class="row">
                <div class="col-xs-12 form-group">
                    <?php echo Form::label('deadline', 'Deadline Date*', ['class' => 'control-label']); ?>

                    <?php echo Form::text('deadline', old('deadline'), ['class' => 'form-control date', 'placeholder' => '', 'required' => '']); ?>

                    <p class="help-block"></p>
                    <?php if($errors->has('deadline')): ?>
                        <p class="help-block">
                            <?php echo e($errors->first('deadline')); ?>

                        </p>
                    <?php endif; ?>
                </div>
            </div>
			
			
			
			 <div class="row">
                <div class="col-xs-12 form-group">
                    <?php echo Form::label('review_date', 'Review Date*', ['class' => 'control-label']); ?>

                    <?php echo Form::text('review_date', old('review_date'), ['class' => 'form-control date', 'placeholder' => '', 'required' => '']); ?>

                    <p class="help-block"></p>
                    <?php if($errors->has('review_date')): ?>
                        <p class="help-block">
                            <?php echo e($errors->first('review_date')); ?>

                        </p>
                    <?php endif; ?>
                </div>
            </div>
			
			
			<div class="row">
                <div class="col-xs-12 form-group"> 
				<?php echo Form::label('progress_status', 'Job Status', ['class' => 'control-label']); ?>

				
				
				<select name="progress_status" id="progress_status" value="<?php echo e(old('progress_status')); ?>" class="form-control" required>
						<option value="">Please select</option>
			<?php $__currentLoopData = $status; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $stas): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
			<option value="<?php echo e($stas->name); ?>">
			<?php echo e($stas->name); ?>

			</option>
			<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
			  </select>
			</div>
          </div>
		  
		  
		  

		  
		  
		   <div class="row">
                <div class="col-xs-12 form-group"> 
				<?php echo Form::label('remarks', 'Remarks', ['class' => 'control-label']); ?>

				
				
				<textarea name="remarks" id="remarks"  class="form-control" >
				<?php echo e(old('remarks')); ?>

			  </textarea>
			</div>
          </div>
		  
		  
		  
		 <div class="row">
                <div class="col-xs-12 form-group"> 
			
				
				<input type="checkbox" name="reminder" id="reminder"   >
				Reminder
			
			 
			</div>
          </div>
		  
		  
		    <div class="row">
                <div class="col-xs-12 form-group"> 
				<?php echo Form::label('email', 'Reminder Email', ['class' => 'control-label']); ?>

				
				
				<input type="text"  name="email"  value="<?php echo e(old('email')); ?>" id="email"  class="form-control" >
				
			
			</div>
          </div>
		  
		  
		  <div class="row">
                <div class="col-xs-12 form-group"> 
				<?php echo Form::label('email_cc', 'Reminder CC', ['class' => 'control-label']); ?>

				
				
				<input type="text"  name="email_cc"  value="<?php echo e(old('email_cc')); ?>" id="email_cc"  class="form-control" >
				
			
			</div>
          </div>
			
			
			
			
	
            
        </div>
    </div>

    <?php echo Form::submit(trans('quickadmin.qa_save'), ['class' => 'btn btn-danger']); ?>

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

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

<?php $__env->startSection('javascript'); ?>
    ##parent-placeholder-b6e13ad53d8ec41b034c49f131c64e99cf25207a##
    <script>
        $('.date').datepicker({
            autoclose: true,
            dateFormat: "<?php echo e(config('app.date_format_js')); ?>"
        });
		$('.deadline').datepicker({
            autoclose: true,
            dateFormat: "<?php echo e(config('app.date_format_js')); ?>"
        });
		$('.review_date').datepicker({
            autoclose: true,
            dateFormat: "<?php echo e(config('app.date_format_js')); ?>"
        });
    </script>
    <script src="<?php echo e(url('quickadmin/js')); ?>/timepicker.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-ui-timepicker-addon/1.4.5/jquery-ui-timepicker-addon.min.js"></script>
    <script src="https://cdn.datatables.net/select/1.2.0/js/dataTables.select.min.js"></script>    <script>
        $('.timepicker').datetimepicker({
            autoclose: true,
            timeFormat: "HH:mm:ss",
            timeOnly: true
        });
    </script>

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