From 82c38a8b181dcb64b83ce03a2d1001ad36cf4024 Mon Sep 17 00:00:00 2001 From: akemidx Date: Mon, 4 Nov 2024 20:43:18 -0500 Subject: [PATCH] or statement for if/else --- resources/views/hardware/bulk-delete.blade.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/views/hardware/bulk-delete.blade.php b/resources/views/hardware/bulk-delete.blade.php index fd48f89100..0e9f24ae50 100644 --- a/resources/views/hardware/bulk-delete.blade.php +++ b/resources/views/hardware/bulk-delete.blade.php @@ -42,10 +42,10 @@ {{ $asset->id }} {{ $asset->present()->name() }} - @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