@php use App\Models\Setting; $currencySymbol = Setting::get('currency_symbol', '₹'); @endphp @include('Partials.sidebar')
@include('Partials.header')
@if($errors->any())
    @foreach($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif

Units

  1. Units
  2. Edit Unit
Edit Unit — {{ $plots->plot_number }}
@csrf @method('PUT')
{{-- Project --}}
{{-- Master Plan --}}
{{-- Block --}}
{{-- Unit Number --}}
{{-- Area --}}
{{-- Type --}}
{{-- Actual Price --}}
{{-- Offer Price --}}
{{-- Direction --}}
{{-- end .row --}} {{-- ═══════════════════════════════════════════════ Dimensions & Amenities card ═══════════════════════════════════════════════ --}}
📐 Unit Dimensions & Amenities
{{-- Overall Areas --}}
Overall Floor Areas
{{-- Room Counts --}}
Room Counts
{{-- Room Dimensions --}}
Room Dimensions & Individual Areas

Type width × length → sqm & sqft auto-fill.

Room Name
Unit
Width
Length
Area (sqm)
Area (sqft)
@foreach($dims as $i => $dim)
ft²
@endforeach
{{-- Amenities --}} {{--
Amenities
@php $savedAmenities = $plots->amenities ?? []; $allAmenities = [ 'Swimming Pool','Gym','Parking','24/7 Security','Club House', 'Children Play Area','Jogging Track','Garden','Lift','Power Backup', 'CCTV Surveillance','Intercom','Visitor Parking','Terrace', ]; @endphp
@foreach($allAmenities as $amenity) @endforeach
--}} {{-- Floor Plan Image --}} {{-- Floor Plan Image --}}
Floor Plan Image
{{-- Empty state --}}
Click to upload floor plan
JPG, PNG or WebP — shown on the buyer-facing unit page
{{-- Preview state --}}
{{ $plots->floor_plan_image ? basename($plots->floor_plan_image) : '' }}
Click to change
{{-- Hidden flag so backend knows to delete existing floor plan if cleared --}}
{{-- Status --}}
@php // Normalise DB value to Title Case for comparison $statusMap = [ 'available' => 'Available', 'not available' => 'Not Available', 'pre-booked' => 'Pre-Booked', 'booked' => 'Not Available', ]; $currentStatus = $statusMap[strtolower(trim($plots->status ?? ''))] ?? $plots->status; @endphp @foreach(['Available','Not Available','Pre-Booked'] as $s)
@endforeach
{{-- Gallery Images --}}

Unit Gallery Images
@php $existingGallery = $plots->gallery_images ?? []; @endphp @if(!empty($existingGallery))

Existing images — tick to delete:

@foreach($existingGallery as $img)
@endforeach
@endif
JPG, PNG or WebP — up to 10MB each
{{-- Payment Plans --}} @if(isset($allPlans)) @include('PaymentPlans._unit_payment_plans', ['plots' => $plots, 'allPlans' => $allPlans]) @endif
Cancel
@include('Partials.footer')