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

Units

  1. ›
  2. Units
  3. ›
  4. 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)
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 (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')