@extends('layouts.dashboard') @section('title', 'Contract Details') @section('header', 'Rental Agreement Details') @section('sidebar') @include('company-admin.partials.sidebar') @endsection @section('content')
Back to Contracts
@if($contract->status === 'draft')
@csrf
@endif Download PDF
@if($contract->status === 'active') Active @elseif($contract->status === 'draft') Draft @elseif($contract->status === 'completed') Completed @else Terminated @endif

Contract Information

Contract Number

{{ $contract->contract_number }}

Contract Type

{{ $contract->contract_type }}

Total Amount

{{ number_format($contract->total_amount, 0) }} {{ $contract->currency }}

Payment Type

{{ $contract->payment_type }}

@if($contract->payment_type === 'installment')

Installment Count

{{ $contract->installment_count ?? '-' }}

Installment Amount

{{ number_format($contract->installment_amount ?? 0, 0) }} {{ $contract->currency }}

@endif

Start Date

{{ \Carbon\Carbon::parse($contract->start_date)->format('M d, Y') }}

End Date

{{ \Carbon\Carbon::parse($contract->end_date)->format('M d, Y') }}

Created At

{{ $contract->created_at->format('M d, Y H:i') }}

Signed At

{{ $contract->signed_at ? \Carbon\Carbon::parse($contract->signed_at)->format('M d, Y') : 'Not signed' }}

@if($contract->terms)

Terms & Conditions

{{ $contract->terms }}

@endif @if($contract->notes)

Additional Notes

{{ $contract->notes }}

@endif

Property Details

@if($contract->property)

Property Name

{{ $contract->property->title }}

Type

{{ $contract->property->type }}

Status

{{ $contract->property->status }}

Address

{{ $contract->property->address }}, {{ $contract->property->city }}

@if($contract->property->bedrooms)

Bedrooms

{{ $contract->property->bedrooms }}

@endif @if($contract->property->bathrooms)

Bathrooms

{{ $contract->property->bathrooms }}

@endif @if($contract->property->area)

Area

{{ $contract->property->area }} m²

@endif
@else

Property information not available

@endif

Customer Details

@if($contract->customer)

Name

{{ $contract->customer->name }}

Email

{{ $contract->customer->email }}

@if($contract->customer->phone)

Phone

{{ $contract->customer->phone }}

@endif
@else

Customer information not available

@endif

Payment Summary

Total Amount: {{ number_format($contract->total_amount, 0) }} {{ $contract->currency }}
Paid Amount: {{ number_format($contract->paid_amount ?? 0, 0) }} {{ $contract->currency }}
Balance: {{ number_format($contract->balance ?? 0, 0) }} {{ $contract->currency }}
Payment Status: {{ $contract->payment_status }}

Related Records

Invoices {{ $contract->invoices->count() }}
@if($contract->invoices->count() > 0) @else

No invoices yet

@endif
Payments {{ $contract->payments->count() }}
@if($contract->payments->count() > 0) @else

No payments yet

@endif
Receipts {{ $contract->receipts->count() }}
@if($contract->receipts->count() > 0) @else

No receipts yet

@endif

Contract Owner

@if($contract->owner)
{{ substr($contract->owner->name, 0, 1) }}

{{ $contract->owner->name }}

{{ $contract->owner->email }}

@else

Owner information not available

@endif
@endsection