37 lines
1.5 KiB
PHP
37 lines
1.5 KiB
PHP
|
@extends('layouts.admin-layout')
|
||
|
@section('content')
|
||
|
<div class="container">
|
||
|
<h2>Файлы</h2>
|
||
|
<br>
|
||
|
<a href="{{ route('files.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($files as $file)
|
||
|
<tr>
|
||
|
<th scope="row">{{ $file->position }}</th>
|
||
|
<td>{{ $file->name }}</td>
|
||
|
<td>{{ $file->receptionScreen->name }}</td>
|
||
|
<td><a href="{{ route("files.edit", $file) }}" class="btn btn-secondary">редактировать</a>
|
||
|
<a rel="nofollow" data-method="delete" data-confirm="Вы действительно хотите удалить?"
|
||
|
href="{{ route('files.destroy', $file) }}" class="btn btn-danger">
|
||
|
удалить
|
||
|
</a>
|
||
|
</td>
|
||
|
@endforeach
|
||
|
</tbody>
|
||
|
</table>
|
||
|
<br>
|
||
|
<br>
|
||
|
</div>
|
||
|
@endsection
|