Compare commits
No commits in common. "cd52d23f81daf1ccee7651644b140b7d0195b142" and "7d26f1ace831c055a5dca3bfc68e25e16254506e" have entirely different histories.
cd52d23f81
...
7d26f1ace8
|
@ -1,20 +1,5 @@
|
||||||
@extends('layouts.admin-layout')
|
@extends('layouts.admin-layout')
|
||||||
@section('content')
|
@section('content')
|
||||||
<style>
|
|
||||||
.accordion-button:not(.collapsed)
|
|
||||||
{
|
|
||||||
color:#006147;
|
|
||||||
background-color: rgb(255, 255, 255);
|
|
||||||
box-shadow:inset 0 -1px 0 rgba(0,0,0,.125)
|
|
||||||
}
|
|
||||||
.accordion-button:focus {
|
|
||||||
z-index: 3;
|
|
||||||
border-color: #006147;
|
|
||||||
outline: 0;
|
|
||||||
box-shadow: 0 0 0 0.25rem #006147;
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h2>Экран Приема</h2>
|
<h2>Экран Приема</h2>
|
||||||
<br>
|
<br>
|
||||||
|
@ -24,18 +9,14 @@
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead class="border-b-2 border-solid border-black text-left" style="text-align: left">
|
<thead class="border-b-2 border-solid border-black text-left" style="text-align: left">
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
<th scope="col">Позиция</th>
|
<th scope="col">Позиция</th>
|
||||||
<th scope="col">Название</th>
|
<th scope="col">Название</th>
|
||||||
<th scope="col">действия</th>
|
<th scope="col">действия</th>
|
||||||
<th scope="col"></th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="accordion" id="accordionExample">
|
<tbody>
|
||||||
@foreach($receptionScreens as $receptionScreen)
|
@foreach($receptionScreens as $receptionScreen)
|
||||||
<?php $accordion_tmp = str_replace(' ','', $receptionScreen->name) ?>
|
<tr>
|
||||||
<tr class="accordion-item ">
|
|
||||||
|
|
||||||
<th scope="row">{{ $receptionScreen->position }}</th>
|
<th scope="row">{{ $receptionScreen->position }}</th>
|
||||||
<td>{{ $receptionScreen->name }}</td>
|
<td>{{ $receptionScreen->name }}</td>
|
||||||
<td><a href="{{ route("admin-reception-screen.edit", $receptionScreen) }}" class="btn btn-secondary">редактировать</a>
|
<td><a href="{{ route("admin-reception-screen.edit", $receptionScreen) }}" class="btn btn-secondary">редактировать</a>
|
||||||
|
@ -44,24 +25,16 @@
|
||||||
удалить
|
удалить
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<th class="accordion-header" id="heading<?php echo $accordion_tmp ?>">
|
|
||||||
<button class="accordion-button collapsed btn btn-secondary" type="button" data-bs-toggle="collapse" data-bs-target="#collapse<?php echo $accordion_tmp ?> " aria-expanded="false" aria-controls="collapse<?php echo $accordion_tmp ?>">
|
|
||||||
Показать
|
|
||||||
</button>
|
|
||||||
</th>
|
|
||||||
@if(count($receptionScreen->files) !== 0)
|
@if(count($receptionScreen->files) !== 0)
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="3">
|
<td colspan="3">
|
||||||
<table class="table table-bordered accordion-collapse collapse" id="collapse<?php echo $accordion_tmp ?>" aria-labelledby="heading<?php echo $accordion_tmp ?>" data-bs-parent="#accordionExample">
|
<table class="table table-bordered">
|
||||||
|
<thead>
|
||||||
<thead class="accordion-body">
|
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col">Позиция</th>
|
<th scope="col">Позиция</th>
|
||||||
<th scope="col">Имя Файла</th>
|
<th scope="col">Имя Файла</th>
|
||||||
<th scope="col">действия</th>
|
<th scope="col">действия</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -80,24 +53,16 @@
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@endforeach
|
@endforeach
|
||||||
<tr class=" border border-white border-bottom-0 border-start-0 border-end-0">
|
|
||||||
<td colspan="3"><div class="mb-2">
|
|
||||||
<a href="{{ route('files.create', $receptionScreen->id) }}"
|
|
||||||
class="btn btn-primary">
|
|
||||||
Добавить файл
|
|
||||||
</a>
|
|
||||||
</div></td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
|
<div class="mb-2">
|
||||||
|
<a href="{{ route('files.create', $receptionScreen->id) }}"
|
||||||
|
class="btn btn-primary">
|
||||||
|
Добавить файл
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@else
|
@else
|
||||||
|
@ -115,30 +80,4 @@
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
|
@ -9,19 +9,18 @@
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead class="border-b-2 border-solid border-black text-left" style="text-align: left">
|
<thead class="border-b-2 border-solid border-black text-left" style="text-align: left">
|
||||||
<tr>
|
<tr>
|
||||||
{{-- <th scope="col">Позиция</th>--}}
|
<th scope="col">Позиция</th>
|
||||||
<th scope="col">Экран Приема</th>
|
|
||||||
<th scope="col">Название файла</th>
|
<th scope="col">Название файла</th>
|
||||||
|
<th scope="col">Экран Приема</th>
|
||||||
<th scope="col">действия</th>
|
<th scope="col">действия</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach($files as $file)
|
@foreach($files as $file)
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $file->receptionScreen->name }}</td>
|
<th scope="row">{{ $file->position }}</th>
|
||||||
{{-- <th scope="row">{{ $file->position }}</th>--}}
|
|
||||||
<td>{{ $file->name }}</td>
|
<td>{{ $file->name }}</td>
|
||||||
|
<td>{{ $file->receptionScreen->name }}</td>
|
||||||
<td><a href="{{ route("files.edit", $file) }}" class="btn btn-secondary">редактировать</a>
|
<td><a href="{{ route("files.edit", $file) }}" class="btn btn-secondary">редактировать</a>
|
||||||
<a rel="nofollow" data-method="delete" data-confirm="Вы действительно хотите удалить?"
|
<a rel="nofollow" data-method="delete" data-confirm="Вы действительно хотите удалить?"
|
||||||
href="{{ route('files.destroy', $file) }}" class="btn btn-danger">
|
href="{{ route('files.destroy', $file) }}" class="btn btn-danger">
|
||||||
|
|
|
@ -49,10 +49,9 @@
|
||||||
<div class="row align-items-start">
|
<div class="row align-items-start">
|
||||||
<aside class="list-group col-2">
|
<aside class="list-group col-2">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="list-group-item"><a href="{{ route('files.index') }}">Файлы</a></li>
|
|
||||||
<li class="list-group-item"><a href="{{ route('admin-reception-screen.index') }}">Экран Приема</a></li>
|
<li class="list-group-item"><a href="{{ route('admin-reception-screen.index') }}">Экран Приема</a></li>
|
||||||
@if(!is_null(Auth::getUser()) && Auth::getUser()->name === 'admin')
|
@if(!is_null(Auth::getUser()) && Auth::getUser()->name === 'admin')
|
||||||
{{-- <li class="list-group-item"></li>--}}
|
<li class="list-group-item"></li>
|
||||||
<li class="list-group-item"><a href="{{ route('users.index') }}">Список администраторов</a></li>
|
<li class="list-group-item"><a href="{{ route('users.index') }}">Список администраторов</a></li>
|
||||||
@endif
|
@endif
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -73,7 +73,7 @@
|
||||||
<div id="panelsStayOpen-<?php echo $tmp ?>" class="accordion-collapse collapse show">
|
<div id="panelsStayOpen-<?php echo $tmp ?>" class="accordion-collapse collapse show">
|
||||||
<div class="accordion-body">
|
<div class="accordion-body">
|
||||||
@foreach($receptionScreen->files as $file)
|
@foreach($receptionScreen->files as $file)
|
||||||
<div class="col-8 mb-2 pb-2 ms-4">
|
<div class="col-8 mb-2 pb-2">
|
||||||
<a href="{{ $file->url }}">{{ $file->name }}</a>
|
<a href="{{ $file->url }}">{{ $file->name }}</a>
|
||||||
</div>
|
</div>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
Loading…
Reference in New Issue