File size: 35,008 Bytes
714995a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1e92465
 
714995a
 
 
 
 
 
 
 
 
 
 
1e92465
 
 
 
714995a
 
1e92465
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
714995a
 
 
 
 
 
1e92465
 
 
 
 
714995a
1e92465
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
714995a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Select Course Modules - LearnFlow</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <link href="https://cdn.jsdelivr.net/npm/@tailwindcss/custom-forms@0.2.1/dist/custom-forms.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.8.2/dist/alpine.min.js" defer></script>
    <link rel="stylesheet" href="style.css">
</head>
<body class="bg-gray-50 font-sans antialiased">
    <div class="min-h-screen" x-data="courseSelection()">
        <!-- Header -->
        <header class="bg-indigo-700 text-white shadow-lg">
            <div class="container mx-auto px-4 py-6">
                <div class="flex justify-between items-center">
                    <div class="flex items-center space-x-2">
                        <i data-feather="book-open" class="w-8 h-8"></i>
                        <h1 class="text-2xl font-bold">LearnFlow</h1>
                    </div>
                    <nav class="hidden md:flex space-x-6">
                        <a href="index.html" class="hover:text-indigo-200">Dashboard</a>
                        <a href="index.html" class="hover:text-indigo-200">Courses</a>
                        <a href="index.html" class="hover:text-indigo-200">Progress</a>
                        <div class="flex items-center space-x-2">
                            <img src="http://static.photos/people/40x40/42" alt="User" class="w-8 h-8 rounded-full">
                            <span>John Doe</span>
                        </div>
                    </nav>
                    <button class="md:hidden" @click="mobileMenuOpen = !mobileMenuOpen">
                        <i data-feather="menu" class="w-6 h-6"></i>
                    </button>
                </div>
            </div>
        </header>

        <!-- Mobile Menu -->
        <div class="md:hidden bg-indigo-800 text-white" x-show="mobileMenuOpen" x-transition>
            <div class="container mx-auto px-4 py-3 space-y-3">
                <a href="index.html" class="block py-2 hover:text-indigo-200">Dashboard</a>
                <a href="index.html" class="block py-2 hover:text-indigo-200">Courses</a>
                <a href="index.html" class="block py-2 hover:text-indigo-200">Progress</a>
                <div class="flex items-center space-x-2 py-2">
                    <img src="http://static.photos/people/40x40/42" alt="User" class="w-8 h-8 rounded-full">
                    <span>John Doe</span>
                </div>
            </div>
        </div>

        <!-- Main Content -->
        <main class="container mx-auto px-4 py-8">
            <div class="max-w-4xl mx-auto">
                <!-- Course Selection -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden mb-8">
                    <div class="px-6 py-4 border-b border-gray-200">
                        <h2 class="text-xl font-semibold text-gray-800">Select Course</h2>
                    </div>
                    <div class="p-6">
                        <select x-model="selectedCourse" @change="updateModules()" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
                            <option value="">-- Select a Course --</option>
                            <option value="webdev">Web Development</option>
                            <option value="mobile">Mobile Development</option>
                            <option value="datascience">Data Science</option>
                        </select>
                    </div>
                </div>
                <!-- Modules Selection -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden" x-show="selectedCourse">
                    <div class="px-6 py-4 border-b border-gray-200">
                        <h2 class="text-xl font-semibold text-gray-800">Available Modules</h2>
                        <p class="mt-1 text-sm text-gray-500" x-text="'Select modules to add to your learning path'"></p>
                    </div>
                    
                    <div class="divide-y divide-gray-200">
                        <template x-for="module in modules" :key="module.id">
                            <div class="p-6 hover:bg-gray-50 transition">
                                <div class="flex items-center justify-between">
                                    <div class="flex items-start space-x-4">
                                        <input type="checkbox" :id="'module-'+module.id" x-model="selectedModules" :value="module.id" class="mt-1 h-5 w-5 text-indigo-600 rounded focus:ring-indigo-500">
                                        <div>
                                            <label :for="'module-'+module.id" class="text-lg font-medium text-gray-900 cursor-pointer" x-text="module.title"></label>
                                            <p class="mt-1 text-sm text-gray-500" x-text="module.description"></p>
                                            <div class="mt-2 flex items-center text-sm text-gray-500">
                                                <i data-feather="clock" class="w-4 h-4 mr-1"></i>
                                                <span x-text="module.duration"></span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="text-lg font-medium text-indigo-600" x-text="'
                    <div class="p-6" x-show="selectedModules.length > 0">
                        <button @click="saveSelection()" class="w-full px-6 py-3 bg-indigo-600 rounded-lg text-white font-medium hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition">
                            Enroll Now ($<span x-text="totalPrice"></span>)
                        </button>
                        <p class="mt-2 text-center text-sm text-gray-500">
                            Or <a href="#" @click.prevent="selectedModules = []" class="text-indigo-600 hover:text-indigo-800">clear selection</a>
                        </p>
</div>
            </div>
        </main>

        <!-- Footer -->
        <footer class="bg-gray-800 text-white py-8">
            <div class="container mx-auto px-4">
                <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
                    <div>
                        <h3 class="text-lg font-semibold mb-4">LearnFlow</h3>
                        <p class="text-gray-400">Master modern web development with our interactive courses.</p>
                    </div>
                    <div>
                        <h4 class="text-md font-semibold mb-4">Courses</h4>
                        <ul class="space-y-2">
                            <li><a href="index.html" class="text-gray-400 hover:text-white">Web Development</a></li>
                            <li><a href="index.html" class="text-gray-400 hover:text-white">Mobile Apps</a></li>
                            <li><a href="index.html" class="text-gray-400 hover:text-white">Data Science</a></li>
                        </ul>
                    </div>
                    <div>
                        <h4 class="text-md font-semibold mb-4">Resources</h4>
                        <ul class="space-y-2">
                            <li><a href="index.html" class="text-gray-400 hover:text-white">Documentation</a></li>
                            <li><a href="index.html" class="text-gray-400 hover:text-white">Community</a></li>
                            <li><a href="index.html" class="text-gray-400 hover:text-white">Blog</a></li>
                        </ul>
                    </div>
                    <div>
                        <h4 class="text-md font-semibold mb-4">Connect</h4>
                        <div class="flex space-x-4">
                            <a href="index.html" class="text-gray-400 hover:text-white"><i data-feather="twitter"></i></a>
                            <a href="index.html" class="text-gray-400 hover:text-white"><i data-feather="facebook"></i></a>
                            <a href="index.html" class="text-gray-400 hover:text-white"><i data-feather="linkedin"></i></a>
                            <a href="index.html" class="text-gray-400 hover:text-white"><i data-feather="github"></i></a>
                        </div>
                    </div>
                </div>
                <div class="mt-8 pt-8 border-t border-gray-700 text-center text-gray-400">
                    <p>© 2023 LearnFlow. All rights reserved.</p>
                </div>
            </div>
        </footer>
    </div>

    <script>
        function courseSelection() {
            return {
                selectedCourse: '',
                selectedModules: [],
                modules: [],
                allModules: {
                    webdev: [
                        { id: 'webdev-1', title: 'Introduction to Laravel', description: 'Learn the fundamentals of Laravel framework', price: 49, duration: '2 hours' },
                        { id: 'webdev-2', title: 'Laravel Fundamentals', description: 'Master routing, controllers and views', price: 79, duration: '3.5 hours' },
                        { id: 'webdev-3', title: 'Working with Databases', description: 'Eloquent ORM and database migrations', price: 89, duration: '4 hours' },
                        { id: 'webdev-4', title: 'Authentication & Authorization', description: 'Implement secure user systems', price: 69, duration: '2.5 hours' },
                        { id: 'webdev-5', title: 'API Development', description: 'Build RESTful APIs with Laravel', price: 99, duration: '5 hours' }
                    ],
                    mobile: [
                        { id: 'mobile-1', title: 'Flutter Basics', description: 'Introduction to Flutter framework', price: 59, duration: '2 hours' },
                        { id: 'mobile-2', title: 'UI Development', description: 'Building beautiful mobile interfaces', price: 79, duration: '3 hours' },
                        { id: 'mobile-3', title: 'State Management', description: 'Managing app state effectively', price: 89, duration: '3.5 hours' },
                        { id: 'mobile-4', title: 'Firebase Integration', description: 'Connect your app to Firebase', price: 69, duration: '2.5 hours' }
                    ],
                    datascience: [
                        { id: 'ds-1', title: 'Python for Data Science', description: 'Essential Python skills', price: 49, duration: '2 hours' },
                        { id: 'ds-2', title: 'Pandas & NumPy', description: 'Data manipulation and analysis', price: 79, duration: '3 hours' },
                        { id: 'ds-3', title: 'Machine Learning Basics', description: 'Introduction to ML concepts', price: 99, duration: '4 hours' },
                        { id: 'ds-4', title: 'Data Visualization', description: 'Creating insightful visualizations', price: 69, duration: '2.5 hours' },
                        { id: 'ds-5', title: 'Advanced ML Techniques', description: 'Deep learning and neural networks', price: 119, duration: '6 hours' }
                    ]
},
                init() {
                    feather.replace();
                },
                updateModules() {
                    this.selectedModules = [];
                    this.modules = this.allModules[this.selectedCourse] || [];
                },
                get totalPrice() {
                    return this.selectedModules.reduce((total, moduleId) => {
                        const module = this.modules.find(m => m.id === moduleId);
                        return total + (module ? module.price : 0);
                    }, 0);
                },
                get totalDuration() {
                    const totalMinutes = this.selectedModules.reduce((total, moduleId) => {
                        const module = this.modules.find(m => m.id === moduleId);
                        if (!module) return total;
                        const hours = parseFloat(module.duration.split(' ')[0]);
                        return total + (hours * 60);
                    }, 0);
                    
                    const hours = Math.floor(totalMinutes / 60);
                    const minutes = totalMinutes % 60;
                    return `${hours}h ${minutes}m total`;
                },
                saveSelection() {
                    // In a real app, this would send data to a server
                    alert(`Success! You've enrolled in ${this.selectedModules.length} modules for ${this.totalPrice}`);
                    // Reset form
                    this.selectedCourse = '';
                    this.selectedModules = [];
                    this.modules = [];
                },
                init() {
                    feather.replace();
                    // Auto-select first module when course is selected
                    this.$watch('selectedCourse', (value) => {
                        if (value && this.modules.length > 0) {
                            this.selectedModules = [this.modules[0].id];
                        }
                    });
                }
}
        }
    </script>
    <script>feather.replace();</script>
</body>
</html>+module.price"></div>
                                </div>
                            </div>
                        </template>
                    </div>
                </div>

                <!-- Summary Section -->
                <div class="mt-8 bg-white rounded-xl shadow-md overflow-hidden" x-show="selectedCourse">
                    <div class="px-6 py-4 border-b border-gray-200">
                        <h2 class="text-xl font-semibold text-gray-800">Your Selection</h2>
                    </div>
                    <div class="p-6">
                        <div x-show="selectedModules.length === 0" class="text-center py-4">
                            <i data-feather="info" class="w-8 h-8 mx-auto text-gray-400"></i>
                            <p class="mt-2 text-gray-500">No modules selected yet</p>
                        </div>
                        <template x-for="moduleId in selectedModules" x-show="selectedModules.length > 0">
                            <div class="flex justify-between py-2 border-b border-gray-100 last:border-0">
                                <span x-text="modules.find(m => m.id === moduleId).title"></span>
                                <span class="text-indigo-600" x-text="'<div class="p-6">
                        <div class="flex justify-between items-center">
                            <div>
                                <h3 class="text-lg font-medium text-gray-900">Total Price</h3>
                                <p class="text-sm text-gray-500" x-text="selectedModules.length + ' modules selected'"></p>
                            </div>
                            <div class="text-2xl font-bold text-indigo-600" x-text="'$'+totalPrice"></div>
                        </div>
                        <div class="mt-6">
                            <button @click="saveSelection()" class="w-full px-6 py-3 bg-indigo-600 rounded-lg text-white font-medium hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition">
                                Save Selection
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </main>

        <!-- Footer -->
        <footer class="bg-gray-800 text-white py-8">
            <div class="container mx-auto px-4">
                <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
                    <div>
                        <h3 class="text-lg font-semibold mb-4">LearnFlow</h3>
                        <p class="text-gray-400">Master modern web development with our interactive courses.</p>
                    </div>
                    <div>
                        <h4 class="text-md font-semibold mb-4">Courses</h4>
                        <ul class="space-y-2">
                            <li><a href="index.html" class="text-gray-400 hover:text-white">Web Development</a></li>
                            <li><a href="index.html" class="text-gray-400 hover:text-white">Mobile Apps</a></li>
                            <li><a href="index.html" class="text-gray-400 hover:text-white">Data Science</a></li>
                        </ul>
                    </div>
                    <div>
                        <h4 class="text-md font-semibold mb-4">Resources</h4>
                        <ul class="space-y-2">
                            <li><a href="index.html" class="text-gray-400 hover:text-white">Documentation</a></li>
                            <li><a href="index.html" class="text-gray-400 hover:text-white">Community</a></li>
                            <li><a href="index.html" class="text-gray-400 hover:text-white">Blog</a></li>
                        </ul>
                    </div>
                    <div>
                        <h4 class="text-md font-semibold mb-4">Connect</h4>
                        <div class="flex space-x-4">
                            <a href="index.html" class="text-gray-400 hover:text-white"><i data-feather="twitter"></i></a>
                            <a href="index.html" class="text-gray-400 hover:text-white"><i data-feather="facebook"></i></a>
                            <a href="index.html" class="text-gray-400 hover:text-white"><i data-feather="linkedin"></i></a>
                            <a href="index.html" class="text-gray-400 hover:text-white"><i data-feather="github"></i></a>
                        </div>
                    </div>
                </div>
                <div class="mt-8 pt-8 border-t border-gray-700 text-center text-gray-400">
                    <p>© 2023 LearnFlow. All rights reserved.</p>
                </div>
            </div>
        </footer>
    </div>

    <script>
        function courseSelection() {
            return {
                selectedCourse: '',
                selectedModules: [],
                modules: [],
                allModules: {
                    webdev: [
                        { id: 'webdev-1', title: 'Introduction to Laravel', description: 'Learn the fundamentals of Laravel framework', price: 49 },
                        { id: 'webdev-2', title: 'Laravel Fundamentals', description: 'Master routing, controllers and views', price: 79 },
                        { id: 'webdev-3', title: 'Working with Databases', description: 'Eloquent ORM and database migrations', price: 89 },
                        { id: 'webdev-4', title: 'Authentication & Authorization', description: 'Implement secure user systems', price: 69 }
                    ],
                    mobile: [
                        { id: 'mobile-1', title: 'Flutter Basics', description: 'Introduction to Flutter framework', price: 59 },
                        { id: 'mobile-2', title: 'UI Development', description: 'Building beautiful mobile interfaces', price: 79 },
                        { id: 'mobile-3', title: 'State Management', description: 'Managing app state effectively', price: 89 }
                    ],
                    datascience: [
                        { id: 'ds-1', title: 'Python for Data Science', description: 'Essential Python skills', price: 49 },
                        { id: 'ds-2', title: 'Pandas & NumPy', description: 'Data manipulation and analysis', price: 79 },
                        { id: 'ds-3', title: 'Machine Learning Basics', description: 'Introduction to ML concepts', price: 99 },
                        { id: 'ds-4', title: 'Data Visualization', description: 'Creating insightful visualizations', price: 69 }
                    ]
                },
                init() {
                    feather.replace();
                },
                updateModules() {
                    this.selectedModules = [];
                    this.modules = this.allModules[this.selectedCourse] || [];
                },
                get totalPrice() {
                    return this.selectedModules.reduce((total, moduleId) => {
                        const module = this.modules.find(m => m.id === moduleId);
                        return total + (module ? module.price : 0);
                    }, 0);
                },
                saveSelection() {
                    // In a real app, this would send data to a server
                    alert(`Success! ${this.selectedModules.length} modules saved with total price $${this.totalPrice}`);
                    // Reset form
                    this.selectedCourse = '';
                    this.selectedModules = [];
                    this.modules = [];
                }
            }
        }
    </script>
    <script>feather.replace();</script>
</body>
</html>+modules.find(m => m.id === moduleId).price"></span>
                            </div>
                        </template>
                        <div class="mt-4 pt-4 border-t border-gray-200" x-show="selectedModules.length > 0">
                            <div class="flex justify-between items-center">
                                <span class="font-medium">Total</span>
                                <span class="text-xl font-bold text-indigo-600" x-text="'<div class="p-6">
                        <div class="flex justify-between items-center">
                            <div>
                                <h3 class="text-lg font-medium text-gray-900">Total Price</h3>
                                <p class="text-sm text-gray-500" x-text="selectedModules.length + ' modules selected'"></p>
                            </div>
                            <div class="text-2xl font-bold text-indigo-600" x-text="'$'+totalPrice"></div>
                        </div>
                        <div class="mt-6">
                            <button @click="saveSelection()" class="w-full px-6 py-3 bg-indigo-600 rounded-lg text-white font-medium hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition">
                                Save Selection
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </main>

        <!-- Footer -->
        <footer class="bg-gray-800 text-white py-8">
            <div class="container mx-auto px-4">
                <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
                    <div>
                        <h3 class="text-lg font-semibold mb-4">LearnFlow</h3>
                        <p class="text-gray-400">Master modern web development with our interactive courses.</p>
                    </div>
                    <div>
                        <h4 class="text-md font-semibold mb-4">Courses</h4>
                        <ul class="space-y-2">
                            <li><a href="index.html" class="text-gray-400 hover:text-white">Web Development</a></li>
                            <li><a href="index.html" class="text-gray-400 hover:text-white">Mobile Apps</a></li>
                            <li><a href="index.html" class="text-gray-400 hover:text-white">Data Science</a></li>
                        </ul>
                    </div>
                    <div>
                        <h4 class="text-md font-semibold mb-4">Resources</h4>
                        <ul class="space-y-2">
                            <li><a href="index.html" class="text-gray-400 hover:text-white">Documentation</a></li>
                            <li><a href="index.html" class="text-gray-400 hover:text-white">Community</a></li>
                            <li><a href="index.html" class="text-gray-400 hover:text-white">Blog</a></li>
                        </ul>
                    </div>
                    <div>
                        <h4 class="text-md font-semibold mb-4">Connect</h4>
                        <div class="flex space-x-4">
                            <a href="index.html" class="text-gray-400 hover:text-white"><i data-feather="twitter"></i></a>
                            <a href="index.html" class="text-gray-400 hover:text-white"><i data-feather="facebook"></i></a>
                            <a href="index.html" class="text-gray-400 hover:text-white"><i data-feather="linkedin"></i></a>
                            <a href="index.html" class="text-gray-400 hover:text-white"><i data-feather="github"></i></a>
                        </div>
                    </div>
                </div>
                <div class="mt-8 pt-8 border-t border-gray-700 text-center text-gray-400">
                    <p>© 2023 LearnFlow. All rights reserved.</p>
                </div>
            </div>
        </footer>
    </div>

    <script>
        function courseSelection() {
            return {
                selectedCourse: '',
                selectedModules: [],
                modules: [],
                allModules: {
                    webdev: [
                        { id: 'webdev-1', title: 'Introduction to Laravel', description: 'Learn the fundamentals of Laravel framework', price: 49 },
                        { id: 'webdev-2', title: 'Laravel Fundamentals', description: 'Master routing, controllers and views', price: 79 },
                        { id: 'webdev-3', title: 'Working with Databases', description: 'Eloquent ORM and database migrations', price: 89 },
                        { id: 'webdev-4', title: 'Authentication & Authorization', description: 'Implement secure user systems', price: 69 }
                    ],
                    mobile: [
                        { id: 'mobile-1', title: 'Flutter Basics', description: 'Introduction to Flutter framework', price: 59 },
                        { id: 'mobile-2', title: 'UI Development', description: 'Building beautiful mobile interfaces', price: 79 },
                        { id: 'mobile-3', title: 'State Management', description: 'Managing app state effectively', price: 89 }
                    ],
                    datascience: [
                        { id: 'ds-1', title: 'Python for Data Science', description: 'Essential Python skills', price: 49 },
                        { id: 'ds-2', title: 'Pandas & NumPy', description: 'Data manipulation and analysis', price: 79 },
                        { id: 'ds-3', title: 'Machine Learning Basics', description: 'Introduction to ML concepts', price: 99 },
                        { id: 'ds-4', title: 'Data Visualization', description: 'Creating insightful visualizations', price: 69 }
                    ]
                },
                init() {
                    feather.replace();
                },
                updateModules() {
                    this.selectedModules = [];
                    this.modules = this.allModules[this.selectedCourse] || [];
                },
                get totalPrice() {
                    return this.selectedModules.reduce((total, moduleId) => {
                        const module = this.modules.find(m => m.id === moduleId);
                        return total + (module ? module.price : 0);
                    }, 0);
                },
                saveSelection() {
                    // In a real app, this would send data to a server
                    alert(`Success! ${this.selectedModules.length} modules saved with total price $${this.totalPrice}`);
                    // Reset form
                    this.selectedCourse = '';
                    this.selectedModules = [];
                    this.modules = [];
                }
            }
        }
    </script>
    <script>feather.replace();</script>
</body>
</html>+totalPrice"></span>
                            </div>
                            <div class="mt-2 text-sm text-gray-500">
                                <span x-text="selectedModules.length + ' modules selected'"></span>
                                <span class="mx-2">•</span>
                                <span x-text="totalDuration"></span>
                            </div>
                        </div>
<div class="p-6">
                        <div class="flex justify-between items-center">
                            <div>
                                <h3 class="text-lg font-medium text-gray-900">Total Price</h3>
                                <p class="text-sm text-gray-500" x-text="selectedModules.length + ' modules selected'"></p>
                            </div>
                            <div class="text-2xl font-bold text-indigo-600" x-text="'$'+totalPrice"></div>
                        </div>
                        <div class="mt-6">
                            <button @click="saveSelection()" class="w-full px-6 py-3 bg-indigo-600 rounded-lg text-white font-medium hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition">
                                Save Selection
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </main>

        <!-- Footer -->
        <footer class="bg-gray-800 text-white py-8">
            <div class="container mx-auto px-4">
                <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
                    <div>
                        <h3 class="text-lg font-semibold mb-4">LearnFlow</h3>
                        <p class="text-gray-400">Master modern web development with our interactive courses.</p>
                    </div>
                    <div>
                        <h4 class="text-md font-semibold mb-4">Courses</h4>
                        <ul class="space-y-2">
                            <li><a href="index.html" class="text-gray-400 hover:text-white">Web Development</a></li>
                            <li><a href="index.html" class="text-gray-400 hover:text-white">Mobile Apps</a></li>
                            <li><a href="index.html" class="text-gray-400 hover:text-white">Data Science</a></li>
                        </ul>
                    </div>
                    <div>
                        <h4 class="text-md font-semibold mb-4">Resources</h4>
                        <ul class="space-y-2">
                            <li><a href="index.html" class="text-gray-400 hover:text-white">Documentation</a></li>
                            <li><a href="index.html" class="text-gray-400 hover:text-white">Community</a></li>
                            <li><a href="index.html" class="text-gray-400 hover:text-white">Blog</a></li>
                        </ul>
                    </div>
                    <div>
                        <h4 class="text-md font-semibold mb-4">Connect</h4>
                        <div class="flex space-x-4">
                            <a href="index.html" class="text-gray-400 hover:text-white"><i data-feather="twitter"></i></a>
                            <a href="index.html" class="text-gray-400 hover:text-white"><i data-feather="facebook"></i></a>
                            <a href="index.html" class="text-gray-400 hover:text-white"><i data-feather="linkedin"></i></a>
                            <a href="index.html" class="text-gray-400 hover:text-white"><i data-feather="github"></i></a>
                        </div>
                    </div>
                </div>
                <div class="mt-8 pt-8 border-t border-gray-700 text-center text-gray-400">
                    <p>© 2023 LearnFlow. All rights reserved.</p>
                </div>
            </div>
        </footer>
    </div>

    <script>
        function courseSelection() {
            return {
                selectedCourse: '',
                selectedModules: [],
                modules: [],
                allModules: {
                    webdev: [
                        { id: 'webdev-1', title: 'Introduction to Laravel', description: 'Learn the fundamentals of Laravel framework', price: 49 },
                        { id: 'webdev-2', title: 'Laravel Fundamentals', description: 'Master routing, controllers and views', price: 79 },
                        { id: 'webdev-3', title: 'Working with Databases', description: 'Eloquent ORM and database migrations', price: 89 },
                        { id: 'webdev-4', title: 'Authentication & Authorization', description: 'Implement secure user systems', price: 69 }
                    ],
                    mobile: [
                        { id: 'mobile-1', title: 'Flutter Basics', description: 'Introduction to Flutter framework', price: 59 },
                        { id: 'mobile-2', title: 'UI Development', description: 'Building beautiful mobile interfaces', price: 79 },
                        { id: 'mobile-3', title: 'State Management', description: 'Managing app state effectively', price: 89 }
                    ],
                    datascience: [
                        { id: 'ds-1', title: 'Python for Data Science', description: 'Essential Python skills', price: 49 },
                        { id: 'ds-2', title: 'Pandas & NumPy', description: 'Data manipulation and analysis', price: 79 },
                        { id: 'ds-3', title: 'Machine Learning Basics', description: 'Introduction to ML concepts', price: 99 },
                        { id: 'ds-4', title: 'Data Visualization', description: 'Creating insightful visualizations', price: 69 }
                    ]
                },
                init() {
                    feather.replace();
                },
                updateModules() {
                    this.selectedModules = [];
                    this.modules = this.allModules[this.selectedCourse] || [];
                },
                get totalPrice() {
                    return this.selectedModules.reduce((total, moduleId) => {
                        const module = this.modules.find(m => m.id === moduleId);
                        return total + (module ? module.price : 0);
                    }, 0);
                },
                saveSelection() {
                    // In a real app, this would send data to a server
                    alert(`Success! ${this.selectedModules.length} modules saved with total price $${this.totalPrice}`);
                    // Reset form
                    this.selectedCourse = '';
                    this.selectedModules = [];
                    this.modules = [];
                }
            }
        }
    </script>
    <script>feather.replace();</script>
</body>
</html>