@if(isset($slider->title))
@php $title=$slider->title @endphp
@elseif(old('title'))
@php $title=old('title') @endphp
@else
@php $title='' @endphp
@endif
@error('title')
{{ $message }}
@enderror
@if(isset($slider->sub_title))
@php $sub_title=$slider->sub_title @endphp
@elseif(old('sub_title'))
@php $sub_title=old('sub_title') @endphp
@else
@php $sub_title='' @endphp
@endif
@error('sub_title')
{{ $message }}
@enderror
@if(isset($slider->button_text))
@php $button_text=$slider->button_text @endphp
@elseif(old('button_text'))
@php $button_text=old('button_text') @endphp
@else
@php $button_text='' @endphp
@endif
@error('sub_title')
{{ $message }}
@enderror
@if(isset($slider->url))
@php $url=$slider->url @endphp
@elseif(old('url'))
@php $url=old('url') @endphp
@else
@php $url='' @endphp
@endif
@error('image')
{{ $message }}
@enderror
@if(isset($slider->image))
@php $image=asset(Storage::url('public/sliders')).'/'.$slider->image @endphp
@else
@php $image='' @endphp
@endif
@if($image!="")
@endif