From d9a53460ffff6000f5ffca3b84553273644cbcf7 Mon Sep 17 00:00:00 2001 From: Florent Bervas Date: Wed, 10 Jul 2024 17:05:39 +0000 Subject: [PATCH] Fix design inconsistency between assets and assigned assets in Print All Assigned report --- resources/views/users/print.blade.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/resources/views/users/print.blade.php b/resources/views/users/print.blade.php index bdea19ab7c..acadf16a03 100644 --- a/resources/views/users/print.blade.php +++ b/resources/views/users/print.blade.php @@ -151,20 +151,25 @@ {{ $counter }}.{{ $assignedCounter }} - + @if ($asset->getImageUrl()) @endif {{ $asset->asset_tag }} {{ $asset->name }} - {{ $asset->model->category->name }} + {{ (($asset->model) && ($asset->model->category)) ? $asset->model->category->name : trans('general.invalid_category') }} + {{ ($asset->model) ? $asset->model->name : trans('general.invalid_model') }} {{ ($asset->defaultLoc) ? $asset->defaultLoc->name : '' }} {{ ($asset->location) ? $asset->location->name : '' }} - {{ $asset->model->name }} {{ $asset->serial }} - {{ $asset->last_checkout }} - + + {{ Helper::getFormattedDateObject($asset->last_checkout, 'datetime', false) }} + + @if (($asset->assetlog->first()) && ($asset->assetlog->first()->accept_signature!='')) + + @endif + @php $assignedCounter++