@extends('layouts.app') @section('title', 'Properties') @section('content')

Properties

All Properties

@if(request('search')) @endif
@forelse($properties as $property) @empty @endforelse
ID Image Title Type Details Status Display Sort Order Created Actions
{{ $property->id }} {{ $property->title }}
{{ $property->title }}
{{ Str::limit($property->short_description, 50) }}
{{ $property->type_name }}
{{ $property->bedrooms }} Bedrooms
{{ $property->bathrooms }} Bathrooms
{{ $property->formatted_area }}
@php $statusColors = [ 'active' => ['bg' => 'bg-success', 'text' => 'text-white'], 'inactive' => ['bg' => 'bg-danger', 'text' => 'text-white'] ]; $status = $property->is_active ? 'active' : 'inactive'; $colors = $statusColors[$status]; @endphp {{ ucfirst($status) }}
Mobile Homepage
{{ $property->sort_order }} {{ $property->created_at->format('M d, Y H:i') }}
@csrf
@csrf
@csrf
@csrf @method('DELETE')
No properties found
@endsection