@extends('hr_main') @section('title', '| ' . $data['pageTitle']) @section('content')
{{-- Center-align the entire form --}}
{!! $data['pageTitle'] !!}
{!! Form::open([ 'files' => false, 'id' => 'formId', 'role' => 'form', 'class' => 'form-horizontal form-groups text-center', ]) !!}
{!! Form::label('project_id', 'Project:', ['class' => 'control-label']) !!} {!! Form::select('project_id', ['' => 'Select Project'] + $data['project_id'], null, [ 'class' => 'form-control', 'id' => 'project_id', ]) !!}

{{ $errors->first('project_id') }}

{!! Form::label('department_id', 'Department:', ['class' => 'control-label']) !!} {!! Form::select( 'department_id', ['' => 'Select Department'] + $data['department_id'], null, [ 'class' => 'form-control', 'id' => 'department_id', ], ) !!}

{{ $errors->first('department_id') }}

{!! Form::text('name', null, ['class' => 'form-control', 'id' => 'name']) !!}

{{ $errors->first('name') }}

{!! Form::select('emp_id', ['' => 'Select Employee'], null, [ 'class' => 'form-control', 'id' => 'emp_id', ]) !!}

{{ $errors->first('emp_id') }}

{!! Form::submit('Submit', ['id' => 'add', 'class' => 'btn btn-info submitButton']) !!} Close
{!! Form::close() !!}
@endsection @section('footerAssets') @endsection