@extends('partials.box') @section($content_id)
{!! Form::open(['route' => 'admin.agreements.store', 'class' => 'form-horizontal']) !!}
{!! Form::label('text', Lang::get('agreement.form.status'), ['class' => 'col-md-2 control-label']) !!}
{!! Form::select('status', array( \App\Models\Agreement::$status['active'] => Lang::get('agreement.form.form.statusActive'), \App\Models\Agreement::$status['inactive'] => Lang::get('agreement.form.form.statusInactive'), ), old('status'), ['class' => 'form-control']) !!} {!! $errors->first('status', ':message') !!}
{!! Form::label('text', Lang::get('agreement.form.title'), ['class' => 'col-md-2 control-label']) !!}
{!! Form::text('title', old('title'), ['class' => 'form-control', 'required' => true]) !!} {!! $errors->first('title', ':message') !!}
{!! Form::label('text', Lang::get('agreement.form.trigger_code'), ['class' => 'col-md-2 control-label']) !!}
{!! Form::text('trigger_code', old('trigger_code'), ['class' => 'form-control']) !!} {!! $errors->first('trigger_code', ':message') !!}
{!! Form::label('start_time', Lang::get('agreement.form.start_time'), ['class' => 'col-md-2 control-label']) !!}
{!! Form::text('start_time', old('start_time'), ['class' => 'form-control timepicker']) !!}
{!! $errors->first('start_time', ':message') !!}
{!! Form::label('stop_time', Lang::get('agreement.form.stop_time'), ['class' => 'col-md-2 control-label']) !!}
{!! Form::text('stop_time', old('stop_time'), ['class' => 'form-control timepicker']) !!}
{!! $errors->first('stop_time', ':message') !!}
{!! Form::label('text', Lang::get('agreement.form.content'), ['class' => 'col-md-2 control-label']) !!}
{!! Form::textarea('content', old('content'), ['class' => 'form-control tinymce', 'required' => true]) !!} {!! $errors->first('content', ':message') !!}

{!! Form::submit(Lang::get('agreement.form.save'), ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@stop @section('footer-script') @include('partials.tinymce') @stop