<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>
