@extends('themes.default1.admin.layout.admin') @section('Staffs') active @stop @section('staffs-bar') active @stop @section('departments') class="active" @stop @section('HeadInclude') @stop @section('PageHeader')

{{Lang::get('lang.staffs')}}

@stop @section('breadcrumbs') @stop @section('content') {!! Form::open(array('action' => 'Admin\helpdesk\DepartmentController@store' , 'method' => 'post') )!!}

{!! Lang::get('lang.create_a_department') !!}

@if(Session::has('errors'))
Alert!
@if($errors->first('name'))
  • {!! $errors->first('name', ':message') !!}
  • @endif @if($errors->first('account_status'))
  • {!! $errors->first('account_status', ':message') !!}
  • @endif @if($errors->first('sla'))
  • {!! $errors->first('sla', ':message') !!}
  • @endif @if($errors->first('manager'))
  • {!! $errors->first('manager', ':message') !!}
  • @endif @if($errors->first('outgoing_email'))
  • {!! $errors->first('outgoing_email', ':message') !!}
  • @endif
    @endif
    {!! Form::label('name',Lang::get('lang.name')) !!} * {!! Form::text('name',null,['class' => 'form-control']) !!}
    {!! Form::label('type',Lang::get('lang.type')) !!}
    {!! Form::radio('type','1',true) !!} {{Lang::get('lang.public')}}
    {!! Form::radio('type','0',null) !!} {{Lang::get('lang.private')}}
    {!! Form::label('sla',Lang::get('lang.SLA_plan')) !!} {!!Form::select('sla', [''=>Lang::get('lang.select_a_sla'), Lang::get('lang.sla_plans')=>$slas->lists('grace_period','id')->toArray()],null,['class' => 'form-control select']) !!}
    {!! Form::label('manager',Lang::get('lang.manager')) !!} {!!Form::select('manager',[''=>Lang::get('lang.select_a_manager'),Lang::get('lang.manager')=>$user->lists('user_name','id')->toArray()],null,['class' => 'form-control select']) !!}

    {!! Lang::get('lang.outgoing_email_settings') !!}

    {!! Form::label('outgoing_email',Lang::get('lang.outgoing_email')) !!} {!!Form::select('outgoing_email', ['' => Lang::get('lang.system_default'), Lang::get('lang.emails')=>$emails->lists('email_name','id')->toArray()],null,['class' => 'form-control select']) !!}
    {!!Form::close()!!}
    @stop