@extends('layouts.app') @section('pageStyle') @endsection @section('content')

Add Intersection Type

{{ all_errors($errors) }} @include('layouts.flash') {{ Form::open(['url' => 'attribute/update-intersection/'.$intersection->id, 'method' => 'patch', 'class' => 'form-horizontal intersection_wrapper', 'id' => 'edit-form']) }}
{{ Form::label('name', 'Intersection Name', ['class' => 'col-lg-3 control-label text-left']) }}
{{ Form::text('name',$intersection->name,['required', 'class' => 'form-control', 'id' => 'name']) }}
{{ Form::label('description', 'Description', ['class' => 'col-lg-3 control-label text-left']) }}
{{ Form::textarea('description',$intersection->description,['rows' => 5, 'class' => 'form-control', 'id' => 'description']) }}
{{ Form::label('hcm', 'Choose HCM', ['class' => 'col-lg-3 control-label text-left']) }}
{{ Form::select('hcm_ids[]', $hcms, $selected, ['data-placeholder' => 'Select HCM', 'class' => 'chosen-select', 'multiple' => true, 'required'=> true, 'tabindex' => '4', 'style' => 'width: 100%']) }}
{{ Form::submit('Add Intersection', ['class' => 'btn btn-primary']) }}
{!! Form::close() !!}
@endsection @section('pageScript')