@extends('layouts.app') @section('content')

Property Management

Manage all your properties in one place

@if(request('search')) Clear @endif
@if($properties->count() > 0)
@foreach($properties as $property) @php $typeColors = [ 'residential' => 'bg-green-100 text-green-800', 'commercial' => 'bg-blue-100 text-blue-800', 'industrial' => 'bg-yellow-100 text-yellow-800', 'land' => 'bg-purple-100 text-purple-800', 'other' => 'bg-gray-100 text-gray-800' ]; $type = strtolower($property->PropertyType ?? 'other'); $color = $typeColors[$type] ?? $typeColors['other']; @endphp

{{ $property->PropName ?? 'N/A' }}

{{ $property->PropertyType ?? 'N/A' }}
{{ $property->PropDesc ?? 'No description available for this property.' }}
{{ $property->City ?? 'N/A' }}
@endforeach
@else

No properties

Get started by adding a new property.

@endif
@if($properties->hasPages())
{{ $properties->links('pagination::simple-tailwind') }}
@endif
@push('scripts') @endpush @push('scripts') @endpush @endsection