1
0
mirror of https://github.com/cp6/my-idlers.git synced 2024-11-16 15:33:44 +01:00

Fix for accessing an object instead of an array

Fix for accessing an object instead of an array
This commit is contained in:
cp6 2023-09-09 23:14:07 +10:00
parent 6bbbc232bd
commit ec2947936b
3 changed files with 11 additions and 11 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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>