@use('Illuminate\Support\Str') @use('App\Enums\LotStatus') @use('App\Enums\TaxationType') @php $taxations_default = TaxationType::DEFAULT; $program = $favorite->favoriteable_type === 'program' ? $favorite->favoriteable : $favorite->favoriteable->program; $lot = $favorite->favoriteable_type === 'lot' ? $favorite->favoriteable : null; $favorite->favoriteable_type === 'program' ? ($route = route('programs.show', $program)) : ($route = route('lots.index', [$program, $lot])); $status = $favorite->favoriteable_type === 'lot' ? $favorite->favoriteable->status->value : null; @endphp @if ($favorite->favoriteable !== null)
N° {{ $lot->number }}|{{ $lot->type }}|{{ $lot->surface }} m²|{{ $lot->floor }}
@endif @if($favorite->favoriteable_type === 'lot')