first&last

This commit is contained in:
sbb45
2026-03-20 15:47:17 +05:00
commit d6441abdd2
230 changed files with 20367 additions and 0 deletions
@@ -0,0 +1,10 @@
<div class="space-y-4">
<div class="card"><div class="card-body flex flex-wrap gap-2 items-center">
<select wire:model.live="userId" class="rounded-xl border border-slate-300 px-3 py-2 text-sm"><option value="">Все пользователи</option>@foreach($users as $user)<option value="{{ $user->id }}">{{ $user->name }}</option>@endforeach</select>
<input wire:model.live.debounce.300ms="action" class="rounded-xl border border-slate-300 px-3 py-2 text-sm" placeholder="Тип действия">
<input wire:model.live="dateFrom" type="date" class="rounded-xl border border-slate-300 px-3 py-2 text-sm">
<input wire:model.live="dateTo" type="date" class="rounded-xl border border-slate-300 px-3 py-2 text-sm">
<button wire:click="exportCsv" class="rounded-xl bg-slate-900 text-white px-3 py-2 text-sm">Экспорт CSV</button>
</div></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">Пользователь</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">IP</th><th class="px-3 py-2 text-left">Дата</th></tr></thead><tbody>@forelse($logs as $log)<tr class="border-t border-slate-100"><td class="px-3 py-2">{{ $log->user?->name ?? 'Система' }}</td><td class="px-3 py-2">{{ $log->action }}</td><td class="px-3 py-2">{{ class_basename($log->model_type) }}</td><td class="px-3 py-2">{{ $log->description }}</td><td class="px-3 py-2">{{ $log->ip_address }}</td><td class="px-3 py-2">{{ $log->created_at?->format('d.m.Y H:i:s') }}</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">{{ $logs->links() }}</div></div>
</div>
@@ -0,0 +1,23 @@
<div class="card max-w-4xl"><div class="card-body">
<form wire:submit="save" class="space-y-4">
<div class="grid gap-4 md:grid-cols-2">
<div><label class="text-sm font-medium">Название компании</label><input wire:model.defer="companyName" class="mt-1 w-full rounded-xl border border-slate-300 px-3 py-2"></div>
<div><label class="text-sm font-medium">Часовой пояс</label><select wire:model.defer="timezone" class="mt-1 w-full rounded-xl border border-slate-300 px-3 py-2">@foreach($russianTimezones as $value => $label)<option value="{{ $value }}">{{ $label }}</option>@endforeach</select></div>
<div><label class="text-sm font-medium">SLA по умолчанию (часы)</label><input wire:model.defer="defaultSlaHours" type="number" min="1" class="mt-1 w-full rounded-xl border border-slate-300 px-3 py-2"></div>
<div class="md:col-span-2"><label class="inline-flex items-center gap-2"><input wire:model.defer="maintenanceMode" type="checkbox" class="rounded"> <span class="text-sm">Режим обслуживания</span></label></div>
</div>
<div class="rounded-xl border border-slate-200 p-4">
<h3 class="font-semibold mb-3">Email-уведомления</h3>
<div class="grid gap-2 md:grid-cols-2 text-sm">
<label class="inline-flex items-center gap-2"><input wire:model.defer="notifyAssigned" type="checkbox" class="rounded"> Назначение заявки</label>
<label class="inline-flex items-center gap-2"><input wire:model.defer="notifyStatusChanged" type="checkbox" class="rounded"> Изменение статуса</label>
<label class="inline-flex items-center gap-2"><input wire:model.defer="notifyCommentAdded" type="checkbox" class="rounded"> Новый комментарий</label>
<label class="inline-flex items-center gap-2"><input wire:model.defer="notifyOverdue" type="checkbox" class="rounded"> Просрочка</label>
<label class="inline-flex items-center gap-2"><input wire:model.defer="notifySlaWarning" type="checkbox" class="rounded"> Предупреждение SLA</label>
</div>
</div>
<div class="flex justify-end"><button class="rounded-xl bg-slate-900 text-white px-4 py-2">Сохранить настройки</button></div>
</form>
</div></div>