From 9f3100ec402e70b4782de7212155b4a203043382 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cihan=20=C5=9Eent=C3=BCrk?=
<53110792+CihanSenturk@users.noreply.github.com>
Date: Fri, 11 Aug 2023 14:03:10 +0300
Subject: [PATCH] fixed mobile delete action issue
---
resources/views/components/table/actions-mobile.blade.php | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/resources/views/components/table/actions-mobile.blade.php b/resources/views/components/table/actions-mobile.blade.php
index 66be3934f..cdb45a71c 100644
--- a/resources/views/components/table/actions-mobile.blade.php
+++ b/resources/views/components/table/actions-mobile.blade.php
@@ -50,12 +50,13 @@
@case('delete')
@php
+ $text = $action['text'] ?? null;
$title = $action['title'] ?? null;
$modelId = ! empty($action['model-id']) ? $action['model-id'] : 'id';
$modelName = ! empty($action['model-name']) ? $action['model-name'] : 'name';
@endphp
-
+
@break
@default
@@ -114,11 +115,13 @@
@php $divider = false; @endphp
@php
+ $text = $action['text'] ?? null;
$title = $action['title'] ?? null;
$modelId = ! empty($action['model-id']) ? $action['model-id'] : 'id';
$modelName = ! empty($action['model-name']) ? $action['model-name'] : 'name';
@endphp
-
+
+
@break
@case('divider')