Skip to content

Commit

Permalink
Merge branch 'feature/region-select' of https://github.com/rapidez/core
Browse files Browse the repository at this point in the history
… into feature/region-select
  • Loading branch information
Jade-GG committed Feb 21, 2025
2 parents 8faae94 + 0b56e29 commit ba73052
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/components/input/select/region.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@props(['country' => ''])
@props(['country'])
<graphql
v-if="{{ $country }}"
query="query country($id: String) { country(id: $id) { available_regions { code id name } } }"
Expand All @@ -11,7 +11,7 @@
<x-rapidez::input.select
{{ $attributes }}
v-if="'{{ Rapidez::config('general/region/state_required', '') }}'.split(',').includes({{ $country }}) || {{ Rapidez::config('general/region/display_all', '0') }}"
v-bind:required="'{{ Rapidez::config('general/region/state_required', '') }}'.split(',').includes({{ $country }})"
v-bind:required="'{{ Rapidez::config('general/region/state_required') }}'.split(',').includes({{ $country }})"
>
<option v-for="region in data.country.available_regions" :value="region.id">
@{{ region.name }}
Expand Down

0 comments on commit ba73052

Please sign in to comment.