{{ __('site.concours_page_description') }}
{{ __('site.registration_ends') }}: @if(!empty($c->date_fin)) {{ \Carbon\Carbon::parse($c->date_fin)->format('Y-m-d') }} @else — @endif
@php // try localized description (use trans_field if available) $shortDesc = null; if (function_exists('trans_field')) { $raw = trans_field($c, 'description') ?? trans_field($c, 'resume') ?? ($c->description ?? null); } else { $raw = $c->description ?? null; } if ($raw) { $shortDesc = \Illuminate\Support\Str::limit(strip_tags($raw), 120); } @endphp @if($shortDesc){{ $shortDesc }}
@endif @php // determine if concours is still open (no date_fin = open) $isOpen = empty($c->date_fin) ? true : \Carbon\Carbon::parse($c->date_fin)->endOfDay()->gte(\Carbon\Carbon::now()); @endphp{{ __('site.no_concours') }}