add direction profile to direction index
Tests & Lint & Deploy to Railway / build (2.6.6, 20.x, 8.3) (push) Successful in 1m47s Details
Tests & Lint & Deploy to Railway / deploy (push) Successful in 33s Details

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) @foreach($directions as $direction)
<tr class=""> <tr class="">
<th scope="row">{{ $direction->position }}</th> <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>{{ Str::words($direction->description, 10, '...') }}</td>
<td>{{ $direction->slug }}</td> <td>{{ $direction->slug }}</td>
<td>{{ $direction->department->name }}</td> <td>{{ $direction->department->name }}</td>