@extends('layouts.admin') @section('title', 'Manage Available Properties') @section('content')

{{ $properties->total() }}

Total Available

{{ $properties->where('marketing_purpose_id', '!=', null)->count() }}

Categorized

@if(session('success')) @endif
{{ request('status') ? ucfirst(request('status')) : 'All' }} Available Properties
Showing {{ $properties->firstItem() ?? 0 }} - {{ $properties->lastItem() ?? 0 }} of {{ $properties->total() }} properties
Reset
@if(auth()->user()->role === 'admin') @endif @foreach($properties as $property) @if(auth()->user()->role === 'admin') @endif @endforeach @if($properties->count() == 0) @endif
Media Property DetailsListing ByType/Purpose Value Status Actions
@if($property->thumbnail) Property @else
@endif
{{ Str::limit($property->headline, 40) }}
{{ Str::limit($property->location, 35) }}
{{ $property->owner->name ?? 'Admin' }}
{{ strtoupper($property->owner->role ?? 'Staff') }}
{{ $property->marketingPurpose->name ?? 'Unset' }}
{{ $property->propertyType->name ?? 'Unset' }}
£{{ number_format($property->price, 0) }}
@if($property->psg_fees > 0)
+ £{{ number_format($property->psg_fees, 0) }}
@endif
@csrf
@if(auth()->user()->role === 'admin') @endif
@csrf @method('DELETE')

No available properties found.

Add First Property
@if($properties->hasPages())
{{ $properties->links('pagination::bootstrap-5') }}
@endif @endsection