{{--
--}}
{{ $projet->user->username }} {{ (new \Carbon\Carbon($projet->user->updated_at))->diffForHumans() }}
@foreach ($chatRoom->messages as $message) @include('front.components.chat_message_update') @endforeach
@php $senderId = auth()->id(); $receiverId = $receiver->id ?? '-1'; $projetId = $chatRoom->projet_id; @endphp
{{ csrf_field() }}
@php $conceptions = $projet->designers->where('designer_id', auth()->id())->first()->conceptions ?? []; $conceptions_not_draft = []; if ($conceptions) { $conceptions_not_draft = $conceptions->where('is_draft', 0); $conception_final = $conceptions->where('is_final', 1); } @endphp @foreach ($conceptions as $key => $conception) @include('front.designer.partials.conception.show') @endforeach @if (count($conception_final) == 0 && ($projet->type == 'pro' || $projet->type == 'studio' || count($conceptions) - count($conceptions_not_draft) == 0)) @include('front.designer.partials.conception.add') @endif {{-- @if (count($conceptions) - count($conceptions_not_draft) == 0 && ((isset($conception) && $conception->is_final == 0) || !isset($conception))) @include('front.designer.partials.conception.add') @endif --}}