@php use App\Enums\Leads\FlagType; use App\Enums\Leads\SourceType; use App\Enums\Leads\TypeOfContact; $selectedPlanTypeId = old('plan_type_id', $lead->plan_type_id); $selectedPlanType = $getPricingPlanType->firstWhere('id', $selectedPlanTypeId); $selectedParentId = old('parent_id', optional($selectedPlanType)->name === 'B2B' ? $lead->parent_id : null); $selectedFamilyParentId = old('family_parent_id', optional($selectedPlanType)->name === 'Family' ? $lead->parent_id : null); $dateOfBirth = $lead->date_of_birth ? \Illuminate\Support\Carbon::parse($lead->date_of_birth)->format('Y-m-d') : null; @endphp
@csrf @method('PUT') {{-- Personal Information --}}
Personal Information

Enter the lead identity, contact details, source, and academic interest information.

Lead ID
First name *
Last name *
Email *
Phone *
Address *
Nationality * @foreach ($nationalities as $nationality) @endforeach
Religion *
Gender *
Country * @foreach ($countriesSelect as $id => $name) @endforeach
Source * @foreach (SourceType::cases() as $source) @endforeach
Type of contact * @foreach (TypeOfContact::cases() as $type) @endforeach
Track type * @foreach ($trackTypesSelect as $id => $name) @endforeach
Program * @foreach ($programs as $program) @endforeach
@error('date_of_birth')
{{ $message }}
@enderror
{{-- Professional Details --}}
Professional Details

Define the lead's work background, assignee, plan type, and optional parent relation.

Industry * @foreach (App\Enums\IndustryEnum::cases() as $industry) @endforeach
Position *
Ad code *
Assigned to * @foreach ($usersSelect as $user) @endforeach
Lead plan type * @foreach ($getPricingPlanType as $planType) @endforeach
Select B2B Parent * @foreach ($getB2BParents as $b2b) @endforeach
Select Family Parent * @foreach ($getfamilyParents as $family) @endforeach
{{-- Lead Management --}}
Lead Management

Set the lead flag and add any internal notes.

Flag * @foreach (FlagType::cases() as $flag) @endforeach
Notes {{ old('notes', $lead->notes) }}
Cancel