@extends('admin.layouts.master') @section('content')

{{ trans('quickadmin::templates.templates-view_edit-edit') }}

@if ($errors->any())
    {!! implode('', $errors->all('
  • :message
  • ')) !!}
@endif
{!! Form::model($message, array('class' => 'form-horizontal', 'id' => 'form-with-validation', 'method' => 'PATCH', 'route' => array(config('quickadmin.route').'.message.update', $message->id))) !!}
{!! Form::label('order_id', 'Order ID*', array('class'=>'col-sm-2 control-label')) !!}
{!! Form::text('order_id', old('order_id',$message->order_id), array('class'=>'form-control')) !!}
{!! Form::label('subject', 'Subject', array('class'=>'col-sm-2 control-label')) !!}
{!! Form::text('subject', old('subject',$message->subject), array('class'=>'form-control')) !!}
{!! Form::label('body', 'Body', array('class'=>'col-sm-2 control-label')) !!}
{!! Form::text('body', old('body',$message->body), array('class'=>'form-control')) !!}
{!! Form::label('attachments', 'Attachments', array('class'=>'col-sm-2 control-label')) !!}
{!! Form::text('attachments', old('attachments',$message->attachments), array('class'=>'form-control')) !!}
{!! Form::label('from', 'From', array('class'=>'col-sm-2 control-label')) !!}
{!! Form::text('from', old('from',$message->from), array('class'=>'form-control')) !!}
{!! Form::label('date', 'Date', array('class'=>'col-sm-2 control-label')) !!}
{!! Form::text('date', old('date',$message->date), array('class'=>'form-control')) !!}
{!! Form::submit(trans('quickadmin::templates.templates-view_edit-update'), array('class' => 'btn btn-primary')) !!} {!! link_to_route(config('quickadmin.route').'.message.index', trans('quickadmin::templates.templates-view_edit-cancel'), null, array('class' => 'btn btn-default')) !!}
{!! Form::close() !!} @endsection