36 lines
1.6 KiB
PHP
36 lines
1.6 KiB
PHP
@php use App\Models\Direction; @endphp
|
|
@extends('layouts.admin_layout')
|
|
@section('content')
|
|
<div class="container">
|
|
<h2>Документы</h2>
|
|
<br>
|
|
<a href="{{ route('direction_descriptions.create') }}" class="btn btn-primary">Добавить документ</a>
|
|
<br>
|
|
<br>
|
|
<table class="table">
|
|
<thead class="border-b-2 border-solid border-black text-left" style="text-align: left">
|
|
<tr>
|
|
<th scope="col">Направление</th>
|
|
<th scope="col">файл</th>
|
|
<th scope="col">действия</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($directionDescriptions as $directionDescription)
|
|
<tr>
|
|
<td>{{ Str::limit(Direction::where('id', $directionDescription->direction_code)->first()->full_name, 50) }}</td>
|
|
<td>{{ $directionDescription->file_name }}</td>
|
|
<td><a href="{{ route("direction_descriptions.edit", $directionDescription) }}" class="btn btn-secondary">редактировать</a>
|
|
<a rel="nofollow" data-method="delete" data-confirm="Вы действительно хотите удалить?"
|
|
href="{{ route('direction_descriptions.destroy', $directionDescription) }}" class="btn btn-danger">
|
|
удалить
|
|
</a>
|
|
</td>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
<br>
|
|
<br>
|
|
</div>
|
|
@endsection
|