@extends('layouts.contributor') @php $page_title = 'Tableau de bord contributeur'; @endphp @section('meta-title', 'Espace contributeur - Détails réalisation') @section('meta-keywords', '') @section('meta-description', '') @section('style') @endsection @section('content')
@if ($projet->published == 0)
{{ csrf_field() }}

Projet N° @if (isset($projet->id)) {{ $projet->id }} @endif Utilisateur N° @if (isset($user->id)) {{ $user->id }} @endif

@php foreach ( \App\Models\StyleDeco::whereIn('letter', $projet->quiz->style)->get() ?? [] as $key => $style ) { $key == 0 ? ($style_1 = $style->libelle) : ($style_2 = $style->libelle); } $slug = $projet->espace . '-' . $style_1 . '-' . $style_2 . '-' . $projet->id; $divider = '-'; $slug = preg_replace('~[^\pL\d]+~u', $divider, $slug); // transliterate // $slug = iconv('utf-8', 'us-ascii//TRANSLIT', $slug); $slug = str_replace( [ 'à', 'â', 'ä', 'á', 'ã', 'å', 'î', 'ï', 'ì', 'í', 'ô', 'ö', 'ò', 'ó', 'õ', 'ø', 'ù', 'û', 'ü', 'ú', 'é', 'è', 'ê', 'ë', 'ç', 'ÿ', 'ñ', 'À', 'Â', 'Ä', 'Á', 'Ã', 'Å', 'Î', 'Ï', 'Ì', 'Í', 'Ô', 'Ö', 'Ò', 'Ó', 'Õ', 'Ø', 'Ù', 'Û', 'Ü', 'Ú', 'É', 'È', 'Ê', 'Ë', 'Ç', 'Ÿ', 'Ñ', ], [ 'a', 'a', 'a', 'a', 'a', 'a', 'i', 'i', 'i', 'i', 'o', 'o', 'o', 'o', 'o', 'o', 'u', 'u', 'u', 'u', 'e', 'e', 'e', 'e', 'c', 'y', 'n', 'A', 'A', 'A', 'A', 'A', 'A', 'I', 'I', 'I', 'I', 'O', 'O', 'O', 'O', 'O', 'O', 'U', 'U', 'U', 'U', 'E', 'E', 'E', 'E', 'C', 'Y', 'N', ], $slug, ); // remove unwanted characters $slug = preg_replace('~[^-\w]+~', '', $slug); // trim $slug = trim($slug, $divider); // remove duplicate divider $slug = preg_replace('~-+~', $divider, $slug); // lowercase $slug = strtolower($slug); @endphp
Filtres
@php $espaces = [ 'Salon', 'Salle à manger', 'Séjour', 'Cuisine', 'Espace ouvert', 'Studio', 'Chambre adulte', 'Chambre enfant', 'Chambre bébé', 'Bureau', "Hall d'entrée", 'Extérieur', 'Local commercial', 'Salle de bains', 'Terrasse', ]; @endphp
@foreach ($espaces as $piece) @endforeach
Sélectionnez parmi les pièces existantes
@foreach (\App\Models\StyleDeco::orderBy('libelle', 'asc')->get() as $style) @endforeach
Sélectionnez parmi les styles existants
SEO
Donner une liste de mots clés.
Aménagement (piece) (style_1) (style_2) - (id)
(63) Aménagement (piece) (style_1) (style_2) - (id) | Pipcke
(156) Découvrez notre réalisation d’aménagement (piece) (style_1) (style_2) et lancez votre projet de décoration avec nos designers.
@if (isset($projet->brief)) @if (!$projet->brief->plans) Aucune photo téléchargée par le client @else @endif @endif


Designers :
@foreach ($projet->designers as $designer) {{ $designer->designer->prenom }} {{ $designer->designer->nom }}
@endforeach
@php $proposition = $projet->designers ->where('designer_id', $projet->designer_retenue->designer->id) ->first()->proposition ?? null; $note = strip_tags($proposition->note); @endphp
@if ($note) @else @endif
{{-- --}}
{{-- --}}
@if ($projet->designer_retenue) @endif
@php $style_designer = strip_tags( $projet->designer_retenue->designer->profile->style, ); @endphp
@php $conceptions = $projet->designers->where('designer_id', auth()->id())->first()->conceptions ?? []; @endphp
@foreach ($projet->conceptions as $key => $conception)
@endforeach
@if ($projet->brief) @if (!$projet->brief->espaces) Aucune photo téléchargée @else
{!! lang('Réinitialiser') !!}
@endif @endif

Avant :

Après :

{!! lang('Ajouter') !!}
{!! lang('Supprimer') !!}
{!! lang('Réinitialiser') !!}