@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)
favoriteable_id }}> @if(isset($isCarousel) && $isCarousel === 1) @else @endif
{{ $favorite->name }}
@if($status === null || $status === LotStatus::LIBRE->value) @else
@if($status === LotStatus::OPTION->value) Optionnée @else {{ $status }} @endif
@if($status === LotStatus::OPTION->value) @else supprimer des favoris @endif
@endif
{{ Str::limit($program->name, 18) }} | {{ $favorite->favoriteable->address->zip_code }}
{{ Str::limit($favorite->favoriteable->address->city, 20) }}
@if ($lot === null)
@foreach ($taxations_default as $key => $taxation_default) {{ $taxation_default }} @endforeach @if ($program->taxations->isAuthorized()) @foreach ($program->taxations as $taxation) {{ $taxation->name }} @endforeach @endif
@else @endif @if($favorite->favoriteable_type === 'lot')
{{ $lot->price->formatted }}
@else À partir de
{{ $program->lots_min_price->formatted }}
@endif
@if ($favorite->favoriteable->commercialOperations->cashback()) icon cashback Récupérez {{ $favorite->favoriteable->commercialOperations->cashback()->calculPrice($lot?->price->value ?? $program->lots_min_price->value)->formatted }} @endif @if ($favorite->favoriteable->commercialOperations->hasCashback() && $favorite->favoriteable->commercialOperations->hasOpeCom()) | @endif @forelse ($favorite->favoriteable->commercialOperations->opesCom() as $ope_com) icon cadeau {{ $ope_com->type }} @empty @endforelse nouveau
@if($status === null || $status === LotStatus::LIBRE->value)
@else
@endif
@endif @section('option.date.limit.js') @endsection