= settingsInput('name', $co_c['client_name'] ?? '', ['id' => 'coName', 'icon' => 'fa-building', 'label' => 'Name', 'required' => true, 'maxlength' => 200, 'placeholder' => 'The name you know them by', 'autofocus' => !$client_id]) ?>
= settingsInput('abbreviation', $co_c['client_abbreviation'] ?? '', ['id' => 'coAbbreviation', 'icon' => 'fa-id-badge', 'label' => 'Short name', 'maxlength' => 6, 'placeholder' => 'From the name']) ?>
= settingsInput('type', $co_c['client_type'] ?? '', ['id' => 'coType', 'icon' => 'fa-briefcase', 'label' => 'Industry', 'maxlength' => 200, 'placeholder' => 'Dental practice, law firm...']) ?>
= settingsInput('website', $co_c['client_website'] ?? '', ['id' => 'coWebsite', 'icon' => 'fa-globe', 'label' => 'Website', 'maxlength' => 200, 'placeholder' => 'example.com',
'help' => $client_id ? '' : 'Its domain and certificate are added too, to watch for renewals.']) ?>
= settingsSelect('referral', $co_c['client_referral'] ?? '', [], ['id' => 'coReferral', 'icon' => 'fa-link', 'label' => 'How they found you', 'search' => true,
'options_html' => '' . categoryOptionsHtml('Referral', settingsValue('referral', $co_c['client_referral'] ?? ''))]) ?>
= settingsTextarea('notes', $co_c['client_notes'] ?? '', ['id' => 'coNotes', 'label' => 'Notes', 'rows' => 3, 'placeholder' => 'Anything the team should know about them']) ?>