svoydom/resources/views/admin/sliders/_form.blade.php

17 lines
725 B
PHP
Raw Normal View History

2023-05-17 09:57:20 +03:00
<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>