@if($isSubmitted)

KYC Process Completed!

Thank you for completing the KYC requirements. All information has been submitted successfully.

You can close this page now. Our team will review your submission and contact you if any additional information is needed.

@else

{{ $process->proposal->title }}

Client: {{ $process->proposal->client_name }}

{{ $this->getProgressPercentage() }}%
Complete
@if($process->expires_at)
Expires: {{ $process->expires_at->format('M d, Y') }}
@endif
@if (session()->has('message'))
{{ session('message') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif @if (session()->has('success'))
{{ session('success') }}
@endif

Contact Information

@error('contactName') {{ $message }} @enderror
@error('contactEmail') {{ $message }} @enderror
@if(count($departments) > 1)
@endif @php $currentDepartment = $departments[$currentStep] ?? $departments[0]; @endphp @if(isset($questionsByDepartment[$currentDepartment]))
@foreach($questionsByDepartment[$currentDepartment] as $question)

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

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

@if($question->response && $question->response->is_completed)
Completed
@endif
@if($question->type === 'text') @elseif($question->type === 'textarea') @elseif($question->type === 'date') @elseif($question->type === 'select') @elseif($question->type === 'checkbox') @if($question->options)
@foreach($question->options as $option) @endforeach
@endif @elseif($question->type === 'file')
@if($question->file_types)

Allowed types: {{ $question->file_types }}

@endif
@if(isset($this->files[$question->id])) @endif @if($question->response && $question->response->file_path)
{{ $question->response->file_original_name }}
@endif
@endif @php $conversations = $question->conversations() ->with(['messages.senderUser', 'creator']) ->where('status', 'open') ->get(); @endphp @if($conversations->count() > 0)

Information Requests from Legal Team {{ $conversations->count() }} open

@foreach($conversations as $conversation)
{{ $conversation->subject ?: 'Information Request' }}
{{ $conversation->created_at->diffForHumans() }}
@foreach($conversation->messages as $message)
{{ $message->isFromLawyer() ? $message->senderUser->name : 'You' }} {{ $message->created_at->format('M j, g:i A') }}

{{ $message->message }}

@if($message->hasAttachments())
@foreach($message->attachments as $attachment) @endforeach
@endif
@endforeach
@error('conversationReplies.' . $conversation->id) {{ $message }} @enderror
@endforeach
@endif
@endforeach
@endif
@if($currentStep > 0 && count($departments) > 1) @endif
@if($currentStep < count($departments) - 1) @else @endif
@if($process->notes)

Special Instructions

{{ $process->notes }}

@endif @endif