@extends('admin/admin') @section('content')
{{ Form::model($data,['route'=>['testfiles.update',$data['id']], 'files'=>true,'method'=>'PUT']) }}

Change Data of Test File

@if(!empty($errors->all()))
{{ Html::ul($errors->all())}}
@endif
{!! Form::label('topic', 'Topic:') !!} {!! Form::select('topic', $items, $data['topic'], ['class' => 'form-control']) !!}
{{ Form::label('testno', 'Test No') }} {{ Form::number('testno', $data['testno'], ['class'=>'form-control', 'placeholder'=>'Test Number']) }}
{{ Form::label('image', 'Test File (*.java) [Left empty if is not updated]') }} {{ Form::file('testFile', ['class'=>'form-control']) }}
{{ Form::close() }}
@endsection