@extends('layouts.app') @section('content') @if(session('success'))@endif @if($errors->any()) @endif {{-- Sub-menu: Input tab highlighted --}} {{-- List existing interviews with delete + edit buttons --}}
{{ session('success') }}
@foreach($errors->all() as $e){{ $e }}
@endforeach
Synthèse | Notes | Input | Import
@csrf @if($interview) @method('PUT') @endif {{-- ═════════════ Interview-level fields ═════════════ --}} {{-- ═════════════ Per-product blocs ═════════════ --}} @foreach($products as $product) @php $existingForm = $forms[$product->Id] ?? []; $oldForm = old("forms.{$product->Id}", []); @endphp @endforeach

{{ $interview ? 'Modifier Interview #'.$interview->Id : 'Nouvelle Interview' }}
{{-- Custom attributes (kms_study_other_attr) --}} @foreach($study->otherAttributes as $attr) @endforeach
Prénom Sexe Âge Lieu
Numéro Enq. Date Enquêteur
{{ $attr->QuestLabel ?? $attr->Question }} @php $old = old("other.{$attr->Id}"); $list = $attr->CheckList ? array_values(array_filter(array_map('trim', preg_split('/[|,;]/', $attr->CheckList)))) : []; @endphp @if(!empty($list)) @else @endif

Produit : {{ $product->Name }} (#{{ $product->Id }})
{{-- Adjectives (autocomplete §3.1.8) --}} {{-- Likes --}} {{-- DisLikes --}} {{-- Quantitative criteria --}} {{-- Portrait cotation --}} {{-- Chinese portrait --}}
Note (0-{{ $study->NoteMax ?: 10 }}) Préféré ? Essaie Peau
Adjectifs
@for($i = 1; $i <= (int) config('kms.nb_adj', 10); $i++) @endfor
Likes
@for($i = 1; $i <= (int) config('kms.nb_adj', 10); $i++) @endfor
DisLikes
@for($i = 1; $i <= (int) config('kms.nb_adj', 10); $i++) @endfor
Quantitatif (Quan_01..{{ str_pad(config('kms.nb_quan', 22), 2, '0', STR_PAD_LEFT) }})
@for($i = 1; $i <= (int) config('kms.nb_quan', 22); $i++) @php $num=str_pad((string) $i, 2, '0' , STR_PAD_LEFT); @endphp Q{{ $num }}: @endfor
Portrait cotation
@foreach($cotations as $code) {{ $cotLabels[$code] ?? $code }}: @endforeach
Portrait chinois
@foreach($chinese as $code)
{{ $chiLabels[$code] ?? $code }}:
@endforeach
@forelse($study->interviews()->orderByDesc('Id')->limit(50)->get() as $it) @empty @endforelse
Id Prénom Sexe Âge Lieu Date Actions
{{ $it->Id }} {{ $it->Prenom }} {{ $it->Sexe }} {{ $it->Age }} {{ $it->Lieu }} {{ optional($it->DateEnq)->format('Y-m-d') }} Éditer |
@csrf @method('DELETE')
Aucune interview pour cette étude.
@push('scripts') @endpush @endsection