@extends('themes.default1.agent.layout.agent') @section('Tickets') class="active" @stop @section('ticket-bar') active @stop @section('newticket') class="active" @stop @section('PageHeader')

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

@stop @section('content') {!! Form::open(['route'=>'post.newticket','method'=>'post','id'=>'form']) !!}

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

@if(Session::has('success'))

{{Session::get('success')}}
@endif @if(Session::has('fails'))

{!! Lang::get('lang.alert') !!}! {{Session::get('fails')}}
@endif @if(Session::has('errors'))

{!! Lang::get('lang.alert') !!}!
@if($errors->first('email'))
  • {!! $errors->first('email', ':message') !!}
  • @endif @if($errors->first('fullname'))
  • {!! $errors->first('fullname', ':message') !!}
  • @endif @if($errors->first('phone'))
  • {!! $errors->first('phone', ':message') !!}
  • @endif @if($errors->first('subject'))
  • {!! $errors->first('subject', ':message') !!}
  • @endif @if($errors->first('body'))
  • {!! $errors->first('body', ':message') !!}
  • @endif
    @endif

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

    {!! Form::label('email',Lang::get('lang.email')) !!} * {!! Form::text('email',null,['class' => 'form-control']) !!}
    {!! Form::label('fullname',Lang::get('lang.full_name')) !!} * {!! Form::text('fullname',null,['class' => 'form-control']) !!}
    {!! Form::label('code',Lang::get('lang.country-code')) !!} {!! Form::text('code',null,['class' => 'form-control', 'placeholder' => $phonecode, 'title' => Lang::get('lang.enter-country-phone-code')]) !!}
    {!! Form::input('number','mobile',null,['class' => 'form-control']) !!} {!! $errors->first('mobile', ':message') !!}
    {!! Form::input('number','phone',null,['class' => 'form-control']) !!} {!! $errors->first('phone', ':message') !!}

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

    {!! Form::select('helptopic', ['Helptopic'=>$helptopic->lists('topic','id')->toArray()],null,['class' => 'form-control select']) !!}
    {!! Form::select('sla', ['SLA'=>$sla_plan->lists('grace_period','id')->toArray()],null,['class' => 'form-control select']) !!}
    {!! Form::text('duedate',null,['class' => 'form-control','id'=>'datemask']) !!}
    get(); ?> {!! Form::select('assignto', [''=>'Select an Agent','Agents'=>$agents->lists('first_name','id')->toArray()],null,['class' => 'form-control select']) !!}

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

    {!! Form::text('subject',null,['class' => 'form-control']) !!}
    {!! Form::textarea('body',null,['class' => 'form-control','id' => 'body', 'style'=>"width:100%; height:150px;"]) !!}
    {!! Form::select('priority', ['Priority'=>$Priority->lists('priority_desc','priority_id')->toArray()],null,['class' => 'form-control select']) !!}
    {!! Form::close() !!} @stop