36 lines
1.5 KiB
PHP
36 lines
1.5 KiB
PHP
@extends('layouts.admin_layout')
|
|
@section('content')
|
|
<div class="container">
|
|
<h2>Документы</h2>
|
|
<br>
|
|
<a href="{{ route('documents.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>
|
|
<th scope="col">действия</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($documents as $document)
|
|
<tr>
|
|
<td>{{ $document->admission->name }}</td>
|
|
<td><a href="{{ route('documents.show', $document) }}">{{ $document->name }}</a></td>
|
|
<td><a href="{{ route("documents.edit", $document) }}" class="btn btn-secondary">редактировать</a>
|
|
<a rel="nofollow" data-method="delete" data-confirm="Вы действительно хотите удалить?"
|
|
href="{{ route('documents.destroy', $document) }}" class="btn btn-danger">
|
|
удалить
|
|
</a>
|
|
</td>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
<br>
|
|
<br>
|
|
</div>
|
|
@endsection
|