@extends('layouts.app') @section('meta') @endsection @section('pageTitle') {{ $property[0]->title }} @endsection @section('content') {{-- --}} {{-- {{ dd("test") }} --}} @include('includes.slider')
@if ($errors->has('error'))
{{ $errors->first('error') }}
@endif @if (session()->has('success'))
{{ session()->get('success') }}
@endif @if (session()->has('successFav'))
{{ session()->get('successFav') }}
@endif
@php $pp = $property[0]; $imgs = $pp->images->map(fn ($i) => asset('uploads/promoteur_property/' . $i->title))->all(); $onRequest = ($pp->price_total == 0 || $pp->price_total == 1); @endphp @include('includes.detail_top', [ 'title' => $pp->title, 'ref' => $pp->ref, 'date' => $pp->created_at->format('d/m/Y'), 'views' => (int) $pp->count_views, 'priceText' => $onRequest ? 'Prix sur demande' : number_format((float) $pp->price_total, 0, ',', ' ') . ' DT', 'priceSub' => ($pp->price_metre ? number_format((float) $pp->price_metre, 0, ',', ' ') . ' DT / m²' : null), 'images' => $imgs, 'location' => trim(($pp->area->name ?? '') . ', ' . ($pp->city->name ?? ''), ', '), 'sectionLabel' => 'Direct Promoteurs', 'sectionUrl' => url('/promoteurs-immobiliers'), 'shareJs' => 'shareOnFacebook()', 'facts' => [ ['house-chimney', 'Catégorie', ucfirst($pp->category->name)], ['key', 'Opération', ucfirst($pp->operation->name)], ['ruler-combined', 'Surface', $pp->surface_totale ? $pp->surface_totale . ' m²' : '—'], ['bed', 'Chambres', $pp->nb_bedroom ?: '—'], ], ])

Détails

@if ( $property[0]->nb_bedroom != 0 || $property[0]->nb_living != 0 || $property[0]->nb_bathroom != 0 || $property[0]->nb_kitchen != 0 || $property[0]->suite_parental != 0 || $property[0]->salle_eau != 0 || $property[0]->nb_etage != 0 || $property[0]->nb_terrasse != 0)
    @if ($property[0]->nb_bedroom != 0)
  • Chambre
    {{ $property[0]->nb_bedroom }}
  • @endif
  • Cuisine
    @if ($property[0]->nb_kitchen != 0) Équipé @else Non équipé @endif
  • @if ($property[0]->suite_parental != 0)
  • Suite Parental
    {{ $property[0]->suite_parental }}
  • @endif
    @if ($property[0]->nb_living != 0)
  • Salon
    {{ $property[0]->nb_living }}
  • @endif @if ($property[0]->nb_bathroom != 0)
  • Salle de bains
    {{ $property[0]->nb_bathroom }}
  • @endif @if ($property[0]->salle_eau != 0)
  • Salle d'eau
    {{ $property[0]->salle_eau }}
  • @endif
    @if ($property[0]->nb_etage != 0)
  • Numéro étage
    {{ $property[0]->nb_etage == 'rdc' ? strtoupper($property[0]->nb_etage) : $property[0]->nb_etage }}
  • @endif @if ($property[0]->nb_terrasse != 0)
  • Terrasse
    {{ $property[0]->nb_terrasse }}
  • @endif
@endif

Équipements

    @if ($property[0]->wifi == 1)
  • WiFi
  • @endif @if ($property[0]->balcon == 1)
  • Balcon
  • @endif @if ($property[0]->garden == 1)
  • Jardin
  • @endif @if ($property[0]->garage == 1)
  • Garage
  • @endif @if ($property[0]->parking == 1)
  • Parking
  • @endif @if ($property[0]->ascenseur == 1)
  • Ascenseur
  • @endif @if ($property[0]->heating == 1)
  • Chauffage
  • @endif
    @if ($property[0]->climatisation == 1)
  • Climatisation Central
  • @endif @if ($property[0]->system_alarm == 1)
  • Système alarme
  • @endif @if ($property[0]->piscine == 1)
  • Piscine Privée
  • @endif @if ($property[0]->swimming_pool_public == 1)
  • Piscine Collective
  • @endif @if ($property[0]->split == 1)
  • Split
  • @endif
{{-- -----------------Details Sur Le Prix--------------------------- --}}

Prix

    @if ($property[0]->price_total !== null && $property[0]->price_total != 0 && $property[0]->price_total != 1)
  • Prix Total : {{ $property[0]->price_total }} (TND)
  • @endif @if ($property[0]->price_metre !== null && $property[0]->price_metre != 0)
  • Prix du m² : {{ $property[0]->price_metre }} (TND)
  • @endif @if ($property[0]->price_metre_terrasse !== null && $property[0]->price_metre_terrasse != 0)
  • Prix du m² Terrasse : {{ $property[0]->price_metre_terrasse }} (TND)
  • @endif
    @if ($property[0]->price_metre_jardin !== null && $property[0]->price_metre_jardin != 0)
  • Prix du m² jardin : {{ $property[0]->price_metre_jardin }} (TND)
  • @endif @if ($property[0]->price_cellier !== null && $property[0]->price_cellier != 0)
  • Prix cellier : {{ $property[0]->price_cellier }} (TND)
  • @endif @if ($property[0]->price_parking !== null && $property[0]->price_parking != 0)
  • Prix place parking : {{ $property[0]->price_parking }} (TND)
  • @endif
{{-- -----------------Surface--------------------------- --}}

Surfaces

    @if ($property[0]->surface_totale !== null)
  • Surface Total : {{ $property[0]->surface_totale }} (m²)
  • @endif @if ($property[0]->surface_habitable !== null)
  • Surface Habitable : {{ $property[0]->surface_habitable }} (m²)
  • @endif @if ($property[0]->surface_terrasse !== null)
  • Surface Terrasse : {{ $property[0]->surface_terrasse }} (m²)
  • @endif
    @if ($property[0]->surface_jardin !== null)
  • Surface Jardin : {{ $property[0]->surface_jardin }} (m²)
  • @endif @if ($property[0]->surface_cellier !== null)
  • Surface Cellier : {{ $property[0]->surface_cellier }} (m²)
  • @endif

Remise des clés

{{ ucfirst($property[0]->remise_des_clés) }}

Description

@include('includes.detail_desc', ['text' => $property[0]->description])
@if ($property[0]->vedio_path)

Vidéo

@endif @include('includes.detail_map', ['embed' => $property[0]->map_embed_url, 'address' => $property[0]->address, 'area' => optional($property[0]->area)->name, 'city' => optional($property[0]->city)->name]) {{-- pub --}} {{-- {{ dd($user) }} --}} {{--

Informations sur l'annonceur

@if (isset($user->phone) && !empty($user->phone))
@endif
--}} {{-- endpub --}}
Contact annonceur
@if($user_logo) @else
@endif
{{ ucfirst($user->first_name) }} {{ ucfirst($user->last_name) }}
@if (($user && $user->phone) || $user->mobile)
@if($user->phone)
{{ substr($user->phone, 0, 5) }}XXXX
Appeler @endif @if($user->mobile)
{{ substr($user->mobile, 0, 5) }}XXXX
Appeler @endif
@endif

Envoyer Mail

Envoyer Message

{{-- endtest --}} @if (count($propertyRelated) > 0) @endif
PUBLICITÉS
@foreach ($ads as $ad) {{ ucfirst($ad->description) }} @endforeach
{{-- statistique --}} {{-- end statistique --}} @endsection