Fix for accessing an object instead of an array
Fix for accessing an object instead of an array
This commit is contained in:
parent
6bbbc232bd
commit
ec2947936b
|
@ -18,14 +18,14 @@
|
|||
@if(!empty($locations))
|
||||
@foreach($locations as $location)
|
||||
<tr>
|
||||
<td class="text-nowrap">{{ $location->name }}</td>
|
||||
<td class="text-nowrap">{{ $location['name'] }}</td>
|
||||
<td class="text-nowrap">
|
||||
<form action="{{ route('locations.destroy', $location->id) }}" method="POST">
|
||||
<a href="{{ route('locations.show', $location->id) }}"
|
||||
<form action="{{ route('locations.destroy', $location['id']) }}" method="POST">
|
||||
<a href="{{ route('locations.show', $location['id']) }}"
|
||||
class="text-body mx-1">
|
||||
<i class="fas fa-eye" title="view"></i></a>
|
||||
<i class="fas fa-trash text-danger ms-3" @click="confirmDeleteModal"
|
||||
id="{{$location->id}}" title="{{$location->name}}"></i>
|
||||
id="{{$location['id']}}" title="{{$location['name']}}"></i>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -18,11 +18,11 @@
|
|||
@if(!empty($os))
|
||||
@foreach($os as $o)
|
||||
<tr>
|
||||
<td class="text-nowrap">{{ $o->name }}</td>
|
||||
<td class="text-nowrap">{{ $o['name'] }}</td>
|
||||
<td class="text-nowrap">
|
||||
<form action="{{ route('locations.destroy', $o->id) }}" method="POST">
|
||||
<form action="{{ route('locations.destroy', $o['id']) }}" method="POST">
|
||||
<i class="fas fa-trash text-danger ms-3" @click="confirmDeleteModal"
|
||||
id="{{$o->id}}" title="{{$o->name}}"></i>
|
||||
id="{{$o['id']}}" title="{{$o['name']}}"></i>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -18,14 +18,14 @@
|
|||
@if(!empty($providers))
|
||||
@foreach($providers as $provider)
|
||||
<tr>
|
||||
<td class="text-nowrap">{{ $provider->name }}</td>
|
||||
<td class="text-nowrap">{{ $provider['name'] }}</td>
|
||||
<td class="text-nowrap">
|
||||
<form action="{{ route('providers.destroy', $provider->id) }}" method="POST">
|
||||
<a href="{{ route('providers.show', $provider->id) }}"
|
||||
<form action="{{ route('providers.destroy', $provider['id']) }}" method="POST">
|
||||
<a href="{{ route('providers.show', $provider['id']) }}"
|
||||
class="text-body mx-1">
|
||||
<i class="fas fa-eye" title="view"></i></a>
|
||||
<i class="fas fa-trash text-danger ms-3" @click="confirmDeleteModal"
|
||||
id="{{$provider->id}}" title="{{$provider->name}}"></i>
|
||||
id="{{$provider['id']}}" title="{{$provider['name']}}"></i>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in New Issue
Block a user