|
37 | 37 | </tr> |
38 | 38 | </thead> |
39 | 39 | <tbody class="divide-y divide-gray-200 dark:divide-gray-700 bg-white dark:bg-gray-900"> |
40 | | - <tr> |
41 | | - <td class="whitespace-nowrap px-6 py-4 text-sm font-medium text-gray-900 dark:text-white"> |
42 | | - #TKT-1001 |
43 | | - </td> |
44 | | - <td class="whitespace-nowrap px-6 py-4 text-sm text-gray-700 dark:text-gray-300"> |
45 | | - Installation issue on Windows 11 |
46 | | - </td> |
47 | | - <td class="whitespace-nowrap px-6 py-4 text-sm"> |
| 40 | + @forelse(auth()->user()->supportTickets as $ticket) |
| 41 | + <tr> |
| 42 | + <td class="whitespace-nowrap px-6 py-4 text-sm font-medium text-gray-900 dark:text-white"> |
| 43 | + <a href="#" class="text-violet-600">#{{ $ticket->mask }}</a> |
| 44 | + </td> |
| 45 | + <td class="whitespace-nowrap px-6 py-4 text-sm text-gray-700 dark:text-gray-300"> |
| 46 | + {{ $ticket->subject }} |
| 47 | + </td> |
| 48 | + <td class="whitespace-nowrap px-6 py-4 text-sm"> |
48 | 49 | <span class="inline-flex rounded-full bg-green-100 px-2.5 py-0.5 text-xs font-medium text-green-800 dark:bg-green-900/30 dark:text-green-300"> |
49 | | - Open |
50 | | - </span> |
51 | | - </td> |
52 | | - <td class="whitespace-nowrap px-6 py-4 text-right text-sm font-medium"> |
53 | | - <a href="#" class="rounded-md bg-violet-600 px-3 py-1.5 text-xs font-medium text-white shadow-sm hover:bg-violet-700 dark:bg-violet-700 dark:hover:bg-violet-600 transition duration-200"> |
54 | | - View |
55 | | - </a> |
56 | | - </td> |
57 | | - </tr> |
58 | | - <tr> |
59 | | - <td class="whitespace-nowrap px-6 py-4 text-sm font-medium text-gray-900 dark:text-white"> |
60 | | - #TKT-1002 |
61 | | - </td> |
62 | | - <td class="whitespace-nowrap px-6 py-4 text-sm text-gray-700 dark:text-gray-300"> |
63 | | - API integration with third-party service |
64 | | - </td> |
65 | | - <td class="whitespace-nowrap px-6 py-4 text-sm"> |
66 | | - <span class="inline-flex rounded-full bg-yellow-100 px-2.5 py-0.5 text-xs font-medium text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-300"> |
67 | | - In Progress |
| 50 | + {{ $ticket->status }} |
68 | 51 | </span> |
69 | | - </td> |
70 | | - <td class="whitespace-nowrap px-6 py-4 text-right text-sm font-medium"> |
71 | | - <a href="#" class="rounded-md bg-violet-600 px-3 py-1.5 text-xs font-medium text-white shadow-sm hover:bg-violet-700 dark:bg-violet-700 dark:hover:bg-violet-600 transition duration-200"> |
72 | | - View |
73 | | - </a> |
74 | | - </td> |
75 | | - </tr> |
76 | | - <tr> |
77 | | - <td class="whitespace-nowrap px-6 py-4 text-sm font-medium text-gray-900 dark:text-white"> |
78 | | - #TKT-1003 |
79 | | - </td> |
80 | | - <td class="whitespace-nowrap px-6 py-4 text-sm text-gray-700 dark:text-gray-300"> |
81 | | - Feature request: dark mode toggle |
82 | | - </td> |
83 | | - <td class="whitespace-nowrap px-6 py-4 text-sm"> |
84 | | - <span class="inline-flex rounded-full bg-blue-100 px-2.5 py-0.5 text-xs font-medium text-blue-800 dark:bg-blue-900/30 dark:text-blue-300"> |
85 | | - Responded |
86 | | - </span> |
87 | | - </td> |
88 | | - <td class="whitespace-nowrap px-6 py-4 text-right text-sm font-medium"> |
89 | | - <a href="#" class="rounded-md bg-violet-600 px-3 py-1.5 text-xs font-medium text-white shadow-sm hover:bg-violet-700 dark:bg-violet-700 dark:hover:bg-violet-600 transition duration-200"> |
90 | | - View |
91 | | - </a> |
92 | | - </td> |
93 | | - </tr> |
94 | | - <tr> |
95 | | - <td class="whitespace-nowrap px-6 py-4 text-sm font-medium text-gray-900 dark:text-white"> |
96 | | - #TKT-1004 |
97 | | - </td> |
98 | | - <td class="whitespace-nowrap px-6 py-4 text-sm text-gray-700 dark:text-gray-300"> |
99 | | - Database migration error |
100 | | - </td> |
101 | | - <td class="whitespace-nowrap px-6 py-4 text-sm"> |
102 | | - <span class="inline-flex rounded-full bg-gray-100 px-2.5 py-0.5 text-xs font-medium text-gray-800 dark:bg-gray-700 dark:text-gray-300"> |
103 | | - Closed |
104 | | - </span> |
105 | | - </td> |
106 | | - <td class="whitespace-nowrap px-6 py-4 text-right text-sm font-medium"> |
107 | | - <a href="#" class="rounded-md bg-violet-600 px-3 py-1.5 text-xs font-medium text-white shadow-sm hover:bg-violet-700 dark:bg-violet-700 dark:hover:bg-violet-600 transition duration-200"> |
108 | | - View |
109 | | - </a> |
110 | | - </td> |
111 | | - </tr> |
| 52 | + </td> |
| 53 | + <td class="whitespace-nowrap px-6 py-4 text-right text-sm font-medium"> |
| 54 | + <a href="#" class="rounded-md bg-violet-600 px-3 py-1.5 text-xs font-medium text-white shadow-sm hover:bg-violet-700 dark:bg-violet-700 dark:hover:bg-violet-600 transition duration-200"> |
| 55 | + View |
| 56 | + </a> |
| 57 | + </td> |
| 58 | + </tr> |
| 59 | + @empty |
| 60 | + <tr> |
| 61 | + <td colspan="4" class="whitespace-nowrap px-6 py-4 text-sm font-medium text-gray-900 dark:text-white"> |
| 62 | + No tickets found. |
| 63 | + </td> |
| 64 | + </tr> |
| 65 | + @endforelse |
112 | 66 | </tbody> |
113 | 67 | </table> |
114 | 68 | </div> |
|
0 commit comments