@props(['course', 'enrollment' => null, 'showProgress' => false])
merge(['class' => 'bg-white p-6 rounded-2xl border border-gray-100 shadow-sm hover:shadow-lg transition-all group relative overflow-hidden']) }}>
{{ $course->department->name ?? 'Département' }}

{{ $course->title }}

{{ $course->department->faculty->name ?? 'Faculté' }}

@if($course->is_certification)
Certifiant
@endif
@if($showProgress && $enrollment)
Progression {{ $enrollment->progress ?? 0 }}%
@endif
Leçons {{ $course->lessons_count ?? 0 }}
Durée {{ $course->duration ?? 'N/A' }}
{{ $enrollment ? 'Continuer' : 'Découvrir' }} @if($course->is_certification && $enrollment) @endif