Skip to content

Commit 0dd97d4

Browse files
committed
end:)
1 parent 78ec0d0 commit 0dd97d4

File tree

4 files changed

+46
-38
lines changed

4 files changed

+46
-38
lines changed

Diff for: lang/en/messages.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
return [
44
"dashboard" => "Dashboard",
5-
"dashboard_message" => "You're logged in!"
5+
"dashboard_message" => "You're logged in!",
6+
"teacher_dashboard_message" => "You're logged in!"
67
];

Diff for: lang/fa/messages.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
return [
44
"dashboard" => "میز کار",
5-
"dashboard_message" => "😁 با موفقیت وارد شدی دانشجو"
5+
"dashboard_message" => "😁 با موفقیت وارد شدی دانشجو",
6+
"teacher.dashboard_message" => "خوش اومدین"
67
];

Diff for: resources/views/dashboard.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ class="px-6 py-3 bg-gray-50 text-right text-xs font-medium text-gray-500 upperca
4242
@foreach($courses as $index => $course)
4343
<tr class="bg-white divide-y divide-gray-200">
4444
<td class="px-6 py-4 whitespace-nowrap text-right">
45-
<button class="bg-blue-500 hover:bg-blue-700 text-black font-bold py-2 px-4 rounded"
45+
<button class="bg-gradient-to-r from-green-400 to-blue-500 hover:from-green-500 hover:to-blue-600 text-gray-800 py-2 px-4 rounded-full shadow-lg transform hover:scale-105 transition-transform duration-200 text-sm"
4646
onclick="openObjectionModal('{{ $course }}')">ثبت اعتراض</button>
4747
</td>
4848
<td class="px-6 py-4 whitespace-nowrap text-right">
4949
<input type="text" value="{{ $grades[$index] }}" readonly
50-
class="border-none bg-transparent rounded-full text-gray-500">
50+
class="border-none bg-transparent rounded-full text-gray-500 text-right">
5151
</td>
5252
<td class="px-6 py-4 whitespace-nowrap text-right">{{ $course }}</td>
5353

Diff for: resources/views/teacher/dashboard.blade.php

+40-34
Original file line numberDiff line numberDiff line change
@@ -8,42 +8,48 @@
88
<div class="py-12">
99
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
1010
<div class="bg-white overflow-hidden shadow-sm sm:rounded-lg">
11-
<div class="p-6 text-gray-900">
12-
{{ ("Welcome to the Teacher Dashboard") }}
11+
<div class="p-6 text-gray-900" rtl>
12+
{{ ("You're logged in!") }}
1313
</div>
1414
</div>
1515
</div>
1616
</div>
17-
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8 mt-8">
18-
<div class="bg-white overflow-hidden shadow-sm sm:rounded-lg">
19-
<div class="p-6 text-gray-900">
20-
<!-- Dropdown برای انتخاب درس -->
21-
<div class="mb-4">
22-
<label for="course" class="block text-sm font-medium text-gray-700">انتخاب درس:</label>
23-
<select id="course"
24-
class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
25-
@php
26-
$courses = ['صدا در چند رسانه ای', 'کاربرد های وب', 'گرافیک متحرک', 'تجزیه تحلیل', 'هوش مصنوعی', 'تصویر برداری'];
27-
@endphp
28-
@foreach($courses as $course)
29-
<option>{{ $course }}</option>
30-
@endforeach
31-
</select>
32-
</div>
17+
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8 mt-8 flex justify-end">
18+
<div class="bg-white overflow-hidden shadow-sm sm:rounded-lg w-full max-w-4xl">
19+
<!-- Dropdown برای انتخاب درس -->
20+
<div class="mb-4 p-6 text-gray-900 flex justify-end">
21+
22+
<select id="course"
23+
class="mt-1 block pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
24+
@php
25+
$courses = ['صدا در چند رسانه ای', 'کاربرد های وب', 'گرافیک متحرک', 'تجزیه تحلیل', 'هوش مصنوعی', 'تصویر برداری'];
26+
@endphp
27+
@foreach($courses as $course)
28+
<option>{{ $course }}</option>
29+
@endforeach
30+
</select>
31+
<label for="course" class="block text-sm font-medium text-gray-700 text-right px-3 pt-3">:انتخاب
32+
درس</label>
33+
</div>
34+
<div class="p-6 text-gray-900 flex justify-end">
35+
3336

3437
<!-- جدول ورود نمرات دانشجویان -->
3538
<table class="min-w-full divide-y divide-gray-200 mt-4">
3639
<thead>
3740
<tr>
41+
3842
<th
39-
class="px-6 py-3 bg-gray-50 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">
40-
نام دانشجو</th>
43+
class="px-2 py-1 bg-gray-50 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">
44+
ثبت نمره</th>
45+
4146
<th
42-
class="px-6 py-3 bg-gray-50 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">
47+
class="px-2 py-1 bg-gray-50 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">
4348
نمره</th>
49+
4450
<th
45-
class="px-6 py-3 bg-gray-50 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">
46-
ثبت نمره</th>
51+
class="px-2 py-1 bg-gray-50 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">
52+
نام دانشجو</th>
4753
</tr>
4854
</thead>
4955
<tbody>
@@ -52,17 +58,19 @@ class="px-6 py-3 bg-gray-50 text-right text-xs font-medium text-gray-500 upperca
5258
@endphp
5359
@foreach($students as $student)
5460
<tr class="bg-white divide-y divide-gray-200">
55-
<td class="px-6 py-4 whitespace-nowrap text-right">{{ $student }}</td>
56-
<td class="px-6 py-4 whitespace-nowrap text-right">
57-
<!-- فیلد ورودی نمره -->
58-
<input type="text" class="border border-gray-300 rounded-md px-2 py-1"
61+
62+
63+
<td class="px-2 py-1 whitespace-nowrap text-right">
64+
<button
65+
class="bg-gradient-to-r from-green-400 to-blue-500 hover:from-green-500 hover:to-blue-600 text-gray-800 py-2 px-4 rounded-full shadow-lg transform hover:scale-105 transition-transform duration-200 text-sm"
66+
onclick="submitGrade()">ثبت </button>
67+
<td class="px-2 py-1 whitespace-nowrap text-right">
68+
<input type="number"
69+
class="border border-gray-300 rounded-md px-2 py-1 w-full max-w-[100px] rtl text-right"
5970
placeholder="نمره را وارد کنید">
6071
</td>
61-
<td class="px-6 py-4 whitespace-nowrap text-right">
62-
<!-- دکمه ثبت نمره -->
63-
<button class="bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded"
64-
onclick="submitGrade()">ثبت نمره</button>
6572
</td>
73+
<td class="px-2 py-1 whitespace-nowrap text-right">{{ $student }}</td>
6674
</tr>
6775
@endforeach
6876
</tbody>
@@ -77,6 +85,4 @@ function submitGrade() {
7785
alert('نمره با موفقیت ثبت شد');
7886
}
7987
</script>
80-
</x-app-layout>
81-
82-
88+
</x-app-layout>

0 commit comments

Comments
 (0)