@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 --}}