add direction profile to direction index

This commit is contained in:
aslan 2024-03-14 09:30:46 +03:00
parent 48767bbf27
commit 8d1078e8d5
1 changed files with 8 additions and 1 deletions

View File

@ -24,7 +24,14 @@
@foreach($directions as $direction)
<tr class="">
<th scope="row">{{ $direction->position }}</th>
<td><a href="{{ route('directions.show', $direction) }}">{{ $direction->name }}</a></td>
<td><a href="{{ route('directions.show', $direction) }}">{{ $direction->name }}</a>
<br>
<p @style(['font-size: 0.7em', 'color: grey'])>
@foreach($direction->directionProfiles as $directionProfile)
{{ $directionProfile->name }}
@endforeach
</p>
</td>
<td>{{ Str::words($direction->description, 10, '...') }}</td>
<td>{{ $direction->slug }}</td>
<td>{{ $direction->department->name }}</td>