@extends('layouts.app') @section('title', 'Modifier mon profil') @section('content') @php // Après une erreur de validation, on réaffiche la saisie ; sinon les données enregistrées. $old = fn (string $key, $default = null) => session()->hasOldInput() ? old($key) : $default; $skillsText = $old('skills', implode(', ', $profile->skills ?? [])); $contractSel = (array) ($old('contract_types', $profile->contract_types ?? []) ?? []); $sectorSel = (array) ($old('sectors', $profile->sectors ?? []) ?? []); $availability = $old('availability', $profile->availability); $L = fn (string $k) => \App\Models\UserProfile::limit($k, $isPremium); $hint = fn (string $k) => $isPremium ? 'Maximum : '.$L($k).'.' : 'Profil gratuit : '.$L($k).' maximum.'; $sections = [ 'experience' => ['key' => 'experiences', 'rows' => (array) ($old('experiences', $profile->experiences ?? []) ?? []), 'add' => 'Ajouter une expérience'], 'education' => ['key' => 'education', 'rows' => (array) ($old('education', $profile->education ?? []) ?? []), 'add' => 'Ajouter une formation'], 'certification' => ['key' => 'certifications', 'rows' => (array) ($old('certifications', $profile->certifications ?? []) ?? []), 'add' => 'Ajouter une certification'], 'language' => ['key' => 'languages', 'rows' => (array) ($old('languages', $profile->languages ?? []) ?? []), 'add' => 'Ajouter une langue'], ]; $linkRows = array_values((array) ($old('links', $profile->links ?? []) ?? [])); @endphp
Tous les champs sont facultatifs, sauf votre nom. Vous pouvez compléter votre profil petit à petit.
Cette fonctionnalité est réservée aux abonnés Premium.
Découvrir Premium