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->id }}</td>
<td>{{ $asset->present()->name() }}</td> <td>{{ $asset->present()->name() }}</td>
<td> <td>
@if ($asset->location) @if ($asset->location || $asset->location_id)
{{ $asset->location->name }} {{ $asset->location->present()->name() }}
@elseif($asset->rtd_location) @elseif($asset->rtd_location || $asset->rtd_location_id)
{{ $asset->defaultLoc->name }} {{ $asset->defaultLoc->present()->name() }}
@endif @endif
</td> </td>
<td> <td>