- Created `quick-replies.blade.php` for managing quick replies. - Added `settings.blade.php` for admin settings management. - Implemented `ticket-show.blade.php` to display ticket details. - Introduced `timeline-card.blade.php` component for displaying timeline information. Enhance quick reply management functionality - Developed `quick-reply-manager.blade.php` for creating and editing quick replies. - Integrated Livewire for dynamic interaction and validation. Implement settings page for AI configuration - Created `settings-page.blade.php` for managing AI settings, including prompts and provider instances. - Added functionality for managing models and embeddings. Add ticket show functionality with real-time updates - Implemented ticket details view with processing status and tool call logs. - Added support for displaying article suggestions and error messages. Create unit tests for AI classifier and domain info tool - Added `AIClassifierServiceTest.php` to validate AI classifier functionality. - Implemented `DomainInfoToolTest.php` for domain parameter validation. - Created `OxxaClientTest.php` to test API interactions and password hashing.
78 lines
3.8 KiB
PHP
78 lines
3.8 KiB
PHP
<div class="space-y-6">
|
|
<div class="bg-white rounded-xl p-4 shadow">
|
|
<h2 class="font-semibold mb-1">Nieuw snelantwoord</h2>
|
|
<p class="text-sm text-slate-600 mb-3">
|
|
Gebruik dit voor vaste antwoorden die bij meerdere kennisbankartikelen passen. Als een gekozen artikel een
|
|
actief snelantwoord heeft, wordt er geen AI-antwoord meer gegenereerd.
|
|
</p>
|
|
|
|
@if (session('success'))
|
|
<div class="mb-3 text-green-700 bg-green-100 p-2 rounded">{{ session('success') }}</div>
|
|
@endif
|
|
|
|
<form wire:submit="save" class="space-y-3">
|
|
<input wire:model="title" type="text" class="w-full border rounded p-2" placeholder="Titel">
|
|
@error('title') <p class="text-red-600 text-sm">{{ $message }}</p> @enderror
|
|
|
|
<textarea wire:model="content" class="w-full border rounded p-2 min-h-36" placeholder="Snelantwoord tekst"></textarea>
|
|
@error('content') <p class="text-red-600 text-sm">{{ $message }}</p> @enderror
|
|
|
|
<label class="flex items-center gap-2 text-sm">
|
|
<input wire:model="isActive" type="checkbox" class="rounded border-slate-300">
|
|
<span>Actief</span>
|
|
</label>
|
|
|
|
<button class="bg-slate-900 text-white px-4 py-2 rounded" type="submit">Opslaan</button>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="bg-white rounded-xl p-4 shadow">
|
|
<h2 class="font-semibold mb-3">Snelantwoorden</h2>
|
|
<div class="space-y-3">
|
|
@foreach($quickReplies as $quickReply)
|
|
<div class="border rounded p-3">
|
|
<div class="flex items-start justify-between gap-3">
|
|
<div>
|
|
<div class="font-medium">#{{ $quickReply->id }} {{ $quickReply->title }}</div>
|
|
<div class="text-xs text-slate-500">
|
|
Gekoppeld aan {{ $quickReply->articles_count }} artikel(en)
|
|
</div>
|
|
</div>
|
|
<button
|
|
type="button"
|
|
wire:click="deleteQuickReply({{ $quickReply->id }})"
|
|
wire:confirm="Weet je zeker dat je dit snelantwoord wilt verwijderen?"
|
|
class="text-sm text-red-600 hover:underline"
|
|
>
|
|
Verwijderen
|
|
</button>
|
|
</div>
|
|
|
|
<div class="mt-3 rounded bg-slate-50 p-3 space-y-2">
|
|
<input wire:model="editRows.{{ $quickReply->id }}.title" type="text" class="w-full border rounded p-2 text-sm">
|
|
@error("editRows.{$quickReply->id}.title") <p class="text-red-600 text-sm">{{ $message }}</p> @enderror
|
|
|
|
<textarea wire:model="editRows.{{ $quickReply->id }}.content" class="w-full border rounded p-2 min-h-28 text-sm"></textarea>
|
|
@error("editRows.{$quickReply->id}.content") <p class="text-red-600 text-sm">{{ $message }}</p> @enderror
|
|
|
|
<label class="flex items-center gap-2 text-sm">
|
|
<input wire:model="editRows.{{ $quickReply->id }}.is_active" type="checkbox" class="rounded border-slate-300">
|
|
<span>Actief</span>
|
|
</label>
|
|
|
|
<button
|
|
type="button"
|
|
wire:click="updateQuickReply({{ $quickReply->id }})"
|
|
class="text-sm px-3 py-1 rounded bg-slate-900 text-white"
|
|
>
|
|
Wijzigingen opslaan
|
|
</button>
|
|
</div>
|
|
</div>
|
|
@endforeach
|
|
</div>
|
|
|
|
<div class="mt-4">{{ $quickReplies->links() }}</div>
|
|
</div>
|
|
</div>
|