@php use Illuminate\Support\Facades\Auth; $configData = Helper::appClasses(); @endphp @extends('layouts/layoutMaster') @section('title', 'Properties - South Front Technologies') @section('content')
@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif
Property Registry
@if(in_array(auth()->user()->role, ['admin', 'owner'])) Register Property @endif
@if(in_array(auth()->user()->role, ['admin', 'manager', 'caretaker'])) @endif @forelse($properties as $property) @if(in_array(auth()->user()->role, ['admin', 'manager', 'caretaker'])) @endif @empty @endforelse
Property Name Address TypeOwnerUnits Commission Rate Actions
{{ $property->name }} {{ $property->address }} {{ str_replace('_', ' ', ucfirst($property->type)) }} {{ $property->owner->name ?? 'N/A' }} {{ $property->units->count() }} Units {{ $property->commission_rate }}%
View @if((in_array(auth()->user()->role, ['admin', 'owner']) && $property->owner_id === auth()->id()) || auth()->user()->role === 'admin')
@csrf @method('DELETE')
@endif
No properties found.
@endsection