Files
analytics/resources/views/alerts/edit.blade.php
T

24 lines
1.1 KiB
PHP
Raw Normal View History

2026-03-19 18:42:19 +02:00
<x-analytics-layout :website="$website" title="Edit Alert">
<div class="max-w-2xl">
<div class="bg-white rounded-xl border border-gray-200 p-6">
<form method="POST" action="{{ route('alerts.update', [$website, $alert]) }}">
@csrf
@method('PUT')
@include('alerts._form', ['alert' => $alert])
</form>
</div>
<div class="mt-6 bg-white rounded-xl border border-red-200 p-6">
<h3 class="text-sm font-semibold text-red-700 mb-1">Danger Zone</h3>
<p class="text-sm text-gray-500 mb-4">Permanently delete this alert and all its notification history.</p>
<form method="POST" action="{{ route('alerts.destroy', [$website, $alert]) }}" onsubmit="return confirm('Delete this alert?')">
@csrf
@method('DELETE')
<button type="submit" class="inline-flex items-center px-4 py-2 bg-red-600 rounded-lg text-sm font-medium text-white hover:bg-red-500 transition">
Delete Alert
</button>
</form>
</div>
</div>
</x-analytics-layout>