Merge pull request #95 from Gamerboy59/main
Fix for accessing an object instead of an array
This commit is contained in:
commit
266d67f986
|
@ -3,8 +3,8 @@
|
||||||
<select class="form-control" name="{{$name ?? 'location_id'}}">
|
<select class="form-control" name="{{$name ?? 'location_id'}}">
|
||||||
@foreach ($locations as $location)
|
@foreach ($locations as $location)
|
||||||
<option
|
<option
|
||||||
value="{{ $location->id }}" {{(isset($current) && (string)$current === (string)$location->id)? 'selected' : ''}}>
|
value="{{ $location['id'] }}" {{(isset($current) && (string)$current === (string)$location['id'])? 'selected' : ''}}>
|
||||||
{{ $location->name }}
|
{{ $location['name'] }}
|
||||||
</option>
|
</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
<div class="input-group-prepend"><span class="input-group-text">{{ $title ??'OS'}}</span></div>
|
<div class="input-group-prepend"><span class="input-group-text">{{ $title ??'OS'}}</span></div>
|
||||||
<select class="form-control" name="{{$name ?? 'os_id'}}">
|
<select class="form-control" name="{{$name ?? 'os_id'}}">
|
||||||
@foreach ($os as $o)
|
@foreach ($os as $o)
|
||||||
<option value="{{ $o->id }}" {{(isset($current) && (string)$current === (string)$o->id)? 'selected' : ''}}>
|
<option value="{{ $o['id'] }}" {{(isset($current) && (string)$current === (string)$o['id'])? 'selected' : ''}}>
|
||||||
{{ $o->name }}
|
{{ $o['name'] }}
|
||||||
</option>
|
</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
<div class="input-group-prepend"><span class="input-group-text">{{ $title ??'Provider'}}</span></div>
|
<div class="input-group-prepend"><span class="input-group-text">{{ $title ??'Provider'}}</span></div>
|
||||||
<select class="form-control" name="{{$name ?? 'provider_id'}}">
|
<select class="form-control" name="{{$name ?? 'provider_id'}}">
|
||||||
@foreach ($providers as $provider)
|
@foreach ($providers as $provider)
|
||||||
<option value="{{ $provider->id }}" {{(isset($current) && (string)$current === (string)$provider->id)? 'selected' : ''}}>
|
<option value="{{ $provider['id'] }}" {{(isset($current) && (string)$current === (string)$provider['id'])? 'selected' : ''}}>
|
||||||
{{ $provider->name }}
|
{{ $provider['name'] }}
|
||||||
</option>
|
</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user