@extends('themes.default1.client.layout.client') @section('title') {!! Lang::get('lang.submit_a_ticket') !!} - @stop @section('submit') class = "nav-item active" @stop @section('breadcrumb') {{--
--}}
@stop @section('check') @stop @section('content')
@if (Session::has('message'))
{!! Session::get('message') !!}
@endif @if (count($errors) > 0) @if (Session::has('check')) @endif @if (!Session::has('error'))
{!! Lang::get('lang.alert') !!} !
@endif @endif encrypt(csrf_token()); ?> {!! Form::open(['route' => 'client.form.post', 'method' => 'post', 'enctype' => 'multipart/form-data']) !!}

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

@if (Auth::user()) {!! Form::hidden('Name', Auth::user()->user_name, ['class' => 'form-control']) !!} @else
{!! Form::label('Name', Lang::get('lang.name')) !!} * {!! Form::text('Name', null, ['class' => 'form-control']) !!}
@endif @if (Auth::user()) {!! Form::hidden('Email', Auth::user()->email, ['class' => 'form-control']) !!} @else
{!! Form::label('Email', Lang::get('lang.email')) !!} @if ($email_mandatory->status == 1 || $email_mandatory->status == '1') * @endif {!! Form::email('Email', null, ['class' => 'form-control']) !!}
@endif @if (!Auth::user())
{!! Form::label('Code', Lang::get('lang.country-code')) !!} @if ($email_mandatory->status == 0 || $email_mandatory->status == '0') * @endif {!! Form::text('Code', null, [ 'class' => 'form-control', 'placeholder' => $phonecode, 'title' => Lang::get('lang.enter-country-phone-code'), ]) !!}
{!! Form::label('mobile', Lang::get('lang.mobile_number')) !!} @if ($email_mandatory->status == 0 || $email_mandatory->status == '0') * @endif {!! Form::text('mobile', null, ['class' => 'form-control']) !!}
{!! Form::label('Phone', Lang::get('lang.phone')) !!} {!! Form::text('Phone', null, ['class' => 'form-control']) !!}
@else {!! Form::hidden('mobile', Auth::user()->mobile, ['class' => 'form-control']) !!} {!! Form::hidden('Code', Auth::user()->country_code, ['class' => 'form-control']) !!} {!! Form::hidden('Phone', Auth::user()->phone_number, ['class' => 'form-control']) !!} @endif
{!! Form::label('help_topic', Lang::get('lang.choose_a_help_topic')) !!} {!! $errors->first('help_topic', ':message') !!} get(); // ?>
where('option_name', '=', 'user_priority')->first(); $user_Priority = $Priority->status; ?> @if (Auth::user()) @if (Auth::user()->active == 1) @if ($user_Priority == 1)
get(); ?> {!! Form::select('priority', ['Priority' => $Priority->pluck('priority_desc', 'priority_id')->toArray()], null, [ 'class' => 'form-control select', ]) !!}
@endif @endif @endif
{!! Form::label('Subject', Lang::get('lang.subject')) !!} * {!! Form::text('Subject', null, ['class' => 'form-control']) !!}
{!! Form::label('Details', Lang::get('lang.message')) !!} * {!! Form::textarea('Details', null, ['class' => 'form-control']) !!}

{!! Lang::get('lang.max') !!}. {!! $max_size_in_actual !!}
{{-- Event fire --}}
{!! Form::button(' ' . Lang::get('lang.submit'), [ 'type' => 'submit', 'class' => 'btn btn-info float-right', 'style' => 'style="border-color: rgb(0, 192, 239); background-color: rgb(0, 154, 186); color: white;', 'onclick' => 'this.disabled=true;this.innerHTML="Sending, please wait...";this.form.submit();', 'data-v-fce8d630', ]) !!}
{!! Form::close() !!}
@stop