Merge pull request #3285 from CihanSenturk/update-table-more-actions-delete-button

Updated more actions view component delete button
This commit is contained in:
Cihan Şentürk 2025-04-22 20:38:29 +03:00 committed by GitHub
commit eaa1476c26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -42,11 +42,13 @@
@php
$text = $action['text'] ?? null;
$title = $action['title'] ?? null;
$route = $action['route'] ?? null;
$url = $action['url'] ?? null;
$modelId = ! empty($action['model-id']) ? $action['model-id'] : 'id';
$modelName = ! empty($action['model-name']) ? $action['model-name'] : 'name';
@endphp
<x-delete-button :model="$action['model']" :route="$action['route']" :title="$title" :text="$text" :model-id="$modelId" :model-name="$modelName" />
<x-delete-button :model="$action['model']" :route="$route" :url="$url" :title="$title" :text="$text" :model-id="$modelId" :model-name="$modelName" />
@break
@default