svoydom/resources/views/admin/sliders/_form.blade.php
2023-05-17 09:57:20 +03:00

17 lines
725 B
PHP
Executable File

<div class="mb-3">
<label for="image" class="form-label">Фото</label>
<input type="file" name="image" id="image" value="{{ $slider->image ?? '' }}" class="form-control @error('image') is-invalid @enderror">
@error('image')
<span class="invalid-feedback" role="alert">{{ $message }}</span>
@enderror
</div>
<div class="mb-3">
<label class="form-label">Ссылка</label>
<input type="text" name="url" class="form-control" placeholder="https://via.placeholder.com/600/92c952" value="{{ $slider->url ?? '' }}">
</div>
<div class="d-flex justify-content-between">
<button type="submit" class="btn btn-primary me-2">
@isset($slider) Обновить @else Сохранить @endisset
</button>
</div>