@extends('admin.layouts.admin') @section('content')
{{ $title }}
@if($action == 'Edit')
@else @endif @csrf
@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->description)) @php $description=$slider->description @endphp @elseif(old('description')) @php $description=old('description') @endphp @else @php $description='' @endphp @endif @error('description')
{{ $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
@if(isset($property->active) && $property->active==1) @php $active='checked' @endphp @else @php $active='' @endphp @endif
@endsection @push('scripts') @endpush