@extends('layouts.agent') @section('content')
@if (session('success'))
{{ session('success') }}
@endif
@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() }}
{{ __('Basic Information') }}
{{ __('Property Type') }}
type : 'residential') == 'residential' ? 'checked' : '' }}>
type : '') == 'commercial' ? 'checked' : '' }} >
@error('type') {{ $message }} @enderror
{{ __('Looking To') }}
looking_for : 'for_sell') == 'for_sell' ? 'checked' : '' }}>
@if(auth()->user()->user_type != 'builder/developer')
looking_for : '') == 'for_rent' ? 'checked' : '' }} >
@endif
@error('looking_for') {{ $message }} @enderror
{{ __('Property Category') }}
@foreach ($categories as $category) @php // Determine the selected category $selectedCategory = old( 'category_id', isset($property) ? $property->category_id : '', ); @endphp
id ? 'checked' : '' }}>
@foreach ($category->child as $childlocation)
id ? 'checked' : '' }}>
@endforeach @endforeach
@error('category_id') {{ $message }} @enderror
@endsection @section('scripts') @endsection