@extends('layouts.dashboard') @section('title', 'Rental Agreements') @section('header', 'Rental Agreements Management') @section('sidebar') @include('owner.partials.sidebar') @endsection @section('content')

Rental Agreements

Manage all your property rental and sale agreements

New Agreement
@forelse($contracts as $contract) @empty @endforelse
Contract Number Property Customer Type Amount Duration Status Actions
{{ $contract->contract_number }}
{{ $contract->created_at->format('M d, Y') }}
{{ $contract->property->title ?? 'N/A' }}
{{ $contract->property->city ?? 'N/A' }}
{{ $contract->customer->name ?? 'N/A' }}
{{ $contract->customer->email ?? 'N/A' }}
{{ $contract->contract_type }}
{{ number_format($contract->total_amount, 0) }}
{{ $contract->currency }}
{{ \Carbon\Carbon::parse($contract->start_date)->format('M d, Y') }}
to {{ \Carbon\Carbon::parse($contract->end_date)->format('M d, Y') }}
@if($contract->status === 'active') Active @elseif($contract->status === 'draft') Draft @elseif($contract->status === 'completed') Completed @else Terminated @endif
@if($contract->status === 'draft')
@csrf
@endif

No rental agreements found

Create your first rental agreement to get started

@if($contracts->hasPages())
{{ $contracts->links() }}
@endif
@endsection