first&last
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<div class="space-y-4">
|
||||
<div class="flex justify-between items-center">
|
||||
<input wire:model.live.debounce.300ms="search" type="text" placeholder="Поиск по заявкам" class="rounded-xl border border-slate-300 px-3 py-2 w-full max-w-sm">
|
||||
<a href="{{ route('my-requests.create') }}" class="rounded-xl bg-slate-900 text-white px-4 py-2 text-sm">Новая заявка</a>
|
||||
</div>
|
||||
|
||||
<div class="card overflow-hidden">
|
||||
<table class="min-w-full text-sm">
|
||||
<thead class="bg-slate-50"><tr><th class="px-3 py-2 text-left">Ticket</th><th class="px-3 py-2 text-left">Заголовок</th><th class="px-3 py-2 text-left">Тип</th><th class="px-3 py-2 text-left">Приоритет</th><th class="px-3 py-2 text-left">Статус</th><th class="px-3 py-2 text-left">Дата</th></tr></thead>
|
||||
<tbody>
|
||||
@forelse($requests as $request)
|
||||
<tr class="border-t border-slate-100">
|
||||
<td class="px-3 py-2"><a href="{{ route('my-requests.show', $request) }}" class="font-medium hover:underline">{{ $request->ticket_number }}</a></td>
|
||||
<td class="px-3 py-2">{{ $request->title }}</td>
|
||||
<td class="px-3 py-2">{{ $request->type?->name }}</td>
|
||||
<td class="px-3 py-2"><span class="inline-flex rounded-full px-2 py-1 text-xs text-white" style="background-color: {{ $request->priority?->color_hex }}">{{ $request->priority?->name }}</span></td>
|
||||
<td class="px-3 py-2"><span class="inline-flex rounded-full px-2 py-1 text-xs text-white" style="background-color: {{ $request->status?->color_hex }}">{{ $request->status?->name }}</span></td>
|
||||
<td class="px-3 py-2">{{ $request->created_at?->format('d.m.Y H:i') }}</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr><td colspan="6" class="px-3 py-8 text-center text-slate-500">Нет заявок</td></tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="p-4">{{ $requests->links() }}</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user