@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') Kua Product @if ($edit) Edit Kua Product @else Add Kua Product @endif 1 Product Information 2 Lead Generation 3 Customer Identification 4 Sales Completion 5 Outlet Process 6 Client HQ Process 7 After Sales Activity 8 Commission Mapping @csrf @{{ currentStepTitle }} Client * Select @foreach ($clients as $client) {{ $client->name }} @endforeach @{{ validationErrors.client_id[0] }} Product Name * @{{ validationErrors.product_name[0] }} Product Category Select @foreach ($productCategories as $category) {{ $category->name }} @endforeach @{{ validationErrors.product_category[0] }} Commission Agreement * Attach PDF Document @{{ formData.commission_agreement.name || formData.commission_agreement_file }} @{{ formData.commission_agreement_file || commissionAgreementDisplayName() }} @{{ validationErrors.commission_agreement[0] }} {{-- Lead Source Allow users to log leads for this product Yes No @{{ 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. Define Form Fields* Copy from Another Product Add Question # 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] }} This product has outlet process Yes No @{{ validationErrors.has_outlet_process[0] }} Select Branches & Contacts Loading branches… No branches found for the selected client. @{{ branch.name }} ▸ @{{ c.first_name }} @{{ c.last_name }} (@{{ c.email }}) No contacts This product has client HQ process Yes No @{{ validationErrors.has_client_hq_process[0] }} Select Branches & Contacts Loading HQ data… No HQ branches found for the selected client. @{{ hq.name }} ▸ @{{ c.first_name }} @{{ c.last_name }} • @{{ c.email }} No contacts for this HQ branch. @{{ validationErrors.client_hq_process_field[0] }} This product has after sales activity Yes No @{{ validationErrors.has_after_sales_activity[0] }} Select After Sales Activity Type* {{-- GA-Responsible Admin-Responsible --}} Customizable Form {{-- Add Question # 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' }} Add Question # 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' }} --}} Add Question # 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] }} {{-- Commission Mapping 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 }} Fixed % Nill @{{ validationErrors.commission_mapping_field[0] }} {{-- --}} Previous Cancel Loading... Next Submitting... Submit {{-- Custom Question Modal --}} {{-- Dynamic title --}} @{{ modal.question.title }} × @csrf Question * {{-- CORRECT BINDING --}} Question Type * {{-- CORRECT BINDING --}} Select Type Date Date Time Freehand Number Radio Document Image {{-- CORRECT BINDING --}} Is Mandatory? Saving... Save Question {{-- delete custom question modal --}} Delete Custom Question × Are you sure you want to delete question? {{-- Copy question modal --}} Copy questions from another product × @csrf You can only copy questions for the products from the same/any client. Product Select @{{ product.product_name }} {{-- This product has @{{ selectedProductQuestionCount }} questions. --}} @endsection @push('pageJs') @endpush
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.
Prepare the form you need GA to submit in order to complete the sales.
Define the commission structure for each activity stage.
Are you sure you want to delete question?
You can only copy questions for the products from the same/any client.
This product has @{{ selectedProductQuestionCount }} questions.