- 👤
+
+
+
+
+ สวัสดี, {{ authStore.user?.fullName || 'อาจารย์' }}
+
+
ยินดีต้อนรับกลับสู่ระบบ
+
+
+
+
{{ authStore.user?.fullName || 'อาจารย์ทดสอบ' }}
+
{{ authStore.user?.role || 'INSTRUCTOR' }}
+
+
+ 👨🏫
+
+
+
+
+
+ {{ authStore.user?.fullName }}
+ {{ authStore.user?.email }}
+
+
+
+
+
+
+
+
+
+
+ โปรไฟล์
+
+
+
+
+
+
+
+
+
+ ออกจากระบบ
+
+
+
+
@@ -96,9 +137,24 @@ definePageMeta({
middleware: 'auth'
});
+const authStore = useAuthStore();
const instructorStore = useInstructorStore();
const router = useRouter();
+// Navigation functions
+const goToProfile = () => {
+ router.push('/instructor/profile');
+};
+
+const goToSettings = () => {
+ router.push('/instructor/settings');
+};
+
+const handleLogout = () => {
+ authStore.logout();
+ router.push('/login');
+};
+
// Fetch dashboard data on mount
onMounted(() => {
instructorStore.fetchDashboardData();
diff --git a/frontend_management/pages/instructor/profile/index.vue b/frontend_management/pages/instructor/profile/index.vue
new file mode 100644
index 00000000..a7f762a5
--- /dev/null
+++ b/frontend_management/pages/instructor/profile/index.vue
@@ -0,0 +1,419 @@
+
+
+
+
+
โปรไฟล์ของฉัน
+
จัดการข้อมูลส่วนตัวของคุณ
+
+
+
+
+
+
+
+
+ {{ profile.avatar }}
+
+
+
+
+
+
+
+
+
ชื่อ-นามสกุล
+
{{ profile.fullName }}
+
+
+
+
อีเมล
+
{{ profile.email }}
+
+
+
+
Username
+
{{ profile.username }}
+
+
+
+
เบอร์โทร
+
{{ profile.phone || '-' }}
+
+
+
+
ตำแหน่ง
+
+ {{ getRoleLabel(profile.role) }}
+
+
+
+
+
วันที่สมัคร
+
{{ formatDate(profile.createdAt) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ แก้ไขโปรไฟล์
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ เปลี่ยนรหัสผ่าน
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/frontend_management/pages/login.vue b/frontend_management/pages/login.vue
index b8cb0183..8d636cbe 100644
--- a/frontend_management/pages/login.vue
+++ b/frontend_management/pages/login.vue
@@ -1,6 +1,5 @@
-
-
+
E-Learning
@@ -36,6 +35,12 @@
/>
+
+
+
-
ทดสอบ: instructor@test.com / admin@test.com
+
ทดสอบ: admin@elearning.local / instructor@elearning.local
-
+