@extends('themes.default1.agent.layout.agent') @section('Tickets') class="active" @stop @section('ticket-bar') active @stop @section('newticket') class="active" @stop @section('content') {!! Form::open(['route'=>'post.newticket','method'=>'post']) !!}

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

@if(Session::has('success'))
Success {{Session::get('success')}}
@endif @if(Session::has('fails'))
Fail! {{Session::get('fails')}}
@endif @if(Session::has('errors'))
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::input('number','phone',null,['class' => 'form-control']) !!} {!! $errors->first('phone', ':message') !!}

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

    {!! Form::select('helptopic', ['Helptopic'=>$helptopic->lists('topic','id')],null,['class' => 'form-control select']) !!} {!! $errors->first('helptopic', ':message') !!}
    {!! Form::select('sla', ['SLA'=>$sla_plan->lists('grace_period','id')],null,['class' => 'form-control select']) !!} {!! $errors->first('sla', ':message') !!}
    {{-- --}} {!! Form::text('duedate',null,['class' => 'form-control','id'=>'datemask']) !!}
    get();?> {!! Form::select('assignto', [''=>'Select an Agent','Agents'=>$agents->lists('first_name','id')],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')],null,['class' => 'form-control select']) !!}
    {!! Form::close() !!} @stop