All Properties


@foreach($properties as $property) @php $location = explode(',',$property->location); @endphp @endforeach
ID Title Category Location Price Size Bedrooms Bathroom Images Status Actions
{{ $property->id }} {{ $property->title }} @php // Parse the JSON-based category data $category = json_decode(optional($property->category)->title, true); @endphp

{{ $category['en'] ?? 'N/A' }}

{{ $category['ar'] ?? '' }}

AED {{ number_format($property->price, 2) }} {{ $property->size }} sqft {{ $property->bedroom_en() }} {{ $property->bathroom_en() }} @if($property->images->isNotEmpty()) @php $image = $property->images->first()->image; $path = getImageURL(env('AWS_PROPERTY_IMAGES') . "user_{$property->user_id}/$image"); @endphp Property Image @else No Image @endif
@if($property->is_active) @else @endif @if($property->is_published) @else @endif @if($property->is_featured) @else @endif
@csrf @method('DELETE')