Skip to content

Commit

Permalink
layout
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarzin committed Dec 8, 2024
1 parent ef35d05 commit 08b5c9b
Showing 1 changed file with 15 additions and 26 deletions.
41 changes: 15 additions & 26 deletions resources/views/admin/processes/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,36 +80,25 @@ class="table-warning"
{!! $process->description ?? '' !!}
</td>
<td>
@foreach($process->operations as $operation)
<a href="{{ route('admin.operations.show', $operation->id) }}">
{{ $operation->name }}
</a>
@if (!$loop->last)
,
@endif
@endforeach
{!!
$process->operations->map(function ($operation) {
return '<a href="' . route('admin.operations.show', $operation->id) . '">' . $operation->name . '</a>';
})->implode(', ');
!!}
</td>
@if (auth()->user()->granularity>=3)
<td>
@foreach($process->activities as $activity)
<a href="{{ route('admin.activities.show', $activity->id) }}">
{{ $activity->name }}
</a>
@if (!$loop->last)
,
@endif
@endforeach
{!!
$process->activities->map(function ($activity) {
return '<a href="' . route('admin.activities.show', $activity->id) . '">' . $activity->name . '</a>';
})->implode(', ');
!!}
</td>
@endif
<td>
@foreach($process->processInformation as $information)
<a href="{{ route('admin.information.show', $information->id) }}">
{{ $information->name }}
</span>
@if (!$loop->last)
,
@endif
@endforeach
{!!
$process->processInformation->map(function ($information) {
return '<a href="' . route('admin.information.show', $information->id) . '">' . $information->name . '</a>';
})->implode(', ');
!!}
</td>
<td>
@if ($process->macroprocess_id!=null)
Expand Down

0 comments on commit 08b5c9b

Please sign in to comment.