2024-02-14 09:44:53 +03:00
|
|
|
@extends('layouts.admin_layout')
|
2024-01-26 11:15:11 +03:00
|
|
|
@section('content')
|
|
|
|
<div class="container">
|
2024-02-14 09:44:53 +03:00
|
|
|
<h2>Документы</h2>
|
2024-01-26 11:15:11 +03:00
|
|
|
<br>
|
2024-02-14 09:44:53 +03:00
|
|
|
<a href="{{ route('documents.create') }}" class="btn btn-primary">Добавить документ</a>
|
2024-01-26 11:15:11 +03:00
|
|
|
<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>
|
2024-02-14 09:44:53 +03:00
|
|
|
<th scope="col">Название документа</th>
|
|
|
|
<th scope="col">действия</th>
|
2024-01-26 11:15:11 +03:00
|
|
|
<th scope="col">действия</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2024-02-14 09:44:53 +03:00
|
|
|
@foreach($documents as $document)
|
2024-01-26 11:15:11 +03:00
|
|
|
<tr>
|
2024-02-14 09:44:53 +03:00
|
|
|
<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>
|
2024-01-26 11:15:11 +03:00
|
|
|
<a rel="nofollow" data-method="delete" data-confirm="Вы действительно хотите удалить?"
|
2024-02-14 09:44:53 +03:00
|
|
|
href="{{ route('documents.destroy', $document) }}" class="btn btn-danger">
|
2024-01-26 11:15:11 +03:00
|
|
|
удалить
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
</div>
|
|
|
|
@endsection
|