{{ __("Create a ") }} {{ ucwords($department->department_name) }} {{ _("ticket") }} {{-- Custom Ticket Submission Intro Message --}} @php $ticketSubmissionIntro = \App\Extensions\Installed\Customisation\Models\Customization::get('ticket_submission_intro'); @endphp @if($ticketSubmissionIntro)

@replacePlaceholders($ticketSubmissionIntro)

@endif
@if(Auth::guest())
@endif @hasanyrole('superadmin|employee|admin')
{{-- Search Input --}}
{{-- Search Icon / Clear Button / Loading Spinner --}} @if($selectedUser) @else {{-- Loading Spinner (shows during search) --}}
{{-- Search Icon (shows when not loading) --}} @endif
{{-- Dropdown Results --}}
@if(empty($filteredUsers))
{{ __('No customers found. Try a different search.') }}
@else @foreach($filteredUsers as $index => $user) @endforeach @endif
{{-- Selected User Display (Improved - Ticaga Indigo) --}} @if($selectedUser)
{{ substr($selectedUser['name'], 0, 1) }}{{ substr(explode(' ', $selectedUser['name'])[1] ?? '', 0, 1) }}
Creating ticket for
{{ $selectedUser['name'] }}
{{ $selectedUser['email'] }}
{{-- Blesta Service Dropdown (conditional) --}} @if($blestaExtensionAvailable && $selectedUser && !empty($customerServices))

Link this ticket to a specific customer service for better tracking.

@endif @else

{{ __('Leave empty to create an internal ticket assigned to you.') }}

@endif
@endhasanyrole
@if($department_info->cc_enabled == '1')
@endif @if($department_info->allows_high_priority != '3')
{{-- Dropdown menu --}}
@endif
@livewire('markdown-x', [ 'content' => $content, 'name' => 'content', 'key' => 'ticket-content-editor', 'section' => 'write', 'style' => [ 'textarea' => 'w-full min-h-48 mx-auto px-5 md:px-1 pt-5 font-mono leading-loose tracking-tighter border-0 outline-none focus:outline-none text-lg text-gray-600 dark:text-gray-300 dark:bg-gray-800 resize-none overflow-hidden', 'height' => 'min-h-48', 'preview' => 'markdown-preview min-h-48 overflow-y-auto px-5 pt-5 bg-white dark:bg-gray-900 prose prose-lg max-w-none dark:prose-invert' ] ])
@error('content')

{{ $message }}

@enderror
@php $hookManager = app(\App\Extensions\Hooks\HookManager::class); $customFieldBlocks = $hookManager->collect(\App\Extensions\Hooks\Hooks::UI_TICKET_CREATE_FIELDS, $department_info ?? null); @endphp @if(!empty($customFieldBlocks))
{!! implode('', $customFieldBlocks) !!}
@endif {{-- File Attachments --}} @if($settings['enabled'] ?? false)
{{-- Upload Progress Bar --}}

Uploading files, please wait...

@error('files.*')

{{ $message }}

@enderror
{{-- Upload Info Box --}}
@if(Auth::check() && Auth::user()->hasAnyRole('superadmin', 'admin', 'employee')) {{-- Employee View - No limits --}}
Max size: {{ $settings['max_file_size_mb'] }}MB
Selected: {{ count($files ?? []) }} (unlimited)
@else {{-- Customer View - With limits --}}
Max size: {{ $settings['max_file_size_mb'] }}MB
Max files: {{ $settings['max_files_per_ticket'] }}
Selected: {{ count($files ?? []) }}
@endif {{-- Selected Files Indicator --}} @if(!empty($files))
{{ count($files) }} file{{ count($files) > 1 ? 's' : '' }} selected and ready to upload
@endif
@endif

{{ __('Your IP Address: ') }}{{ $ip_address }} {{ __(' is recorded on submission.') }}

{{ __('Create') }} {{ __('Uploading files...') }} {{ __('Creating ticket...') }}