@extends('layouts.client') @php $page_tite = 'Mon espace';@endphp @section('meta-title', 'Espace client') @section('meta-keywords', '') @section('meta-description', '') @section('style') @endsection @section('content')
@php $icons = [ 'Hall d’entrée' => 'pipcke-new-project-select-room-entrance.svg', 'Salon' => 'pipcke-new-project-select-room-living-room.svg', 'Séjour' => 'pipcke-new-project-select-room-guest-room.svg', 'Salle à manger' => 'pipcke-new-project-select-room-dining-room.svg', 'Chambre adulte' => 'pipcke-new-project-select-room-bedroom.svg', 'Chambre enfant' => 'pipcke-new-project-select-room-kids-room.svg', 'Chambre bébé' => 'pipcke-new-project-select-room-nursery.svg', 'Dressing' => 'pipcke-new-project-select-room-dressing.svg', 'Cuisine' => 'pipcke-new-project-select-kitchen.svg', 'Salle de bains' => 'pipcke-new-project-select-bathroom.svg', 'Bureau' => 'pipcke-new-project-select-office.svg', 'Terrasse' => 'pipcke-new-project-select-terrace.svg', 'Espace ouvert' => 'pipcke-new-project-open-space.svg', 'Studio' => 'pipcke-new-project-select-studio.png', 'Espace commercial' => 'pipcke-new-project-select-prof.png', ]; @endphp
@if (empty($data))
Bonjour {{ auth()->user()->prenom }} !

Bienvenue dans votre espace,
Commencez par créer un nouveau projet !

Consultation

Vous avez des questions d’aménagement spécifiques ?
Vous manquez d’inspiration pour le choix de mobilier, d'objets décoratifs, … ?
Nos designers sont là pour vous aider !
Obtenez gratuitement une réponse à votre question par l’un de nos architectes d’intérieur.

@else

Hello {{ auth()->user()->prenom }} !

@php $statuses = array_unique(array_column($data, 'status')); @endphp
@foreach ($data as $item)

{{ \Carbon\Carbon::parse($item['date'])->format('d-m-Y') }}

@if ($item['status'] == 'Choisir mon offre') Choix de l'offre @else @if ($item['status'] == 'Esquisse') Concept d'idées @else {{ $item['status'] }} @endif @endif

@if ($item['status'] == 'Choisir mon offre') @if ($item['type'] == 'group') @else @endif @endif
@if ($item['type'] == 'group')
@foreach ($item['projets'] as $index => $p)
@if (isset($icons[$p['espace']])) Icon @else Default Icon @endif

{{ $p['nom'] ?? $p['espace'] }}

@if ($p['forfait_conception'] || $p['forfait'])

Forfait {{ $p['forfait_conception'] ?? $p['forfait'] }}

@endif
@if ($index == 0) {{ lang('Accéder au projet') }} @endif
@endforeach
@else
@if (isset($icons[$item['espace']])) Icon @else Default Icon @endif

{{ $item['nom'] ?? $item['espace'] }}

@if ($item['forfait'])

Forfait {{ $item['forfait'] }}

@endif
@endif
@endforeach
@endif
@endsection @section('style') @endsection