or statement for if/else

This commit is contained in:
akemidx 2024-11-04 20:43:18 -05:00
parent 2f5e468b3c
commit 82c38a8b18

View file

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