update basic data pemilihan team region

This commit is contained in:
majid
2024-11-06 08:54:42 +07:00
parent ae86c1282b
commit 6be134b9a0
2 changed files with 9 additions and 10 deletions

View File

@@ -61,14 +61,14 @@
class="input tomselect w-full @error('regions_id') border-danger bg-danger-light @enderror"
name="regions_id">
<option value="">Select Region</option>
@if (isset($region))
@foreach ($region as $regions)
@if (isset($regions))
@foreach ($regions as $region)
@if (isset($teams))
<option value="{{ $regions->id }}"
{{ $teams->regions_id == $regions->id ? 'selected' : '' }}>
{{ $regions->name }}</option>
<option value="{{ $region->id }}"
{{ $teams->regions_id == $region->id ? 'selected' : '' }}>
{{ $region->name }}</option>
@else
<option value="{{ $regions->id }}">{{ $regions->name }}</option>
<option value="{{ $region->id }}">{{ $region->name }}</option>
@endif
@endforeach
@endif