@if($process->proposal) {{ $process->proposal->title }} @else KYC Process #{{ $process->id }} @endif

Client: @if($process->proposal && $process->proposal->client && $process->proposal->client->name !== 'null') {{ $process->proposal->client->name }} @elseif($process->external_client_name) {{ $process->external_client_name }} @elseif($process->client_name) {{ $process->client_name }} @else No client information @endif

@if($canManage) @endif ← Back to Processes
@if (session()->has('message'))
{{ session('message') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif

Status

{{ ucfirst(str_replace('_', ' ', $process->status)) }} @if($process->is_locked) 🔒 Locked @endif

Progress

{{ $process->progress_percentage }}%

{{ $process->completed_questions_count }}/{{ $process->total_questions_count }} completed

Notifications

{{ $process->notification_count }} sent

@if($process->notification_sent_at)

Last: {{ $process->notification_sent_at->format('M d, H:i') }}

@endif

Last Access

@if($process->last_access_at)

{{ $process->last_access_at->format('M d, H:i') }}

@else

Never accessed

@endif

Client Information & Actions

@if($process->client_email)

Email: {{ $process->client_email }}

@if($process->client_name)

Name: {{ $process->client_name }}

@endif @if($process->client_phone)

Phone: {{ $process->client_phone }}

@endif @if($process->client_company)

Company: {{ $process->client_company }}

@endif
@endif
@if($canManage) @if(!$process->client_email) @else @endif {{-- Lock functionality disabled --}} {{-- --}} @else
View Only - Contact Admin/Senior Lawyer for changes
@endif

External Access URL

@if($canManage) @endif
@if($process->password_required)

🔒 Password protected access

@else

🌐 Direct access (no password required)

@endif
@if($process->expires_at) Expires: {{ $process->expires_at->format('M d, Y H:i') }} @if($process->expires_at->isPast()) (Expired) @endif @endif @if($canManage) @endif
{{-- Lock functionality has been disabled --}} {{-- @if($process->is_locked && $process->lockedBy)

🔒 This KYC process was locked by {{ $process->lockedBy->name }} on {{ $process->locked_at->format('M d, Y H:i') }}

@endif --}}
@foreach($questionsByDepartment as $department => $questions)

{{ \App\Models\KycTemplate::getDepartments()[$department] ?? $department }}

@php $completedCount = $questions->filter(fn($q) => $q->response && $q->response->is_completed)->count(); $totalCount = $questions->count(); @endphp {{ $completedCount }}/{{ $totalCount }} Complete
@foreach($questions as $index => $question)

{{ $question->question_text }} @if($question->is_required) * @endif

Type: {{ ucfirst($question->type) }} @if($question->is_custom) Custom @endif
@if($question->response && $question->response->is_completed) ✓ Completed @else ⏳ Pending @endif @if($canManage) @endif
@if($question->response)
@if($question->response->response_text)

Response: {{ $question->response->response_text }}

@endif @if($question->response->file_path)
{{ $question->response->file_original_name }} Download
@endif @if($question->response->submitted_at)

Submitted: {{ $question->response->submitted_at->format('M d, Y H:i') }} @if($question->response->submitted_by_name) by {{ $question->response->submitted_by_name }} @endif

@endif
@endif
@endforeach
@endforeach @if($showNotificationModal)

Setup KYC Notification

@error('client_email') {{ $message }} @enderror
@error('client_name') {{ $message }} @enderror
@error('client_phone') {{ $message }} @enderror
@error('client_company') {{ $message }} @enderror
@error('custom_message') {{ $message }} @enderror

If enabled, a random password will be generated and sent to the client. If disabled, clients can access the KYC form directly with the URL.

@endif @if($showEditModal)

Edit KYC Process

Client Information

@error('client_email') {{ $message }} @enderror
@error('client_name') {{ $message }} @enderror
@error('client_phone') {{ $message }} @enderror
@error('client_company') {{ $message }} @enderror

Process Configuration

@foreach(\App\Models\KycTemplate::getDepartments() as $dept_key => $dept_name) @endforeach
@error('edit_departments') {{ $message }} @enderror
@error('edit_expires_at') {{ $message }} @enderror

If disabled, clients can access the KYC form directly with the URL without a password

@error('edit_notes') {{ $message }} @enderror
@endif @if($showAddQuestionsModal)

Add Questions to KYC Process

Add Questions from Templates

@if($available_templates && count($available_templates) > 0)
@foreach($available_templates as $template) @endforeach
@else

No additional templates available for the selected departments.

@endif

Add Custom Question

@error('new_question_text') {{ $message }} @enderror
@error('new_question_type') {{ $message }} @enderror
@error('new_question_department') {{ $message }} @enderror
@if($new_question_type === 'select')
@endif
@endif