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

Add New Level 3 Type

Add New Level 3
{{ all_errors($errors) }} @include('layouts.flash') {{ Form::open(['url' => 'attribute/store-level', 'class' => 'form-horizontal intersection_wrapper']) }}
{{ Form::label('name', 'Level Name', ['class' => 'col-lg-3 control-label text-left']) }}
{{ Form::text('name','',['required', 'class' => 'form-control']) }}
{{ Form::label('level', 'Choose HCM', ['class' => 'col-lg-3 control-label text-left']) }}
{{ Form::select('hcm_id', ['' => 'Select HCM']+$hcms, null, ['required'=> true, 'class' => 'form-control', 'id' => 'hcm_id']) }}
{{ Form::label('intersection_id', 'Choose Intersection', ['class' => 'col-lg-3 control-label text-left']) }}
{{ Form::label('description', 'Description', ['class' => 'col-lg-3 control-label text-left']) }}
{{ Form::textarea('description','',['rows' => 5, 'class' => 'form-control']) }}
{{ Form::submit('Add Level', ['class' => 'btn btn-primary']) }}
{{ Form::close() }}

All Level 3

@forelse($levels as $level) @forelse($level->hcm as $hcm) @empty @endforelse @empty @endforelse
# Level 3 HCM Intersection Action
{{ $level->id }} {{ $level->name }} {{ $hcm->name }} @forelse($level->intersections as $intersection) @if($intersection->pivot->hcm_id == $hcm->id) {{ $intersection->name }} @endif @empty @endforelse Edit Delete
Data is not available.
@endsection @section('pageScript')