68 lines
2.2 KiB
PHP
68 lines
2.2 KiB
PHP
|
|
@extends('themes.default1.agent.layout.agent')
|
|
|
|
@section('Tools')
|
|
class="active"
|
|
@stop
|
|
|
|
@section('tools-bar')
|
|
active
|
|
@stop
|
|
|
|
@section('tools')
|
|
class="active"
|
|
@stop
|
|
|
|
@section('PageHeader')
|
|
<h1>{{Lang::get('lang.canned_response')}}</h1>
|
|
@stop
|
|
<!-- content -->
|
|
@section('content')
|
|
<!-- open a form -->
|
|
{!! Form::model($canned, ['url' => 'canned/update/'.$canned->id,'method' => 'PATCH'] )!!}
|
|
<!-- <section class="content"> -->
|
|
<div class="box box-primary">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">{!! Lang::get('lang.edit') !!}</h3>
|
|
</div>
|
|
<div class="box-body">
|
|
@if(Session::has('errors'))
|
|
<?php //dd($errors); ?>
|
|
<div class="alert alert-danger alert-dismissable">
|
|
<i class="fa fa-ban"></i>
|
|
<b>{!! Lang::get('lang.alert') !!}!</b>
|
|
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
|
<br/>
|
|
@if($errors->first('title'))
|
|
<li class="error-message-padding">{!! $errors->first('title', ':message') !!}</li>
|
|
@endif
|
|
@if($errors->first('message'))
|
|
<li class="error-message-padding">{!! $errors->first('message', ':message') !!}</li>
|
|
@endif
|
|
</div>
|
|
@endif
|
|
<div class="row">
|
|
<!-- username -->
|
|
<div class="col-xs-6 form-group {{ $errors->has('title') ? 'has-error' : '' }}">
|
|
{!! Form::label('title',Lang::get('lang.title')) !!} <span class="text-red"> *</span>
|
|
{!! Form::text('title',null,['class' => 'form-control']) !!}
|
|
</div>
|
|
<!-- firstname -->
|
|
<div class="col-xs-12 form-group {{ $errors->has('message') ? 'has-error' : '' }}">
|
|
{!! Form::label('message',Lang::get('lang.message')) !!} <span class="text-red"> *</span>
|
|
{!! Form::textarea('message',null,['class' => 'form-control']) !!}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="box-footer">
|
|
{!! Form::submit(Lang::get('lang.submit'),['class'=>'form-group btn btn-primary'])!!}
|
|
</div>
|
|
</div>
|
|
<script>
|
|
$(function() {
|
|
//Add text editor
|
|
$("textarea").wysihtml5();
|
|
});
|
|
</script>
|
|
@stop
|