public function updateSlide()
{
$slider = HomeSlider::find($this->slider_id);
$slider->title = $this->title;
$slider->subtitle = $this->subtitle;
$slider->price = $this->price;
$slider->link = $this->link;
if ($this->newimage) {
$imagename = Carbon::now()->timestamp . '.' . $this->newimage->extension();
$this->newimage->storeAs('sliders', $imagename);
$slider->image = $imagename;
}
$slider->image = $this->image;
$slider->status = $this->status;
$slider->save();
session()->flash('message', 'Slide has been updated successfully!');
}