@extends('themes.default1.admin.layout.admin')
@section('Manage')
class="nav-link active"
@stop
@section('manage-menu-parent')
class="nav-item menu-open"
@stop
@section('manage-menu-open')
class="nav nav-treeview menu-open"
@stop
@section('help')
class="nav-link active"
@stop
@section('HeadInclude')
@stop
@section('PageHeader')
{!! Lang::get('lang.help_topic') !!}
@stop
@section('breadcrumbs')
@stop
@section('content')
{!! Form::open(['action' => 'Admin\helpdesk\HelptopicController@store', 'method' => 'post']) !!}
@if(Session::has('errors'))
Alert!
@if($errors->first('status'))
{!! $errors->first('status', ':message') !!}
@endif
@if($errors->first('type'))
{!! $errors->first('type', ':message') !!}
@endif
@if($errors->first('topic'))
{!! $errors->first('topic', ':message') !!}
@endif
@if($errors->first('parent_topic'))
{!! $errors->first('parent_topic', ':message') !!}
@endif
@if($errors->first('custom_form'))
{!! $errors->first('custom_form', ':message') !!}
@endif
@if($errors->first('department'))
{!! $errors->first('department', ':message') !!}
@endif
@if($errors->first('priority'))
{!! $errors->first('priority', ':message') !!}
@endif
@if($errors->first('sla_plan'))
{!! $errors->first('sla_plan', ':message') !!}
@endif
@if($errors->first('auto_assign'))
{!! $errors->first('auto_assign', ':message') !!}
@endif
@endif
{!! Form::label('topic',Lang::get('lang.topic')) !!} *
{!! Form::text('topic',null,['class' => 'form-control']) !!}
{!! Form::label('ticket_status',Lang::get('lang.status')) !!}
{!! Form::radio('status','1',true) !!} {{Lang::get('lang.active')}}
{!! Form::radio('status','0') !!} {{Lang::get('lang.inactive')}}
{!! Form::label('type',Lang::get('lang.type')) !!}
{!! Form::radio('type','1',true) !!} {{Lang::get('lang.public')}}
{!! Form::radio('type','0') !!} {{Lang::get('lang.private')}}
{!! Form::label('parent_topic',Lang::get('lang.parent_topic')) !!}
{!!Form::select('parent_topic', [''=>Lang::get('lang.select_a_parent_topic'),Lang::get('lang.help_topic')=>$topics->pluck('topic','topic')->toArray()],1,['class' => 'form-control']) !!}
{!! Form::label('custom_form',Lang::get('lang.Custom_form')) !!}
{!!Form::select('custom_form', [''=>Lang::get('lang.select_a_form'),Lang::get('lang.custom_form')=>$forms->pluck('formname','id')->toArray()],1,['class' => 'form-control']) !!}
{!! Form::label('department',Lang::get('lang.department')) !!}
{!!Form::select('department', [''=>Lang::get('lang.select_a_department'),Lang::get('lang.departments')=>$departments->pluck('name','id')->toArray()],1,['class' => 'form-control']) !!}
{!! Form::label('priority',Lang::get('lang.priority')) !!} *
{!!Form::select('priority', [''=>Lang::get('lang.select_a_priority'),Lang::get('lang.priorities')=>$priority->pluck('priority_desc','priority_id')->toArray()],null,['class' => 'form-control']) !!}
{!! Form::label('sla_plan',Lang::get('lang.SLA_plan')) !!}
{!!Form::select('sla_plan', [''=>Lang::get('lang.select_a_sla_plan'),Lang::get('lang.sla_plans')=>$slas->pluck('name','id')->toArray()],1,['class' => 'form-control']) !!}
{!! Form::label('auto_assign',Lang::get('lang.auto_assign')) !!}
{!!Form::select('auto_assign', [''=>Lang::get('lang.select_an_agent'),Lang::get('lang.agents')=>$agents->pluck('full_name','id')->toArray()],null,['class' => 'form-control']) !!}
{!! Form::label('internal_notes',Lang::get('lang.internal_notes')) !!}
{!! Form::textarea('internal_notes',null,['class' => 'form-control','size' => '10x5']) !!}
{!! Form::close() !!}
@stop