trashed()) style="text-decoration: line-through" @endif>
- | {{ Helper::getFormattedDateObject($item['acceptance']->created_at, 'datetime', false) }} |
- {{ ($item['assetItem']->company) ? $item['assetItem']->company->name : '' }} |
- {!! $item['assetItem']->model->category->present()->nameUrl() !!} |
- {!! $item['assetItem']->present()->modelUrl() !!} |
- {!! $item['assetItem']->present()->nameUrl() !!} |
- {{ $item['assetItem']->asset_tag }} |
- assignedTo === null || $item['acceptance']->assignedTo->trashed()) style="text-decoration: line-through" @endif>{!! ($item['acceptance']->assignedTo) ? $item['acceptance']->assignedTo->present()->nameUrl() : trans('admin/reports/general.deleted_user') !!} |
-
-
- @if(!$item['acceptance']->trashed())
-
- @endif
+ @if ($itemsForReport)
+ @foreach ($itemsForReport as $item)
+ acceptance->trashed()) style="text-decoration: line-through" @endif>
+ {{-- Created date --}}
+ |
+ {{ Helper::getFormattedDateObject($item->acceptance->created_at, 'datetime', false) }}
+ |
+ {{-- Item Type --}}
+ {{ $item->type }} |
+ {{-- Company name --}}
+ {!! $item->company !!} |
-
-
-
- @endif
- @endforeach
+ {{-- Category --}}
+ {!! $item->category !!} |
+
+ {{-- Model --}}
+ {!! $item->model !!} |
+
+ {{-- Name --}}
+ {!! $item->name !!} |
+
+ {{-- Asset tag or blank --}}
+ {{ $item->asset_tag }} |
+
+ {{-- Assigned To (with soft-delete strike if needed) --}}
+ assignee || (method_exists($item->assignee, 'trashed') && $item->assignee->trashed())) style="text-decoration: line-through" @endif>
+ {!! $item->assignee
+ ? optional($item->assignee->present())->nameUrl() ?? e($item->assignee->name)
+ : trans('admin/reports/general.deleted_user') !!}
+ |
+
+ {{-- Actions: send reminder / delete --}}
+
+
+ @unless($item->acceptance->trashed())
+
+ @endunless
+ |
+ |
+ @endforeach
@endif