diff --git a/resources/views/admin/posts/save.blade.php b/resources/views/admin/posts/save.blade.php index f090f13..d65317d 100644 --- a/resources/views/admin/posts/save.blade.php +++ b/resources/views/admin/posts/save.blade.php @@ -75,13 +75,6 @@ @endempty -
-
- is_visible) && $post->is_visible) checked @endif> - -
-
-
@empty($post) @@ -123,6 +116,13 @@ @enderror
+
+
+ is_visible) && $post->is_visible) checked @endif> + +
+
+
diff --git a/resources/views/components/inputs/select.blade.php b/resources/views/components/inputs/select.blade.php index a9ad305..184f6cc 100644 --- a/resources/views/components/inputs/select.blade.php +++ b/resources/views/components/inputs/select.blade.php @@ -2,21 +2,25 @@ @endif
- @foreach($options as $key => $val) - @php $find = false; @endphp - @if(is_array($value)) - @foreach($value as $checked) - @if($checked == $key) - @php $find = true; @endphp - @endif - @endforeach - @endif -
- - -
- @endforeach - @error($name) - {{ $message }} - @enderror +