Emergency button for missing persons

This commit is contained in:
Simon Pocrnjič
2025-10-09 00:01:15 +02:00
parent c177264b0b
commit 86898eac1a
6 changed files with 194 additions and 27 deletions
+11
View File
@@ -141,6 +141,17 @@ const fmtCurrency = (v) => {
>
{{ client.person?.full_name || "-" }}
</Link>
<div v-if="!client.person" class="mt-1">
<PrimaryButton
class="!py-0.5 !px-2 bg-red-500 hover:bg-red-600 text-xs"
@click.prevent="
router.post(
route('client.emergencyPerson', { uuid: client.uuid })
)
"
>Add Person</PrimaryButton
>
</div>
</td>
<td class="py-2 pr-4 text-right">
{{ client.cases_with_active_contracts_count ?? 0 }}