diff --git a/resources/views/blade/input/location-select.blade.php b/resources/views/blade/input/location-select.blade.php index c3c1e50b99ca..f9bd28fa630f 100644 --- a/resources/views/blade/input/location-select.blade.php +++ b/resources/views/blade/input/location-select.blade.php @@ -11,6 +11,15 @@ 'hideNewButton' => false, ]) +@php + $id = $name . '_location_select'; + + // User provided id, overwrite the default + if ($attributes->has('id')) { + $id = $attributes->get('id'); + } +@endphp +
@if ($selected) - @foreach(Arr::wrap($selected) as $id) - @endforeach @endif