@extends('front.layouts.main') @section('title', isset($lead->id) ? 'Edit Lead' : 'Add Lead') @push('pageCss') @endpush @section('content') @csrf @if (isset($lead)) @method('PUT') @endif {{ isset($lead->id) ? 'Edit Lead' : 'Add Lead' }} {{-- Company --}} Client Select @foreach ($companies as $company) company_id == $company->id) selected @endif> {{ $company->name }} @endforeach {{-- Product --}} Product Select {{-- Lead Type --}} Lead Type * lead_type ?? 'individual') == 'individual' ? 'checked' : '' }}> Individual lead_type ?? 'individual') == 'business' ? 'checked' : '' }}> Business {{-- Individual Fields --}} Customer Name Occupation {{-- Business Fields --}} Business Name Contact Person Name Business Description {{ old('business_description', $lead->business_description ?? '') }} {{-- Common Fields --}} Phone Number Email Location Select @foreach ($regionList as $region) location_id ?? '') == $region->id ? 'selected' : '' }}> {{ $region->region_name }} @endforeach Expected Closure Date Notes {{ old('notes', $lead->notes ?? '') }} Cancel Submit @endsection @push('pageJs') @endpush