@extends('layouts.home') @section('content')

Liste des Profiles

@foreach ($candidates as $candidat)
{{-- Photo --}}
Photo de {{ $candidat->user->name }}
{{-- Infos candidat --}}

{{ $candidat->first_name }} {{ $candidat->last_name }}

{{-- Type de travail + Prix/h --}} {{--
{{ $candidat->type_travail ?? 'temps plein' }} {{ $candidat->tarif ?? '$50' }}/hr
--}}
{{-- Email et téléphone --}}

{{ $candidat->user->email }} | {{ $candidat->phone }}

{{-- À propos --}}

{{ Str::limit($candidat->description, 120) }}

{{-- Compétences --}}
@php $compCount = $candidat->competences->count(); $maxToShow = 8; @endphp @foreach ($candidat->competences->take($maxToShow) as $competence) {{ $competence->nom }} @endforeach @if ($compCount > $maxToShow) +{{ $compCount - $maxToShow }} @endif
{{-- Langues --}}
@foreach ($candidat->langues as $langue) {{ $langue->nom }} @endforeach
{{-- Lien profil --}} Voir le profil complet
@endforeach
@endsection