@extends('layouts.admin') @section('content')
@php $steps = [ 1 => 'Basic Details', 2 => 'Property Details', 3 => 'Location Details', 4 => 'Photos & Videos', ]; $currentStep = request()->route()->getName(); preg_match('/step_(\d+)/', $currentStep, $matches); $activeStep = isset($matches[1]) ? (int) $matches[1] : 1; @endphp
@foreach ($steps as $step => $label)
{{ $step }} {{ $label }} @if ($step < count($steps))
@endif
@endforeach
{{ csrf_field() }}
@if ($attributes) @foreach ($attributes as $key => $attribute)
{{ $attribute->name }} ( 2 Amenities are mandatory )
@if ($attribute->options) @foreach ($attribute->options as $okey => $option)
id, old('attributes.' . $attribute->name, $data_attributes[$attribute->name] ?? [])) ? 'checked' : '' }}>
@endforeach @endif @error('attributes')
{{ $message }}
@enderror
@endforeach @endif
{{ __('Back') }}
@endsection @section('scripts') @endsection