diff --git a/resources/views/admin/processes/index.blade.php b/resources/views/admin/processes/index.blade.php index 137338a9..7a992ac2 100644 --- a/resources/views/admin/processes/index.blade.php +++ b/resources/views/admin/processes/index.blade.php @@ -80,36 +80,25 @@ class="table-warning" {!! $process->description ?? '' !!} - @foreach($process->operations as $operation) - - {{ $operation->name }} - - @if (!$loop->last) - , - @endif - @endforeach + {!! + $process->operations->map(function ($operation) { + return '' . $operation->name . ''; + })->implode(', '); + !!} - @if (auth()->user()->granularity>=3) - @foreach($process->activities as $activity) - - {{ $activity->name }} - - @if (!$loop->last) - , - @endif - @endforeach + {!! + $process->activities->map(function ($activity) { + return '' . $activity->name . ''; + })->implode(', '); + !!} - @endif - @foreach($process->processInformation as $information) - - {{ $information->name }} - - @if (!$loop->last) - , - @endif - @endforeach + {!! + $process->processInformation->map(function ($information) { + return '' . $information->name . ''; + })->implode(', '); + !!} @if ($process->macroprocess_id!=null)