From 8cee3a821862fc033b1eafa6c7c9af2a44279423 Mon Sep 17 00:00:00 2001 From: slong753 Date: Thu, 29 Jun 2023 14:06:52 -0500 Subject: [PATCH] ok, @marcusmoore was right all along i just didn't get it --- .../views/models/custom_fields_form_bulk_edit.blade.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/resources/views/models/custom_fields_form_bulk_edit.blade.php b/resources/views/models/custom_fields_form_bulk_edit.blade.php index 2e210948b8..e974c3f6eb 100644 --- a/resources/views/models/custom_fields_form_bulk_edit.blade.php +++ b/resources/views/models/custom_fields_form_bulk_edit.blade.php @@ -91,12 +91,8 @@ @endif

{{ trans('admin/hardware/form.bulk_update_model_prefix') }}: - @foreach($field->assetModels() as $assetModel) - @if(in_array($assetModel->name, $modelNames)) - {{$assetModel->name}}{{($loop->last) ? '' : ', '}} - @endif - @endforeach -

+ {{$field->assetModels()->pluck('name')->intersect($modelNames)->implode(', ')}} +