@extends('layouts.app') @section('title', 'Détail Contrat - GSI Mobilier') @section('page-title', 'Détail Contrat') @section('page-description', 'Voir les informations du contrat') @section('content')

Contrat

Locataire: {{ $contract->tenant?->name }}

Bâtiment: {{ $contract->tenant?->building?->name ?? '-' }}

Référence
{{ $contract->reference ?? '-' }}
Statut
{{ $contract->status }}
Date début
{{ $contract->start_date?->format('d/m/Y') }}
Date fin
{{ $contract->end_date?->format('d/m/Y') ?? '-' }}
Loyer mensuel
{{ $contract->monthly_rent !== null ? number_format($contract->monthly_rent, 0, ',', ' ') . ' FCFA' : '-' }}
Charges mensuelles
{{ $contract->monthly_charges !== null ? number_format($contract->monthly_charges, 0, ',', ' ') . ' FCFA' : '-' }}
Caution
{{ $contract->deposit_amount !== null ? number_format($contract->deposit_amount, 0, ',', ' ') . ' FCFA' : '-' }}
Fichier
@if(!empty($contract->file_path)) Télécharger @else - @endif
@if(!empty($contract->file_path)) @php $ext = strtolower(pathinfo($contract->file_path, PATHINFO_EXTENSION)); $url = asset('storage/' . $contract->file_path); @endphp
Prévisualisation
@if($ext === 'pdf') @else Contrat @endif
@endif
Notes
{{ $contract->notes ?? '-' }}
@endsection