Profile
<!-- View mode -->
<div id="profile-view">
<dl class="grid grid-cols-1 sm:grid-cols-2 gap-4 text-sm">
<div>
<dt class="text-gray-500">Name</dt>
<dd id="view-name" class="font-medium text-gray-900"></dd>
</div>
<div>
<dt class="text-gray-500">Company</dt>
<dd id="view-company" class="font-medium text-gray-900"></dd>
</div>
<div>
<dt class="text-gray-500">Email</dt>
<dd id="view-email" class="font-medium text-gray-900"></dd>
</div>
<div>
<dt class="text-gray-500">Phone</dt>
<dd id="view-phone" class="font-medium text-gray-900"></dd>
</div>
<div>
<dt class="text-gray-500">Marketing Emails</dt>
<dd id="view-marketing" class="font-medium text-gray-900"></dd>
</div>
<div>
<dt class="text-gray-500">Text Notifications</dt>
<dd id="view-texts" class="font-medium text-gray-900"></dd>
</div>
</dl>
</div>
<!-- Edit mode -->
<form id="profile-edit" class="hidden space-y-4">
<div>
<label for="edit-company" class="block text-sm font-medium text-gray-700">Company Name</label>
<input type="text" id="edit-company"
class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-primary-500 focus:ring-primary-500">
</div>
<div>
<label for="edit-email" class="block text-sm font-medium text-gray-700">Email</label>
<input type="email" id="edit-email"
class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-primary-500 focus:ring-primary-500">
</div>
<div>
<label for="edit-phone" class="block text-sm font-medium text-gray-700">Phone</label>
<input type="tel" id="edit-phone"
class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-primary-500 focus:ring-primary-500">
</div>
<div class="space-y-2">
<label class="flex items-center gap-2">
<input type="checkbox" id="edit-marketing"
class="rounded border-gray-300 text-primary-600 focus:ring-primary-500">
<span class="text-sm text-gray-700">Receive marketing emails</span>
</label>
<label class="flex items-center gap-2">
<input type="checkbox" id="edit-texts"
class="rounded border-gray-300 text-primary-600 focus:ring-primary-500">
<span class="text-sm text-gray-700">Receive text notifications</span>
</label>
</div>
<div id="profile-error" class="hidden text-sm text-red-600 bg-red-50 border border-red-200 rounded-md p-3"></div>
<div id="profile-success" class="hidden text-sm text-green-700 bg-green-50 border border-green-200 rounded-md p-3"></div>
<div class="flex gap-3">
<button type="submit" id="save-profile-btn" class="btn-primary px-4 py-2">Save Changes</button>
<button type="button" id="cancel-edit-btn" class="px-4 py-2 text-sm text-gray-600 hover:text-gray-900">Cancel</button>
</div>
</form>