|
9 | 9 | </header> |
10 | 10 |
|
11 | 11 | {{-- Support ticket table --}} |
12 | | - <div class="flex justify-end mb-4"> |
13 | | - <a href="#" class="inline-flex items-center rounded-md bg-violet-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-violet-700 dark:bg-violet-700 dark:hover:bg-violet-600 transition duration-200"> |
| 12 | + <div class="flex justify-center md:justify-end mb-4"> |
| 13 | + <a href="#" class="w-full md:w-auto inline-flex items-center justify-center rounded-md bg-violet-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-violet-700 dark:bg-violet-700 dark:hover:bg-violet-600 transition duration-200"> |
14 | 14 | <svg xmlns="http://www.w3.org/2000/svg" class="mr-2 h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"> |
15 | 15 | <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6v6m0 0v6m0-6h6m-6 0H6" /> |
16 | 16 | </svg> |
17 | 17 | Submit a new request |
18 | 18 | </a> |
19 | 19 | </div> |
20 | | - <div class="overflow-x-auto rounded-lg border border-gray-200 dark:border-gray-700 mb-10"> |
21 | | - <table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700"> |
| 20 | + <div class="rounded-lg border border-gray-200 dark:border-gray-700 mb-10"> |
| 21 | + <!-- Desktop Table View (hidden on mobile, visible md and up) --> |
| 22 | + <table class="hidden md:table min-w-full divide-y divide-gray-200 dark:divide-gray-700"> |
22 | 23 | <thead class="bg-gray-50 dark:bg-gray-800"> |
23 | 24 | <tr> |
24 | 25 | <th scope="col" class="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500 dark:text-gray-400"> |
|
64 | 65 | @endforelse |
65 | 66 | </tbody> |
66 | 67 | </table> |
| 68 | + |
| 69 | + <!-- Mobile Card View (visible on mobile, hidden md and up) --> |
| 70 | + <div class="md:hidden"> |
| 71 | + @forelse($supportTickets as $ticket) |
| 72 | + <div class="p-4 border-b border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-900"> |
| 73 | + <div class="flex flex-col space-y-3"> |
| 74 | + <!-- Subject (Priority on mobile) --> |
| 75 | + <div class="text-sm font-medium text-gray-900 dark:text-white"> |
| 76 | + {{ $ticket->subject }} |
| 77 | + </div> |
| 78 | + |
| 79 | + <!-- Status (Priority on mobile) --> |
| 80 | + <div class="flex items-center"> |
| 81 | + <span class="text-xs text-gray-500 dark:text-gray-400 mr-2">Status:</span> |
| 82 | + <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"> |
| 83 | + {{ $ticket->status->translated() }} |
| 84 | + </span> |
| 85 | + </div> |
| 86 | + |
| 87 | + <!-- Ticket ID (Less priority on mobile) --> |
| 88 | + <div class="flex items-center"> |
| 89 | + <span class="text-xs text-gray-500 dark:text-gray-400 mr-2">Ticket ID:</span> |
| 90 | + <a href="{{ route('support.tickets.show', $ticket) }}" class="text-violet-600 text-sm">#{{ $ticket->mask }}</a> |
| 91 | + </div> |
| 92 | + |
| 93 | + <!-- Actions --> |
| 94 | + <div class="pt-2"> |
| 95 | + <a href="{{ route('support.tickets.show', $ticket) }}" class="inline-block 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"> |
| 96 | + View ticket |
| 97 | + </a> |
| 98 | + </div> |
| 99 | + </div> |
| 100 | + </div> |
| 101 | + @empty |
| 102 | + <div class="p-4 bg-white dark:bg-gray-900 text-sm font-medium text-gray-900 dark:text-white"> |
| 103 | + No tickets found. |
| 104 | + </div> |
| 105 | + @endforelse |
| 106 | + </div> |
67 | 107 |
|
68 | 108 | @if ($supportTickets->hasPages()) |
69 | | - <div class="p-5"> |
| 109 | + <div class="px-3 py-4 md:p-5"> |
70 | 110 | {{ $supportTickets->links() }} |
71 | 111 | </div> |
72 | 112 | @endif |
73 | 113 | </div> |
74 | 114 | {{-- Additional Support Information --}} |
75 | | - <div class="mt-20 rounded-xl bg-gradient-to-br from-[#FFF0DC] to-[#E8EEFF] p-8 dark:from-blue-900/10 dark:to-[#4c407f]/25"> |
76 | | - <h2 class="mb-4 text-2xl font-medium">Need more help?</h2> |
77 | | - <p class="text-lg text-gray-700 dark:text-gray-300"> |
| 115 | + <div class="mt-12 md:mt-20 rounded-xl bg-gradient-to-br from-[#FFF0DC] to-[#E8EEFF] p-4 md:p-8 dark:from-blue-900/10 dark:to-[#4c407f]/25"> |
| 116 | + <h2 class="mb-3 md:mb-4 text-xl md:text-2xl font-medium">Need more help?</h2> |
| 117 | + <p class="text-base md:text-lg text-gray-700 dark:text-gray-300"> |
78 | 118 | Check out our <a href="/docs" class="font-medium text-violet-600 hover:text-violet-700 dark:text-violet-400 dark:hover:text-violet-300">documentation</a> for comprehensive guides and tutorials to help you get the most out of NativePHP. |
79 | 119 | </p> |
80 | 120 | </div> |
|
0 commit comments