@extends('a1.layout', ['cur' => $key])
@push('head')
@if (!empty($d['ld']))
@endif
@endpush
@section('content')
@php
use App\Support\Rub;
$c = $d['contact'];
$photos = $d['photos'];
$price = trim(($card['prefix'] ? '' : '') . ($card['amount'] ?? 'Sur devis'));
@endphp
@ic($r['icon']){{ $r['short'] }}
@foreach (array_filter($d['chips']) as $chip)
{{ $chip }}
@endforeach
@if ($card['days'] <= 3)
Nouveau@endif
{{ $d['title'] }}
@ic('pin'){{ $d['city'] ?: 'Tunisie' }} · {{ $d['age'] }}
@if ($card['prefix']){{ $card['prefix'] }}@endif
{{ $card['amount'] ?? 'Sur devis' }}@if ($card['suffix']) {{ $card['suffix'] }}@endif
@if ($card['old']){{ $card['old'] }}@endif
{{-- Mosaïque de photos + plein écran --}}
@if (count($photos))
@foreach (array_slice($photos, 1, 2) as $n => $src)
@endforeach
@endif
@if ($d['points'])
@foreach ($d['points'] as [$ico, $txt])
@ic($ico){{ $txt }}
@endforeach
@endif
@ic('chat')Description
{!! nl2br(e($d['description'])) !!}
@foreach ($d['blocks'] as $b)
@ic($b['icon']){{ $b['title'] }}
@switch($b['type'])
@case('dl')
@foreach ($b['items'] as $k => $v)- {{ $k }}
- {{ $v }}
@endforeach
@break
@case('list')
@foreach ($b['items'] as $it)- @ic('check'){{ $it }}
@endforeach
@break
@case('text')
{{ $b['text'] }}
@break
@case('stay')
{{ $b['note'] }}
@break
@case('deal')
Vous économisez-{{ number_format($b['saving'], 0, ',', ' ') }} DTsoit -{{ $b['percent'] }} % sur {{ number_format($b['old'], 0, ',', ' ') }} DT
@if ($b['left'] !== null)
Il reste{{ $b['left'] }} jour{{ $b['left'] > 1 ? 's' : '' }}
Offre valable jusqu’au {{ $b['until'] }}
@endif
@break
@endswitch
@endforeach
{{-- Localisation : zone approximative, jamais d'adresse exacte ni d'iframe externe --}}
@if ($d['location_label'])
@ic('pin')Localisation
@ic('pin')Zone approximative : {{ $d['location_label'] }}
@endif
{{-- Annonces similaires (aucune publicité sur la fiche) --}}
@if (count($similar))
Annonces similaires
@foreach ($similar as $s) @include('a1.partials.card', ['c' => $s]) @endforeach
@endif
{{-- Barre d'actions fixe sur mobile --}}