- Add PublicCampaignsController for public campaign analytics
- Add public routes for /public/analytics/{slug} and /api/campaigns/{slug}
- Add public campaign analytics view with charts and KPIs
- Support for campaign sharing via custom slugs
- Real-time analytics with ApexCharts integration
151 lines
8.8 KiB
PHP
151 lines
8.8 KiB
PHP
<div class="col-lg-12">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h4 class="card-title mb-0">Edit Profile</h4>
|
|
</div>
|
|
<div class="card-body">
|
|
<form action="/users/profile/update" method="POST">
|
|
<!-- Personal Information -->
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<h5 class="mb-3">Personal Information</h5>
|
|
|
|
<div class="mb-3">
|
|
<label for="first_name" class="form-label">First Name</label>
|
|
<input type="text" class="form-control" id="first_name" name="first_name" value="<?php echo htmlspecialchars($user['first_name']); ?>" required>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="last_name" class="form-label">Last Name</label>
|
|
<input type="text" class="form-control" id="last_name" name="last_name" value="<?php echo htmlspecialchars($user['last_name']); ?>" required>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="email" class="form-label">Email</label>
|
|
<input type="email" class="form-control" id="email" name="email" value="<?php echo htmlspecialchars($user['email']); ?>" required>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="phone" class="form-label">Phone</label>
|
|
<input type="tel" class="form-control" id="phone" name="phone" value="<?php echo htmlspecialchars($user['phone']); ?>">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<h5 class="mb-3">Professional Information</h5>
|
|
|
|
<div class="mb-3">
|
|
<label for="job_title" class="form-label">Job Title</label>
|
|
<input type="text" class="form-control" id="job_title" name="job_title" value="<?php echo htmlspecialchars($user['job_title']); ?>">
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="company_name" class="form-label">Company</label>
|
|
<input type="text" class="form-control" id="company_name" name="company_name" value="<?php echo htmlspecialchars($user['company_name']); ?>">
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="website" class="form-label">Website</label>
|
|
<input type="url" class="form-control" id="website" name="website" value="<?php echo htmlspecialchars($user['website']); ?>">
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="description" class="form-label">Description</label>
|
|
<textarea class="form-control" id="description" name="description" rows="3"><?php echo htmlspecialchars($user['description']); ?></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Location Information -->
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<h5 class="mb-3">Location</h5>
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<div class="mb-3">
|
|
<label for="city" class="form-label">City</label>
|
|
<input type="text" class="form-control" id="city" name="city" value="<?php echo htmlspecialchars($user['city']); ?>">
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="mb-3">
|
|
<label for="country" class="form-label">Country</label>
|
|
<input type="text" class="form-control" id="country" name="country" value="<?php echo htmlspecialchars($user['country']); ?>">
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="mb-3">
|
|
<label for="zipcode" class="form-label">Zip Code</label>
|
|
<input type="text" class="form-control" id="zipcode" name="zipcode" value="<?php echo htmlspecialchars($user['zipcode']); ?>">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Profile Information -->
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<h5 class="mb-3">Profile Information</h5>
|
|
|
|
<div class="mb-3">
|
|
<label for="bio" class="form-label">Bio</label>
|
|
<textarea class="form-control" id="bio" name="bio" rows="4"><?php echo htmlspecialchars($profile['bio']); ?></textarea>
|
|
<small class="text-muted">Tell us about yourself...</small>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="location" class="form-label">Location</label>
|
|
<input type="text" class="form-control" id="location" name="location" value="<?php echo htmlspecialchars($profile['location']); ?>">
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="skills" class="form-label">Skills</label>
|
|
<input type="text" class="form-control" id="skills" name="skills" value="<?php echo htmlspecialchars(implode(', ', $profile['skills'])); ?>">
|
|
<small class="text-muted">Separate skills with commas (e.g., PHP, MySQL, JavaScript)</small>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Social Links -->
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<h5 class="mb-3">Social Links</h5>
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<div class="mb-3">
|
|
<label for="linkedin" class="form-label">LinkedIn</label>
|
|
<input type="url" class="form-control" id="linkedin" name="linkedin" value="<?php echo htmlspecialchars($profile['social_links']['linkedin'] ?? ''); ?>">
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="mb-3">
|
|
<label for="github" class="form-label">GitHub</label>
|
|
<input type="url" class="form-control" id="github" name="github" value="<?php echo htmlspecialchars($profile['social_links']['github'] ?? ''); ?>">
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="mb-3">
|
|
<label for="twitter" class="form-label">Twitter</label>
|
|
<input type="url" class="form-control" id="twitter" name="twitter" value="<?php echo htmlspecialchars($profile['social_links']['twitter'] ?? ''); ?>">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Submit Buttons -->
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="d-flex gap-2">
|
|
<button type="submit" class="btn btn-primary">Save Changes</button>
|
|
<a href="/apps/users/profile" class="btn btn-secondary">Cancel</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|