2024-01-26 11:15:11 +03:00
|
|
|
@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>
|
2024-02-01 13:40:31 +03:00
|
|
|
{{-- <th scope="col">Позиция</th>--}}
|
2024-01-26 11:15:11 +03:00
|
|
|
<th scope="col">Экран Приема</th>
|
2024-02-01 13:40:31 +03:00
|
|
|
<th scope="col">Название файла</th>
|
2024-01-26 11:15:11 +03:00
|
|
|
<th scope="col">действия</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach($files as $file)
|
|
|
|
<tr>
|
|
|
|
<td>{{ $file->receptionScreen->name }}</td>
|
2024-02-01 13:40:31 +03:00
|
|
|
{{-- <th scope="row">{{ $file->position }}</th>--}}
|
|
|
|
<td>{{ $file->name }}</td>
|
|
|
|
|
2024-01-26 11:15:11 +03:00
|
|
|
<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
|