show icon will appear only mobile

This commit is contained in:
Burak Civan 2022-10-17 16:40:11 +03:00
parent 4c5f1533be
commit 9b4dfd41a6

View File

@ -488,6 +488,20 @@ class Document extends Model
return $actions;
}
if (app('mobile-detect')->isMobile()) {
try {
$actions[] = [
'title' => trans('general.show'),
'icon' => 'visibility',
'url' => route($prefix . '.show', $this->id),
'permission' => 'read-' . $group . '-' . $permission_prefix,
'attributes' => [
'id' => 'index-more-actions-show-' . $this->id,
],
];
} catch (\Exception $e) {}
}
try {
if (! $this->reconciled) {
$actions[] = [