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)) @if(!empty($locations))
@foreach($locations as $location) @foreach($locations as $location)
<tr> <tr>
<td class="text-nowrap">{{ $location->name }}</td> <td class="text-nowrap">{{ $location['name'] }}</td>
<td class="text-nowrap"> <td class="text-nowrap">
<form action="{{ route('locations.destroy', $location->id) }}" method="POST"> <form action="{{ route('locations.destroy', $location['id']) }}" method="POST">
<a href="{{ route('locations.show', $location->id) }}" <a href="{{ route('locations.show', $location['id']) }}"
class="text-body mx-1"> class="text-body mx-1">
<i class="fas fa-eye" title="view"></i></a> <i class="fas fa-eye" title="view"></i></a>
<i class="fas fa-trash text-danger ms-3" @click="confirmDeleteModal" <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> </form>
</td> </td>
</tr> </tr>

View File

@ -18,11 +18,11 @@
@if(!empty($os)) @if(!empty($os))
@foreach($os as $o) @foreach($os as $o)
<tr> <tr>
<td class="text-nowrap">{{ $o->name }}</td> <td class="text-nowrap">{{ $o['name'] }}</td>
<td class="text-nowrap"> <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" <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> </form>
</td> </td>
</tr> </tr>

View File

@ -18,14 +18,14 @@
@if(!empty($providers)) @if(!empty($providers))
@foreach($providers as $provider) @foreach($providers as $provider)
<tr> <tr>
<td class="text-nowrap">{{ $provider->name }}</td> <td class="text-nowrap">{{ $provider['name'] }}</td>
<td class="text-nowrap"> <td class="text-nowrap">
<form action="{{ route('providers.destroy', $provider->id) }}" method="POST"> <form action="{{ route('providers.destroy', $provider['id']) }}" method="POST">
<a href="{{ route('providers.show', $provider->id) }}" <a href="{{ route('providers.show', $provider['id']) }}"
class="text-body mx-1"> class="text-body mx-1">
<i class="fas fa-eye" title="view"></i></a> <i class="fas fa-eye" title="view"></i></a>
<i class="fas fa-trash text-danger ms-3" @click="confirmDeleteModal" <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> </form>
</td> </td>
</tr> </tr>