@php $manageTypePermission = user()->permission('manage_ticket_type'); $manageAgentPermission = user()->permission('manage_ticket_agent'); $manageChannelPermission = user()->permission('manage_ticket_channel'); @endphp

@lang('modules.tickets.ticketDetail')

@if (!in_array('client', user_roles())) @if ($addPermission == 'all') @if (!(isset($client)) && !(isset($employee)))
@endif
@if (isset($client)) @else @foreach ($clients as $client) @endforeach @endif
@if(isset($employee) && !is_null($employee)) @else @endif
@else @endif @else @endif

@lang('modules.client.clientOtherDetails')

@if (!in_array('client', user_roles()))
@if ($manageAgentPermission == 'all') @endif
@endif
@if ($manageTypePermission == 'all') @endif
@if ($manageChannelPermission == 'all') @endif
@if (isset($fields) && count($fields) > 0) @foreach ($fields as $field)
@if ($field->type == 'text') @elseif($field->type == 'password') @elseif($field->type == 'number') @elseif($field->type == 'textarea') @elseif($field->type == 'radio')
@foreach ($field->values as $key => $value) @endforeach
@elseif($field->type == 'select')
{!! Form::select('custom_fields_data[' . $field->name . '_' . $field->id . ']', $field->values, isset($editUser) ? $editUser->custom_fields_data['field_' . $field->id] : '', ['class' => 'form-control select-picker']) !!}
@elseif($field->type == 'date') @elseif($field->type == 'checkbox')
@foreach ($field->values as $key => $value) @endforeach
@endif
@endforeach @endif
@lang('app.save') @lang('app.cancel')