@extends('layouts.app') @section('title', 'Managed Rentals') @section('page-title', 'Managed Rentals') @section('content') {{-- Summary cards --}}
No rental agreements found matching the selected filters.
| Property | Owner | Start Date | @include('partials._sort_th', ['column' => 'agreement_end_date', 'label' => 'End Date']) @include('partials._sort_th', ['column' => 'monthly_rent', 'label' => 'Monthly Rent', 'thClass' => 'text-center'])Days Left | Status | Assigned Staff | Collection Status | Actions | |||
|---|---|---|---|---|---|---|---|---|---|---|
|
@if($client)
{{ $client->full_name }}
@else
{{ $rental->client_name ?: '—' }}
@endif
@if($client && $rental->client_name && $rental->client_name !== $client->full_name)
{{ $rental->client_name }}
@endif
|
@if($rental->property && !$rental->property->trashed())
{{ $rental->property->title }}
@if($rental->property->city)
{{ $rental->property->city }}
@endif
@elseif($rental->property)
{{ $rental->property->title }}
@if($rental->property->city)
{{ $rental->property->city }}
@endif
@else
—
@endif
|
{{ $rental->owner_name ?: '—' }} | {{ $rental->agreement_start_date ? $rental->agreement_start_date->format('d M Y') : '—' }} | {{ $rental->agreement_end_date ? $rental->agreement_end_date->format('d M Y') : '—' }} | {{ $rental->monthly_rent ? '₹ ' . number_format((float) $rental->monthly_rent, 0) : '—' }} | @if($daysLeft !== null) {{ $isExpired ? abs($daysLeft) . 'd ago' : $daysLeft . 'd' }} @else — @endif | {!! $statusBadge !!} | {{ $staff ? $staff->name : '—' }} | @php $isManaged = $rental->property && $rental->property->is_managed; $collRec = $collectionRecords->get($rental->id); $thisStatus = $collRec ? $collRec->status : 'not_marked'; @endphp @if(! $isManaged) Not Managed @elseif($thisStatus === 'collected') Collected @elseif($thisStatus === 'not_collected') Not Collected @else Not Marked @endif | @if($lead) @endif @if($rental->document_path && $lead) @endif |