@extends('backend.layouts.layout') @section('content')

Properties for {{ $client->client_name }}

{{ $propertys->count() }}

Total Properties

{{ $propertys->where('status', 'active')->count() }}

Active Properties

{{ $propertys->where('status', 'maintenance')->count() }}

In Maintenance

{{ $propertys->where('status', 'inactive')->count() }}

Inactive Properties

@if($propertys->count() > 0)
@foreach($propertys as $property) @endforeach
Property Name Address City State Zip Code Type Square Feet Units Status Actions
{{ $property->property_name }} @if($property->propertyDetails->count() > 0)
@foreach($property->propertyDetails as $detail) {{ $detail->key }}: {{ $detail->number }} ({{ $detail->value }} sq ft) @endforeach @endif
{{ Str::limit($property->address, 30) }} {{ $property->city }} {{ $property->state }} {{ $property->zip_code }} {{ $property->property_type }} @if($property->square_feet) {{ number_format($property->square_feet) }} sq ft @else N/A @endif {{ $property->number_of_units }} @if($property->status == 'active') Active @elseif($property->status == 'inactive') Inactive @else Maintenance @endif
@else

No Properties Found

This client doesn't have any properties yet.

@endif
@endsection @push('styles') @endpush @push('script') @endpush