@extends('layouts.backend') @section('title', '| testimonials Edit') @section('content')
@if($errors->any())
@foreach ($errors->all() as $error) {{ $error }}
@endforeach
@endif

testimonials

{{ Form::model($testimonial, array('route' => array('testimonials.update', $testimonial->id), 'method' => 'PUT','enctype' => 'multipart/form-data')) }}
{{ Form::label('name', 'Name', ['class'=>'form-label']) }} {{ Form::text('name', null, array('class' => 'form-control')) }}
{{ Form::label('occupation', 'Occupation', ['class'=>'form-label']) }} {{ Form::text('occupation', null, array('class' => 'form-control')) }}
{{ Form::label('comment', 'Comment', ['class'=>'form-label']) }} {{ Form::textarea('comment', null, array('class' => 'form-control')) }}
{{ Form::label('profile', 'Profile', ['class'=>'form-label']) }} {{ Form::file('profile', array('class' => 'form-control', 'onchange' => 'loadFile(event)')) }} profile) src="{{ url('images/'.$testimonial->profile)}}" @endif id="output"/>
{{ Form::label('status', 'Status', ['class'=>'form-label']) }} {{ Form::select('status', array('yes' => 'Yes', 'no' => 'No'),null,array('class' => 'form-control')) }}
{{ Form::submit('Edit', array('class' => 'btn btn-primary')) }} {{ Form::close() }}
@stop