- @foreach ($actions as $action)
- @if (! empty($action['permission']))
- @can($action['permission'])
- @endif
+ @if ($count_buttons > 3 && $loop->count > 4)
+ @break
+ @endif
- @if ($count_buttons > 3 && $loop->count > 4)
+ @php
+ $type = ! empty($action['type']) ? $action['type'] : 'link';
+ @endphp
+
+ @switch($type)
+ @case('button')
+
+
+ {{ $action['icon'] }}
+
+
+
+
{{ $action['title'] }}
+
+
+
@break
- @endif
- @php
- $type = ! empty($action['type']) ? $action['type'] : 'link';
- @endphp
+ @case('delete')
+ @php
+ $title = $action['title'] ?? null;
+ $modelId = ! empty($action['model-id']) ? $action['model-id'] : 'id';
+ $modelName = ! empty($action['model-name']) ? $action['model-name'] : 'name';
+ @endphp
- @switch($type)
- @case('button')
-
-
- {{ $action['title'] }}
-
-
- @break
+
+ @break
- @case('delete')
+ @default
+
+
+ {{ $action['icon'] }}
+
+
+
+
{{ $action['title'] }}
+
+
+
+ @endswitch
+
+ @php
+ array_shift($actions);
+
+ $count_buttons++;
+ @endphp
+
+ @if (! empty($action['permission']))
+ @endcan
+ @endif
+ @endforeach
+
+ @foreach ($actions as $action)
+ @if (! empty($action['permission']))
+ @can($action['permission'])
+ @php $more_actions[] = $action; @endphp
+ @endcan
+ @else
+ @php $more_actions[] = $action; @endphp
+ @endif
+ @endforeach
+
+ @if ($more_actions)
+ @php $divider = false; @endphp
+
+
+
more_horiz
+
+
+ @foreach ($more_actions as $action)
@php
- $title = $action['title'] ?? null;
- $modelId = ! empty($action['model-id']) ? $action['model-id'] : 'id';
- $modelName = ! empty($action['model-name']) ? $action['model-name'] : 'name';
+ $type = ! empty($action['type']) ? $action['type'] : 'link';
@endphp
-
- @break
+ @switch($type)
+ @case('button')
+ @php $divider = false; @endphp
- @default
-
-
- {{ $action['title'] }}
-
-
- @endswitch
-
- @php
- array_shift($actions);
-
- $count_buttons++;
- @endphp
-
- @if (! empty($action['permission']))
- @endcan
- @endif
- @endforeach
-
- @foreach ($actions as $action)
- @if (! empty($action['permission']))
- @can($action['permission'])
- @php $more_actions[] = $action; @endphp
- @endcan
- @else
- @php $more_actions[] = $action; @endphp
- @endif
- @endforeach
-
- @if ($more_actions)
- @php $divider = false; @endphp
-
- @foreach ($more_actions as $action)
- @php
- $type = ! empty($action['type']) ? $action['type'] : 'link';
- @endphp
-
- @switch($type)
- @case('button')
- @php $divider = false; @endphp
-
-
-
- {{ $action['title'] }}
-
-
- @break
-
- @case('delete')
- @php $divider = false; @endphp
-
- @php
- $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')
- @if (! $divider)
- @php $divider = true; @endphp
-
-
+
+
+ {{ $action['title'] }}
+
- @endif
- @break
+ @break
- @default
- @php $divider = false; @endphp
+ @case('delete')
+ @php $divider = false; @endphp
-
-
- {{ $action['title'] }}
-
-
- @endswitch
- @endforeach
- @endif
-
-
-
+ @php
+ $title = $action['title'] ?? null;
+ $modelId = ! empty($action['model-id']) ? $action['model-id'] : 'id';
+ $modelName = ! empty($action['model-name']) ? $action['model-name'] : 'name';
+ @endphp
+
+ @break
-@else
-
- @foreach ($actions as $action)
- @if (! empty($action['permission']))
- @can($action['permission'])
- @endif
+ @case('divider')
+ @if (! $divider)
+ @php $divider = true; @endphp
+
+ @endif
+ @break
- @if ($count_buttons > 3 && $loop->count > 4)
- @break
- @endif
+ @default
+ @php $divider = false; @endphp
- @php
- $type = ! empty($action['type']) ? $action['type'] : 'link';
- @endphp
-
- @switch($type)
- @case('button')
-
-
- {{ $action['icon'] }}
-
-
-
-
{{ $action['title'] }}
-
-
-
- @break
-
- @case('delete')
- @php
- $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
-
-
- {{ $action['icon'] }}
-
-
-
-
{{ $action['title'] }}
-
-
-
- @endswitch
-
- @php
- array_shift($actions);
-
- $count_buttons++;
- @endphp
-
- @if (! empty($action['permission']))
- @endcan
- @endif
- @endforeach
-
- @foreach ($actions as $action)
- @if (! empty($action['permission']))
- @can($action['permission'])
- @php $more_actions[] = $action; @endphp
- @endcan
- @else
- @php $more_actions[] = $action; @endphp
- @endif
- @endforeach
-
- @if ($more_actions)
- @php $divider = false; @endphp
-
-
-
more_horiz
-
-
- @foreach ($more_actions as $action)
- @php
- $type = ! empty($action['type']) ? $action['type'] : 'link';
- @endphp
-
- @switch($type)
- @case('button')
- @php $divider = false; @endphp
-
-
-
- {{ $action['title'] }}
-
-
- @break
-
- @case('delete')
- @php $divider = false; @endphp
-
- @php
- $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')
- @if (! $divider)
- @php $divider = true; @endphp
-
-
+
- @endif
- @break
-
- @default
- @php $divider = false; @endphp
-
-
- @endswitch
- @endforeach
+ @endswitch
+ @endforeach
+
-
- @endif
-
+ @endif
+
@endmobile
diff --git a/safelist.txt b/safelist.txt
index af51a9e1a..144f64dc2 100644
--- a/safelist.txt
+++ b/safelist.txt
@@ -16,6 +16,7 @@ sm:rtl:left-4
sm:w-500
sm:min-h-500
sm:max-w-4xl
+sm:text-purple
md:grid-cols-2
lg:mt-2
lg:pl-24