@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 @if(session('success'))
{{ session('success') }}
@endif

Units

  1. Units
  2. Add
Add New Unit
@csrf
{{-- Project --}}
{{-- Master Plan --}}
{{-- Block --}}
{{-- Unit Number --}}
{{-- Plot Size --}}
{{-- Plot Type --}}
{{-- Actual Price --}}
{{-- Offer Price --}}
{{-- Direction --}}
{{-- end .row --}} {{-- ══ Dimensions & Amenities card ══════════════════════ --}}
📐 Unit Dimensions
{{-- Overall Areas --}}
Overall Floor Areas
{{-- Room Counts --}}
Room Counts
{{-- Room Dimensions --}}
Room Dimensions & Individual Areas

Type width × length → sqm & sqft auto-fill. Override manually if needed.

Room Name
Unit
Width
Length
Area (sqm)
Area (sqft)
@php $dims = old('room_dimensions', [ ['label'=>'Living / Kitchen','width'=>'','length'=>'','unit'=>'m','area_sqm'=>'','area_sqft'=>''] ]); @endphp @foreach($dims as $i => $dim)
ft²
@endforeach
{{-- Amenities
Amenities
@php $savedAmenities = old('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
{{-- Empty state --}}
Click to upload floor plan
JPG, PNG or WebP — shown on the buyer-facing unit page
{{-- Preview state (hidden until file chosen) --}}
{{-- ══ Payment Plans card ══════════════════════════════ --}} @if(isset($allPlans) && $allPlans->isNotEmpty())
Payment Plans — select which plans apply to this unit
@foreach($allPlans as $plan) @php $checked = in_array($plan->id, old('payment_plan_ids', [])); @endphp @endforeach
@endif {{-- Status --}}
@php $currentStatus = old('plot_status', 'Available'); $statusMap = [ 'available' => 'Available', 'not available' => 'Not Available', 'pre-booked' => 'Pre-Booked', 'booked' => 'Not Available', ]; $currentStatus = $statusMap[strtolower(trim($currentStatus))] ?? $currentStatus; @endphp @foreach(['Available','Not Available','Pre-Booked'] as $s)
@endforeach
{{-- Gallery Images --}}

Unit Gallery Images — rooms, bathrooms, etc. (optional, multiple allowed)
JPG, PNG or WebP — up to 10MB each
Cancel
@include('Partials.footer')