@extends('template.layouts.template-base') @section('title') Edit Client | {{ config('setting.website_name') ?: config('app.name') }} @endsection @section('content')
@csrf @method('PUT') {{-- client --}}

Edit Company

@error('company_name')
{{ $message }}
@enderror
@php $selectedIndustry = old('industry_type', $client->industry_type ?? ''); $isOther = !in_array($selectedIndustry, ['IT', 'Manufacturing', 'Healthcare', 'Education', 'Retail']); $otherIndustryValue = $isOther ? old('other_industry_type', $selectedIndustry) : ''; @endphp
@error('industry_type')
{{ $message }}
@enderror
* @php $selectedSector = old('industry_sector', $client->industry_sector ?? ''); $isOtherSector = !in_array($selectedSector, [ 'Agriculture', 'Construction', 'Energy', 'Finance', 'Food & Beverage', 'Hospitality', 'Information Technology', 'Logistics', 'Media & Entertainment', 'Pharmaceuticals', 'Real Estate', 'Telecommunications', 'Transport', 'Utilities' ]); $otherSectorValue = $isOtherSector ? old('other_sector_type', $selectedSector) : ''; @endphp
@error('industry_type')
{{ $message }}
@enderror @error('other_sector_type')
{{ $message }}
@enderror
* @php $selectedCompany = old('company_type', $client->company_type ?? ''); $isOtherCompany = !in_array($selectedCompany, ['Private Limited', 'Public Limited', 'LLC', 'LLP', 'Sole Proprietorship', 'Partnership', 'OPC', 'Inc', 'Corp', 'Society','Trust']); $otherCompanyValue = $isOtherCompany ? old('other_company_type', $selectedCompany) : ''; @endphp @error('company_type')
{{ $message }}
@enderror
@error('founder_name')
{{ $message }}
@enderror
@php $founderDesignation = old('founder_designation', $client->founder_designation ?? ''); $isOtherDesignation = !in_array($founderDesignation, ['Manager', 'Executive', 'Director', 'CEO']); $otherFounderDesignation = $isOtherDesignation ? old('other_founder_designation', $founderDesignation) : ''; @endphp
@error('founder_designation')
{{ $message }}
@enderror @error('founder_designation')
{{ $message }}
@enderror
@error('gst')
{{ $message }}
@enderror
@error('contact_number')
{{ $message }}
@enderror
@error('alternate_cotact_number')
{{ $message }}
@enderror
@error('landline_number')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
@error('alternate_email_id')
{{ $message }}
@enderror
@error('website')
{{ $message }}
@enderror
* @error('payment_type')
{{ $message }}
@enderror
@error('total_requirements')
{{ $message }}
@enderror
@if (!empty($client->logo)) @endif @error('logo')
{{ $message }}
@enderror
@include('template.partials.pt-address-fields', ['record' => $client, 'cityAutoFill' => false])
{{-- contact details --}}

Address Details

@foreach($client->addresses as $index => $address)
@if($index == 0) Registered Current Address @else Permanent Address @endif @if($index != 0) same_as_current)> @endif
@include('template.client.partials.address-fields', [ 'address' => $address, ])
@endforeach
{{-- point of contact --}}

Point of Contact *

@foreach ($client->contacts as $index => $contact)
{{ $loop->first ? 'Contact Details' : 'Contact Details ' . $loop->iteration }} @unless ($loop->first) @endunless
@php $designation = $contact->designation; $isOther = !in_array($designation, ['Manager', 'Executive', 'Director', 'CEO']); @endphp
@endforeach
{{-- founder details --}}

Agreement Details

@error('party_name')
{{ $message }}
@enderror
@error('our_side_party_name')
{{ $message }}
@enderror
* @error('freezing_period')
{{ $message }}
@enderror
* @error('freezing_duration')
{{ $message }}
@enderror
@error('date_of_empanelment')
{{ $message }}
@enderror
@error('date_of_renewal')
{{ $message }}
@enderror
@include('template.client.partials.wages-details')

Others

@error('remarks')
{{ $message }}
@enderror
status) == '1' ? 'checked' : '' }}>
status) == '0' ? 'checked' : '' }}>
@error('status')
{{ $message }}
@enderror
Cancel @if ($client->is_draft) @endif
@endsection @section('scripts') @include('template.partials.tab-next-field') @endsection