Skip to content

Commit

Permalink
or statement for if/else
Browse files Browse the repository at this point in the history
  • Loading branch information
akemidx committed Nov 5, 2024
1 parent 2f5e468 commit 82c38a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/views/hardware/bulk-delete.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@
<td>{{ $asset->id }}</td>
<td>{{ $asset->present()->name() }}</td>
<td>
@if ($asset->location)
{{ $asset->location->name }}
@elseif($asset->rtd_location)
{{ $asset->defaultLoc->name }}
@if ($asset->location || $asset->location_id)
{{ $asset->location->present()->name() }}
@elseif($asset->rtd_location || $asset->rtd_location_id)
{{ $asset->defaultLoc->present()->name() }}
@endif
</td>
<td>
Expand Down

0 comments on commit 82c38a8

Please sign in to comment.