Skip to content

Commit

Permalink
BUGFIX 🐛 Fix inline displaying of options
Browse files Browse the repository at this point in the history
  • Loading branch information
ndeblauw authored Sep 25, 2024
1 parent bae777e commit ce124bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/components/formelements/checkboxes.blade.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div class="space-y-6 sm:space-y-5">
<div class="sm:grid sm:grid-cols-6 sm:gap-4 sm:items-start sm:pt-5">
@include('BlueAdminFormelements::_label')
<div class="mt-1 sm:mt-0 sm:col-span-5">
<div class="mt-1 sm:mt-0 sm:col-span-5 @if($inline) flex flex-row gap-x-4 @endif">
@foreach($options as $optionValue => $optionLabel)
<div class="leading-loose @if($inline) @endif">
<div class="leading-loose">
<label class="">
<input type="checkbox" class="focus:ring-indigo-500 h-4 w-4 text-blue-600 border-gray-300 rounded" name="{{$name}}[]" value="{{$optionValue}}" id="{{$name}}-{{$optionValue}}"
@if(in_array($optionValue, old($name,$values))) checked @endif >
Expand Down

0 comments on commit ce124bf

Please sign in to comment.