@extends('layouts.app') @section('css') @section('content') @include('phrase.header')
Edit Phrase
{!! Form::model($phrase, ['route' => ['phrase.update', $phrase->id], 'method' => 'PUT', 'class' => 'col s12', 'files' => true]) !!}
{!! Form::select('courseId', $courses, null, ['id' => 'courseId' ]); !!} {!! Form::label('courseId','Course') !!}
{!! Form::select('voice_type', $voice_type,isset($phrase->voice_type) ? ($phrase->voice_type) : "female_voice" , ['id' => 'voice_type' ]); !!} {!! Form::label('voice_type','Voice Type') !!}

{{-- Add more phrase element through phrase-form.js --}}
{!! Form::button('add', [ 'type' => 'button', 'id' => 'add_phrase', 'class' => 'btn-floating btn waves-effect waves-light teal right tooltipped', 'data-position' => 'left', 'data-tooltip' => 'Add Phrase' ]) !!}
picture {!! Form::text('phrase_image', null, ['id' => 'phrase_image', 'class' => 'validate', 'required']) !!} {!! Form::label('phrase_image', 'Phrase Image') !!}
Select photo
{!! Form::button('Submitsend', ['type' => 'submit', 'class' => 'btn']); !!} {!! Form::close() !!}
@endsection