{{-- study/import.blade.php — Phase 5.7 --}} @extends('layouts.app') @section('content') @if(session('success'))@endif @if($errors->any()) @endif {{-- Upload form --}} @if(!$preview && !$result) @endif {{-- Preview --}} @if($preview) @endif {{-- Result --}} @if($result) @endif
{{ session('success') }}
@foreach($errors->all() as $e){{ $e }}
@endforeach
Input | Import
@csrf

En-tête attendu : Global_PRENOM, Global_SEXE, Global_AGE, Global_LIEU, PrdIdXXXX_NOTE, PrdIdXXXX_ADJ_1..10, PrdIdXXXX_Quan_01..22, PrdIdXXXX_PORTRAIT_L..S, PrdIdXXXX_CHIN_C..E, PrdIdXXXX_COT_X_Y
@foreach($preview['headers'] as $i => $header) @endforeach
# En-tête Excel Cible
{{ $i + 1 }} {{ $header }} @php $m = $preview['mapping'][$i] ?? null; @endphp @if($m) {{ $m['kind'] }} @if(!empty($m['product_id'])) · product={{ $m['product_id'] }} @endif @if(!empty($m['field'])) · field={{ $m['field'] }} @endif @if(!empty($m['code'])) · code={{ $m['code'] }} @endif @if(!empty($m['sub'])) · {{ $m['sub'] }} @endif @if(!empty($m['cot_type'])) · cotType={{ $m['cot_type'] }} @endif @else ignorée @endif
@if(!empty($preview['unknown']))
En-têtes non reconnus :
    @foreach($preview['unknown'] as $u)
  • {{ $u }}
  • @endforeach
@endif
Aperçu des {{ count($preview['rows']) }} premières lignes : @foreach($preview['headers'] as $h)@endforeach @foreach($preview['rows'] as $row) @foreach($preview['headers'] as $i => $h) @endforeach @endforeach
{{ $h }}
{{ $row[$i] ?? '' }}
@csrf Annuler
{{ $result['imported'] }} interview(s) importée(s). @if(!empty($result['errors']))
Erreurs :
    @foreach($result['errors'] as $e)
  • {{ $e }}
  • @endforeach
@endif
« Retour Input
@endsection