add_image.blade.php
1.19 KB
@extends('layout.admin', ['title' => 'Создание доп.картинки товара'])
@section('content')
<div class="profile-block-wrapper">
<div class="profile-block">
<h2 class="modal-auth__title">
Название товара: {{ $good->title }} ID: ({{ $good->id }})
</h2>
<form method="post" enctype="multipart/form-data" class="modal-auth-form" action="{{ route('admin.img.add.good', ['good' => $good->id]) }}">
@csrf
<label for="image">Файл-картинка:</label>
<input type="file" class="form-control-file txt" name="image" id="image" accept="image/png, image/jpeg">
<br><br>
<label for="sample">Фото для образца-изделия</label><br>
<select name="sample" id="sample" class="form-control">
<option value="1">Да</option>
<option value="0">Нет</option>
</select>
<br><br>
<button type="submit" class="parts-content-form-bottom__button">Сохранить</button>
</form>
</div>
</div>
@endsection