- Created separate MoneyFlix project directory - Copied Node.js redirector from production server - Added CRM PHP code (Redirects module, Core classes, Config, Routes, Views) - Created comprehensive documentation (README_MONEYFLIX.md) - Added sync script to keep CRM code updated (sync-from-crm.sh) - Configured .gitignore for Node.js and PHP - Set up proper project structure for multi-client isolation This separates MoneyFlix from the main CRM to avoid confusion between different client systems and provides a dedicated environment for MoneyFlix-specific development and maintenance.
165 lines
9.0 KiB
PHP
165 lines
9.0 KiB
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
use App\Core\View;
|
|
$profile = \App\Api\ProfileSettingsProvider::getProfileData();
|
|
?>
|
|
<div class="col-xxl-9">
|
|
<div class="card mt-xxl-n5">
|
|
<div class="card-header">
|
|
<ul class="nav nav-tabs-custom rounded card-header-tabs border-bottom-0" role="tablist">
|
|
<li class="nav-item">
|
|
<a class="nav-link active" data-bs-toggle="tab" href="#personalDetails" role="tab">
|
|
<i class="fas fa-home"></i>
|
|
Personal Details
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" data-bs-toggle="tab" href="#changePassword" role="tab">
|
|
<i class="far fa-user"></i>
|
|
Change Password
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" data-bs-toggle="tab" href="#experience" role="tab">
|
|
<i class="far fa-envelope"></i>
|
|
Experience
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" data-bs-toggle="tab" href="#privacy" role="tab">
|
|
<i class="far fa-envelope"></i>
|
|
Privacy Policy
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="card-body p-4">
|
|
<div class="tab-content">
|
|
<div class="tab-pane active" id="personalDetails" role="tabpanel">
|
|
<form id="profileForm" action="/api/profile" method="post" onsubmit="return handleProfileSubmit(event)">
|
|
<div class="row">
|
|
<div class="col-lg-6">
|
|
<div class="mb-3">
|
|
<label for="firstnameInput" class="form-label">First Name</label>
|
|
<input type="text" class="form-control" data-source="first_name" placeholder="Enter your firstname" value="<?php echo $profile['user']['first_name']; ?>">
|
|
</div>
|
|
</div>
|
|
<!--end col-->
|
|
<div class="col-lg-6">
|
|
<div class="mb-3">
|
|
<label for="lastnameInput" class="form-label">Last Name</label>
|
|
<input type="text" class="form-control" data-source="last_name" placeholder="Enter your lastname" value="<?php echo $profile['user']['last_name']; ?>">
|
|
</div>
|
|
</div>
|
|
<!--end col-->
|
|
<div class="col-lg-6">
|
|
<div class="mb-3">
|
|
<label for="phonenumberInput" class="form-label">Phone Number</label>
|
|
<input type="text" class="form-control" data-source="phone" placeholder="Enter your phone number" value="<?php echo $profile['user']['phone']; ?>">
|
|
</div>
|
|
</div>
|
|
<!--end col-->
|
|
<div class="col-lg-6">
|
|
<div class="mb-3">
|
|
<label for="emailInput" class="form-label">Email Address</label>
|
|
<input type="email" class="form-control" data-source="email" placeholder="Enter your email" value="<?php echo $profile['user']['email']; ?>">
|
|
</div>
|
|
</div>
|
|
<!--end col-->
|
|
</div>
|
|
<!--end row-->
|
|
<div class="text-end">
|
|
<button type="submit" class="btn btn-primary">Update Profile</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<!--end tab-pane-->
|
|
<div class="tab-pane" id="changePassword" role="tabpanel">
|
|
<form id="passwordForm" action="/api/profile/password" method="post" onsubmit="return handlePasswordSubmit(event)">
|
|
<div class="row">
|
|
<div class="col-lg-6">
|
|
<div class="mb-3">
|
|
<label for="currentPassword" class="form-label">Current Password</label>
|
|
<input type="password" class="form-control" name="current_password" placeholder="Enter current password">
|
|
</div>
|
|
</div>
|
|
<!--end col-->
|
|
<div class="col-lg-6">
|
|
<div class="mb-3">
|
|
<label for="newPassword" class="form-label">New Password</label>
|
|
<input type="password" class="form-control" name="new_password" placeholder="Enter new password">
|
|
</div>
|
|
</div>
|
|
<!--end col-->
|
|
<div class="col-lg-6">
|
|
<div class="mb-3">
|
|
<label for="confirmPassword" class="form-label">Confirm Password</label>
|
|
<input type="password" class="form-control" name="confirm_password" placeholder="Confirm new password">
|
|
</div>
|
|
</div>
|
|
<!--end col-->
|
|
</div>
|
|
<!--end row-->
|
|
<div class="text-end">
|
|
<button type="submit" class="btn btn-primary">Change Password</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<!--end tab-pane-->
|
|
<div class="tab-pane" id="experience" role="tabpanel">
|
|
<div class="row">
|
|
<?php foreach ($profile['experience'] as $exp): ?>
|
|
<div class="col-lg-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<h5 class="card-title"><?php echo $exp['company']; ?></h5>
|
|
<h6 class="text-muted"><?php echo $exp['position']; ?></h6>
|
|
<p class="text-muted mb-2"><?php echo $exp['period']; ?></p>
|
|
<p class="mb-0"><?php echo $exp['description']; ?></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
</div>
|
|
<!--end tab-pane-->
|
|
<div class="tab-pane" id="privacy" role="tabpanel">
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<h5 class="card-title">Privacy Policy</h5>
|
|
<p class="text-muted">Your privacy is important to us. This policy describes how we collect, use, and protect your personal information.</p>
|
|
<div class="form-check form-switch">
|
|
<input class="form-check-input" type="checkbox" id="emailNotifications" checked>
|
|
<label class="form-check-label" for="emailNotifications">
|
|
Email Notifications
|
|
</label>
|
|
</div>
|
|
<div class="form-check form-switch">
|
|
<input class="form-check-input" type="checkbox" id="smsNotifications">
|
|
<label class="form-check-label" for="smsNotifications">
|
|
SMS Notifications
|
|
</label>
|
|
</div>
|
|
<div class="form-check form-switch">
|
|
<input class="form-check-input" type="checkbox" id="profileVisibility" checked>
|
|
<label class="form-check-label" for="profileVisibility">
|
|
Profile Visibility
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--end tab-pane-->
|
|
</div>
|
|
<!--end tab-content-->
|
|
</div>
|
|
<!--end card-body-->
|
|
</div>
|
|
<!--end card-->
|
|
</div>
|
|
<!--end col-->
|