@extends('layouts.app') @section('title', 'Landlords') @section('heading', 'Landlords') @section('subheading', 'Name variants are matched automatically, so the same landlord is not stored twice') @section('content')
Add a landlord
@csrf
@error('name')
{{ $message }}
@enderror
@if (request('q')) Clear @endif
{{ number_format($landlords->total()) }} {{ \Illuminate\Support\Str::plural('landlord', $landlords->total()) }}
@forelse ($landlords as $landlord) @empty @endforelse
NameContactTenancies
{{ $landlord->name }} @if ($landlord->registration_no)
{{ $landlord->registration_no }}
@endif
{{ $landlord->contact_person ?? '—' }} @if ($landlord->contact_phone || $landlord->contact_email)
{{ collect([$landlord->contact_phone, $landlord->contact_email])->filter()->implode(' · ') }}
@endif
@if ($landlord->tenancies_count > 0) {{ $landlord->tenancies_count }} @else 0 @endif @if ($landlord->tenancies_count === 0)
@csrf @method('DELETE')
@endif
@csrf @method('PUT')
is_active)>
No landlords found.
@if ($landlords->hasPages()) @endif
@endsection