@php use Illuminate\Support\Facades\Auth; $configData = Helper::appClasses(); @endphp @extends('layouts/layoutMaster') @section('title', $property->name . ' - Property Details') @section('content')
@if (session('success')) @endif @if (session('error')) @endif

{{ $property->name }}

{{ $property->address }}

Property Category @php $categoryBadges = [ 'residential_apartment' => ['bg' => 'bg-label-primary', 'icon' => 'bi-houses-fill', 'label' => 'Residential Apartment'], 'commercial_office' => ['bg' => 'bg-label-info', 'icon' => 'bi-building-fill', 'label' => 'Commercial Office'], 'commercial_mall' => ['bg' => 'bg-label-success', 'icon' => 'bi-shop-window', 'label' => 'Retail Mall / Shopping'], 'industrial_warehouse' => ['bg' => 'bg-label-warning', 'icon' => 'bi-truck-front-fill', 'label' => 'Industrial / Warehouse'], 'other' => ['bg' => 'bg-label-secondary', 'icon' => 'bi-grid-fill', 'label' => 'Mixed Use / Serviced'], ]; $badgeMeta = $categoryBadges[$property->type] ?? ['bg' => 'bg-label-secondary', 'icon' => 'bi-buildings', 'label' => ucfirst($property->type)]; @endphp
{{ $badgeMeta['label'] }}
Property Owner {{ $property->owner->name ?? 'N/A' }}
Commission Rate {{ $property->commission_rate }}%
Registered Units {{ $units->count() }} Units {{ $units->where('status', 'vacant')->count() }} Vacant
Units Registry
Detailed unit specifications, floor locations, and utility meters
@if(in_array(auth()->user()->role, ['admin', 'owner', 'manager'])) @endif
@if(in_array(auth()->user()->role, ['admin', 'owner', 'manager'])) @endif @forelse($units as $unit) @if(in_array(auth()->user()->role, ['admin', 'owner', 'manager'])) @endif @empty @endforelse
Unit & Location Specifications & Specs Utility Meters Monthly Gross Rent StatusActions
{{ $unit->unit_number }} @if($unit->wing_or_block || $unit->floor_level)
{{ implode(' • ', array_filter([$unit->wing_or_block, $unit->floor_level])) }}
@endif
{{ $unit->category_summary }} @if($unit->furnishing_status && $unit->furnishing_status !== 'unfurnished') {{ ucwords(str_replace('_', ' ', $unit->furnishing_status)) }} @endif @if($unit->parking_slots)
{{ Str::limit($unit->parking_slots, 20) }}
@endif
@if($unit->electricity_meter_no)
{{ $unit->electricity_meter_no }}
@endif @if($unit->water_meter_no)
{{ $unit->water_meter_no }}
@endif @if(!$unit->electricity_meter_no && !$unit->water_meter_no) No meters assigned @endif
Ksh {{ number_format($unit->gross_rent, 2) }}
Rent: {{ number_format($unit->rental_rate) }} | SC: {{ number_format($unit->service_charge) }}
@php $statusClasses = [ 'vacant' => 'bg-label-success', 'occupied' => 'bg-label-primary', 'maintenance' => 'bg-label-danger', ]; @endphp {{ ucfirst($unit->status) }}
@csrf @method('DELETE')
No units registered in this property yet. @if(in_array(auth()->user()->role, ['admin', 'owner', 'manager']))
@endif
@if(in_array(auth()->user()->role, ['admin', 'owner', 'manager']))
Quick Add Unit
@csrf
@if($property->type === 'residential_apartment')
@elseif($property->type === 'commercial_office')
@elseif($property->type === 'industrial_warehouse')
@endif
@endif
Management Staff
Assigned managers & caretakers for this property
    @forelse($assignedStaff as $staffMember)
  • {{ $staffMember->name }} {{ ucfirst($staffMember->pivot->role) }}
    {{ $staffMember->email }}
    @if(in_array(auth()->user()->role, ['admin', 'owner']))
    @csrf
    @endif
  • @empty
  • No management staff assigned yet.
  • @endforelse
@if(in_array(auth()->user()->role, ['admin', 'owner']))
@csrf
@endif
Service Providers
Approved contractors & technicians
    @forelse($assignedProviders as $provider)
  • {{ $provider->name }} {{ $provider->pivot->category }}
    {{ $provider->phone_number ?? $provider->email }}
    @if(in_array(auth()->user()->role, ['admin', 'owner']))
    @csrf
    @endif
  • @empty
  • No service providers assigned yet.
  • @endforelse
@if(in_array(auth()->user()->role, ['admin', 'owner']))
@csrf
@endif
@endsection @section('page-script') @endsection