@php use App\Models\TenantSetting; // Get tenant settings for this specific tenant $allSettings = TenantSetting::where('tenant_id', $tenantId)->pluck('value', 'key')->toArray(); $currencySymbol = $allSettings['currency_symbol'] ?? '₹'; $currencyPosition = $allSettings['currency_position'] ?? 'before'; @endphp @include('Partials.sidebar')
@include('Partials.header')
@if($errors->any())
    @foreach($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif

Units

  1. ›
  2. Units
  3. ›
  4. 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)
m²
ft²
@endforeach
{{-- 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')