forked from aslan/applicant-site
37 lines
1.5 KiB
PHP
37 lines
1.5 KiB
PHP
|
@extends('layouts.admin_layout')
|
||
|
@section('content')
|
||
|
|
||
|
@foreach($directions as $direction)
|
||
|
{{-- @dd($direction)--}}
|
||
|
<table>
|
||
|
<tr class="">
|
||
|
<th scope="row">{{ $direction->position }}</th>
|
||
|
<td><a href="{{ route('tilda.show', $direction) }}">{{ $direction->name }}</a>
|
||
|
<br>
|
||
|
<p @style(['font-size: 0.7em', 'color: grey'])>
|
||
|
@foreach($direction->directionProfiles as $directionProfile)
|
||
|
{{ $directionProfile->name }} <br>
|
||
|
@endforeach
|
||
|
</p>
|
||
|
</td>
|
||
|
<td>{{ Str::words($direction->description, 10, '...') }}</td>
|
||
|
<td>{{ $direction->slug }}</td>
|
||
|
<td>{{ $direction->department->name }}</td>
|
||
|
<td>{{ $direction->educationLevel->name }}</td>
|
||
|
<td>
|
||
|
<a href="{{ route("directions.edit", $direction) }}"
|
||
|
class="btn btn-secondary">редактировать</a>
|
||
|
<a rel="nofollow" data-method="post"
|
||
|
href="{{ route('directions.duplication', $direction->id) }}"
|
||
|
class="btn btn-warning">Дублировать</a>
|
||
|
<a rel="nofollow" data-method="delete" data-confirm="Вы действительно хотите удалить?"
|
||
|
href="{{ route('directions.destroy', $direction) }}"
|
||
|
class="btn btn-danger">удалить</a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
@endforeach
|
||
|
@endsection
|
||
|
|