@extends('layouts.app') @section("script") {{-- --}} {{-- --}} @section('content') @include('level.header')
Create New Level
{!! $errors !!}
{!! Form::open(['route' => 'level.store', 'class' => 'col s12', 'files' => true]) !!} {!! Form::token() !!}
{!! Form::select('courseId', $courses, null, ['id' => 'courseId','placeholder'=>'Select Course']); !!} {!! Form::label('courseId', 'Course') !!}
{!! Form::label('levelGroupsId', 'Level Groups') !!}
{!! Form::number('order', null, ['id' => 'order', 'class' => 'active','readonly'=>'true']) !!} {!! Form::label('order', 'Order') !!}
{!! Form::select('games[]', $games,null, ['id' => 'games','multiple'=>'multiple','placeholder'=>'Select Games']); !!} {!! Form::label('games', 'Games') !!}
{!! Form::number('repeat_count',1, ['id' => 'repeat_count', 'class' => 'active','step'=>'1']) !!} {!! Form::label('repeat_count', 'Game Repeat Count') !!}
{!! Form::number('points_awarded_on_completion', null, ['id' => 'points_awarded_on_completion']) !!} {!! Form::label('points_awarded_on_completion', 'Points awarded on completion') !!}
{!! Form::text('name', null, ['id' => 'name', 'class' => 'validate', 'required','maxlength'=>'15']) !!} {!! Form::label('name', 'Level Name') !!}
{!! Form::text('image', null, ['id' => 'image', 'class' => 'validate', 'required']) !!} {!! Form::label('image', 'Level Image') !!}
Select photo
{!! Form::textarea('description', null, ['id' => 'description', 'class' => 'materialize-textarea']) !!} {!! Form::label('description', 'Description') !!}
{!! Form::button('Submitsend', ['type' => 'submit', 'class' => 'btn']); !!} {!! Form::close() !!}
{{-- --}} @endsection