@php use App\Formatter\BladeFormatter; use App\Models\FavoriteTypeEnum; /** @var $lots \App\Collection\Models\View\Lot\VisualPropositionLotCollection */ /** @var $programs \App\Collection\Models\View\Program\ThumbnailProgramCollection */ /** @var $isLmnp \App\Collection\BooleanCollection */ @endphp @extends('pages.templates.two-columns') @section('head') @parent @vite('resources/scss/pages/favorite.scss') @vite('resources/scss/partials/lot.scss') @endsection @section('right-content')
Lots {{$lots->count()}}
Programmes {{$programs->count()}}
@foreach($lots->toArray() as $lot)
@include('partials.favorite', ['isFavorite' => $lot->isFavorite(), 'targetId' => $lot->getId(), 'targetType' => FavoriteTypeEnum::LOT->name])

{{$lot->getProgramName()}} - {{$lot->getTitle()}}

{{$lot->getProgram()->getCity()}}

Date de livraison

@if($lot->getProgram()->getDeliveryDate() instanceof DateTime) @if ($lot->getProgram()->getDeliveryDate() < new DateTime())

Immédiate

@else

{{convertDateQuarterToFR($lot->getProgram()->getDeliveryDate())}}

@endif @else

N/C

@endif

Bâtiment

@if(is_string($lot->getBuildingNumber()) && empty($lot->getBuildingNumber()) === false)

{{$lot->getBuildingNumber()}}

@else

N/C

@endif

Étage

@if(is_int($lot->getFloor()) && empty($lot->getFloor()) === false)

{{$lot->getFloor()}}

@else

N/C

@endif

Typologie

{{$lot->getTypology()}}

Surface

{{$lot->getSurface()}} m2

Exposition

@if(is_string($lot->getOrientation()) && empty($lot->getOrientation()) === false)

{{$lot->getOrientation()}}

@else

N/C

@endif

Surface extérieure totale

@if($lot->getTotalOutsideSurface() > 0)

{{$lot->getTotalOutsideSurface()}} m2

@else

0 m2

@endif
@if($isLmnp->hasKey($lot->getId()) && $isLmnp->get($lot->getId()))

Prix de vente (HT)

{!! BladeFormatter::formatPrice($lot->getTotalPriceTaxExcluded()) !!} €

@if($isInvest)

Loyer (HT) :

@if(is_float($lot->getRentTaxExcluded()) && $lot->getRentTaxExcluded() > 0)

{{$lot->getRentTaxExcluded()}} €

@else

N/C

@endif

Rentabilité (HT) :

@if(is_float($lot->getRentTaxExcluded()) && $lot->getRentTaxExcluded() > 0)

{{$lot->getProfitabilityTaxExcluded()}} %

@else

N/C

@endif
@endif @if(is_int($lot->getFlatPriceTaxExcluded()) && $lot->getFlatPriceTaxExcluded() > 0)

Prix immobilier (HT)

{!! BladeFormatter::formatPrice($lot->getFlatPriceTaxExcluded()) !!} €

@endif @if(is_int($lot->getFurniturePriceTaxExcluded()) && $lot->getFurniturePriceTaxExcluded() > 0)

Prix mobilier (HT)

{!! BladeFormatter::formatPrice($lot->getFurniturePriceTaxExcluded()) !!} €

@endif @elseif($displayReducedTax->hasKey($lot->getId()) && $displayReducedTax->get($lot->getId()) && is_int($lot->getTotalPriceReducedTax()) && $lot->getTotalPriceReducedTax() > 0)

Prix de vente TVA réduite

{!! BladeFormatter::formatPrice($lot->getTotalPriceReducedTax()) !!} €

@else

Prix de vente (TTC)

{!! BladeFormatter::formatPrice($lot->getTotalPriceTaxIncluded()) !!} €

@if($isInvest)

Loyer marché (TTC)

@if (is_float($lot->getMarketRent()) && $lot->getMarketRent() > 0)

{{$lot->getMarketRent()}} €

@else

N/C

@endif

Rentabilité marché

@if (is_float($lot->getMarketRent()) && $lot->getMarketRent() > 0)

{{$lot->getGrossMarketProfitability()}} %

@else

N/C

@endif
@endif @endif
@endforeach
@include('partials.program.grid')
@endsection @section('scriptBottom') @parent @vite('resources/js/application/pages/Favorite.js') @endsection