@props(['item' => new \App\Models\Item()]) @php $firstContactPerson = auth()->user()->company->company_pics->where('type', \App\Models\CompanyPic::CONTACT_1)->first(); $secondContactPerson = auth()->user()->company->company_pics->where('type', \App\Models\CompanyPic::CONTACT_2)->first(); @endphp

Contact Person

For this {{ $application->type }}, you are allowed to choose contact personnel to appear on the directory page once the {{ $application->type }} is approved.

Options:

contact_person) == 1)>
contact_person) == 2)>
@error('contact_person') {{ $message }} @enderror

Contact Person (Primary)

{{ ($firstContactPerson ? \App\Models\CompanyPic::TITLE[$firstContactPerson->title].' ' : '').$firstContactPerson?->name }}
{{ $firstContactPerson?->designation }}
{{ $firstContactPerson?->phone_no }}
{{ $firstContactPerson?->email }}

Contact Person (Secondary)

{{ ($firstContactPerson ? \App\Models\CompanyPic::TITLE[$secondContactPerson->title].' ' : '').$secondContactPerson?->name }}
{{ $secondContactPerson?->designation }}
{{ $secondContactPerson?->phone_no }}
{{ $secondContactPerson?->email }}

Contact Person (Primary)

@error('contact_1_title') {{ $message }} @enderror
@error('contact_1_name') {{ $message }} @enderror
@error('contact_1_designation') {{ $message }} @enderror
@error('contact_1_phone_no') {{ $message }} @enderror
@error('contact_1_email') {{ $message }} @enderror

Contact Person (Secondary)

@error('contact_2_title') {{ $message }} @enderror
@error('contact_2_name') {{ $message }} @enderror
@error('contact_2_designation') {{ $message }} @enderror
@error('contact_2_phone_no') {{ $message }} @enderror
@error('contact_2_email') {{ $message }} @enderror
@push('scripts') @endpush