@extends('admin.layouts.main') @section('title', $edit ? 'Edit Kua Product' : 'Add Kua Product') {{-- Font Awesome for caret icons --}} {{-- Daterangepicker CSS --}} @section('content')
@include('admin.common.sidebar')
@csrf

@{{ currentStepTitle }}


@{{ validationErrors.client_id[0] }}
@{{ validationErrors.product_name[0] }}
@{{ validationErrors.product_category[0] }}
@{{ formData.commission_agreement.name || formData.commission_agreement_file }}
@{{ formData.commission_agreement_file || commissionAgreementDisplayName() }}
@{{ validationErrors.commission_agreement[0] }}
{{--
@{{ validationErrors.allow_lead_logging[0] }}
--}}

Allow users to log leads for this product.

This is a mandatory step.

Allow users to enter TIN number and check if the customer already exists or not.

This is a mandatory step.

Prepare the form you need GA to submit in order to complete the sales.

This is a mandatory step.

# Questions Question Type Is Mandatory? Actions
No sales completion questions added yet.
@{{ index + 1 }} @{{ element.question }} @{{ formatQuestionType(element.question_type) }} @{{ element.is_mandatory ? 'Yes' : 'No' }}
@{{ validationErrors.sales_completion_field[0] }}
@{{ validationErrors.has_outlet_process[0] }}
Select Branches & Contacts
Loading branches…
No branches found for the selected client.
@{{ validationErrors.has_client_hq_process[0] }}
Select Branches & Contacts
Loading HQ data…
No HQ branches found for the selected client.
@{{ validationErrors.client_hq_process_field[0] }}
@{{ validationErrors.has_after_sales_activity[0] }}
{{--
# Questions Question Type Is Mandatory? Actions
No GA-responsible questions added yet.
@{{ index + 1 }} @{{ question.question }} @{{ formatQuestionType(question.question_type) }} @{{ question.is_mandatory ? 'Yes' : 'No' }}
# Questions Question Type Is Mandatory? Actions
No Admin-responsible questions added yet.
@{{ index + 1 }} @{{ question.question }} @{{ formatQuestionType(question.question_type) }} @{{ question.is_mandatory ? 'Yes' : 'No' }}
--}}
{{-- --}}
# Questions Question Type Is Mandatory? Actions
No after-sales questions added yet.
@{{ index + 1 }} @{{ question.question }} @{{ formatQuestionType(question.question_type) }} @{{ question.is_mandatory ? 'Yes' : 'No' }}
No After sales completion questions added yet.
@{{ index + 1 }} @{{ question.question }} @{{ formatQuestionType(question.question_type) }} @{{ question.is_mandatory ? 'Yes' : 'No' }}
@{{ validationErrors.after_sales_activity_field[0] }}
{{--

Define the commission structure for each activity stage.

--}} @php $commissionStages = [ 'lead_generation' => [ 'description' => 'Lead Generation', 'always_show' => true, ], 'customer_identification' => [ 'description' => 'Customer Identification', 'always_show' => true, ], 'sales_completion' => [ 'description' => 'Sales Completion', 'always_show' => true, ], 'outlet_process' => [ 'description' => 'Outlet Process', 'toggle_id' => 'has_outlet_process_yes', 'toggle_value' => '1', 'always_show' => false, ], 'client_hq_process' => [ 'description' => 'Client HQ Process', 'toggle_id' => 'has_client_hq_process_yes', 'toggle_value' => '1', 'always_show' => false, ], 'after_sales_activity' => [ 'description' => 'After Sales Activity', 'toggle_id' => 'has_after_sales_activity_yes', 'toggle_value' => '1', 'always_show' => false, ], ]; @endphp
Stage Description Commission Type Value
@{{ index + 1 }} @{{ stage.name }}
@{{ validationErrors.commission_mapping_field[0] }}
{{--
--}}
{{-- Custom Question Modal --}} {{-- delete custom question modal --}} {{-- Copy question modal --}}
@endsection @push('pageJs') @endpush