2024-01-25 08:59:34 +03:00
|
|
|
@extends('layouts.admin-layout')
|
|
|
|
@section('content')
|
|
|
|
|
|
|
|
@auth()
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<h1 class=""> Создать пункт Экрана приема</h1>
|
|
|
|
{{ Form::open(['url' => route('admin-reception-screen.store'), 'method' => 'POST', 'class' => '']) }}
|
|
|
|
<div class="col">
|
|
|
|
<div>
|
|
|
|
{{ Form::label('position', 'Позиция') }}
|
|
|
|
</div>
|
|
|
|
<div class="mt-2">
|
|
|
|
{{ Form::text('position', '', ['class' => 'form-control']) }}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
@if ($errors->any())
|
|
|
|
{{ $errors->first('position') }}
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
{{ Form::label('name', 'Название') }}
|
|
|
|
</div>
|
|
|
|
<div class="mt-2">
|
|
|
|
{{ Form::text('name', '', ['class' => 'form-control']) }}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
@if ($errors->any())
|
|
|
|
{{ $errors->first('name') }}
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mt-4">
|
|
|
|
{{ Form::submit('создать', ['class' => 'btn btn-primary']) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ Form::close() }}
|
|
|
|
</div>
|
|
|
|
<div class="col">
|
|
|
|
<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>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2024-01-25 10:22:23 +03:00
|
|
|
@foreach($receptionScreens as $receptionScreen)
|
2024-01-25 08:59:34 +03:00
|
|
|
<tr>
|
2024-01-25 10:22:23 +03:00
|
|
|
<th scope="row">{{ $receptionScreen->position }}</th>
|
|
|
|
<td>{{ $receptionScreen->name }}</td>
|
2024-01-25 08:59:34 +03:00
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endauth
|
|
|
|
@endsection
|