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

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

@stop @section('content') {!! Form::open(['route' => 'post.newticket', 'method' => 'post', 'id' => 'form']) !!} @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('first_name'))
  • {!! $errors->first('first_name', ':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 @if ($errors->first('code'))
  • {!! $errors->first('code', ':message') !!}
  • @endif @if ($errors->first('mobile'))
  • {!! $errors->first('mobile', ':message') !!}
  • @endif
    @endif

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

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

    {!! Form::label('email', Lang::get('lang.email')) !!} @if ($email_mandatory->status == 1) * @endif {!! Form::text('email', null, ['class' => 'form-control', 'id' => 'email']) !!}
    {!! Form::label('email', Lang::get('lang.first_name')) !!} *
    {!! Form::label('fullname', Lang::get('lang.last_name')) !!}
    {!! Form::label('code', Lang::get('lang.country-code')) !!} @if ($email_mandatory->status == 0 || $settings->status == 1) * @endif {!! Form::text('code', null, [ 'class' => 'form-control', 'id' => 'country_code', 'placeholder' => $phonecode, 'title' => Lang::get('lang.enter-country-phone-code'), ]) !!}
    @if ($email_mandatory->status == 0 || $settings->status == 1) * @endif {!! Form::input('number', 'mobile', null, ['class' => 'form-control', 'id' => 'mobile']) !!}
    {!! Form::input('number', 'phone', null, ['class' => 'form-control', 'id' => 'phone_number']) !!} {!! $errors->first('phone', ':message') !!}

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

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

    {!! 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;', ]) !!}
    get(); ?> {!! Form::select( 'priority', [Lang::get('lang.priorities') => $Priority->pluck('priority_desc', 'priority_id')->toArray()], null, ['class' => 'form-control select'], ) !!}
    {!! Form::close() !!} @stop