@extends('layouts.espace_collaboration') @section('meta-title', 'Découvrez vos esquisses') @section('meta-keywords', '') @section('meta-description', '') @section('sub-menu') @include('front.espace_collaboration.menu') @endsection @section('content') @php $total = 3; $migrated = $projet->migrated && $projet->forfait != 'fantastique'; if ($projet->migrated) { $total = 2; } @endphp
@if ($projet->migrated)
@else
@endif
@for ($i = 0; $i < $total; $i++)
{{ $i + 1 }}{{ $i == 0 ? 'er' : 'ème' }} {!! lang('concept') !!}
{{ $projet->designers[$i]->designer->prenom ?? '' }}
@endfor
@if ($projet->migrated)
@else
@endif @if ($projet->conception == 0 && $migrated) @if ($projet->forfait != 'fantastique')
{{ csrf_field() }}
@else
{{ csrf_field() }}
@endif @endif
@foreach ($projet->designers as $key => $designer)
@if (!$migrated)
@endif
@if (!$migrated)
{!! lang('Mes commentaires') !!}

@if ($designer->proposition && $designer->proposition->is_draft == 0) @if ($projet->lancer_conception) @include('front.components.commentaires', [ 'commentaires' => $designer->proposition->commentaires ?? [], 'proposition_id' => $designer->proposition->id, 'no_buttons' => true, ]) @else @include('front.components.commentaires', [ 'commentaires' => $designer->proposition->commentaires ?? [], 'proposition_id' => $designer->proposition->id, ]) @endif @endif
@endif
@if ($designer->proposition && $designer->proposition->is_draft == 0)
@if ($projet->type == 'studio')
@endif @endif
@if ($migrated)
{{ $projet->designers[0]->designer->username }} {{ (new \Carbon\Carbon($projet->designers[0]->designer->updated_at))->diffForHumans() }}
@foreach ($chatRoom->messages as $message) @include('front.components.chat_message_update', [ 'designer_migrated' => $projet->designers[0]->designer, ]) @endforeach
@php $senderId = auth()->id(); $receiverId = $receiver->id ?? '-1'; $projetId = $chatRoom->projet_id; @endphp
{{ csrf_field() }}
@if ($projet->forfait == 'fantastique') @endif @else
{!! lang('Notes de ') !!} {{ $designer->designer->prenom }}

{!! $designer->proposition->note ?? '' !!}
@endif
@if ($migrated)
{!! lang('Dites-nous ce que vous pensez de cette proposition ?') !!}
{{ csrf_field() }}
@if (count($projet->produits) > 0) @endif
@else
{!! lang('Dites-nous ce que vous pensez de cette proposition ?') !!}
{{ csrf_field() }}
{!! lang("J'aime") !!}
@if ($projet->lancer_conception == 0) @else {{ $designer->proposition->jaime }} @endif
@if ($projet->lancer_conception == 0)
@endif
{{ csrf_field() }}
{!! lang("J'aime un peu moins") !!}
@if ($projet->lancer_conception == 0) @else {{ $designer->proposition->jaime_peu_moins }} @endif
@if ($projet->lancer_conception == 0)
@endif
{{ csrf_field() }}
@if (!$migrated)
{{ csrf_field() }}
@if ($projet->lancer_conception == 0) @if ($projet->nb_designers == 1) @elseif($projet->nb_designers == 2) @php $designers = $projet->designers->where( 'designer_id', '!=', $designer->designer_id, ); @endphp @else @php $designers = $projet->designers->where( 'designer_id', '!=', $designer->designer_id, ); @endphp @endif @endif @if (count($projet->produits) > 0) Ma Shopping list @endif
@endif
@endif
@endforeach @endsection @section('style') @endsection @section('script') @endsection