@extends('layouts.portal')
@section('title', 'Certificates and badges')
@section('subtitle', 'Every credential you earn has a public verification page. Share it on LinkedIn so employers can confirm it in one click.')
@section('actions') My portfolio@endsection
@section('content')
@php
$shareIcons = ['linkedin' => ['sh-linkedin', 'linkedin', 'Post on LinkedIn'], 'facebook' => ['sh-facebook', 'facebook', 'Share on Facebook'], 'x' => ['sh-x', 'x-twitter', 'Share on X'], 'whatsapp' => ['sh-whatsapp', 'whatsapp', 'Share on WhatsApp']];
@endphp
@if($credentials->isEmpty() && $badges->isEmpty() && $letters->isEmpty())
@endif
@if($credentials->isNotEmpty())
Certificates {{ $credentials->count() }}
@foreach($credentials as $c)
@php $sh = \App\Support\Share::credential($c); $st = $c->effectiveStatus(); @endphp
{{ $c->title }}
{{ $c->course?->title }}
- Credential ID
- {{ $c->credential_id }}
- Issued
- {{ $c->issued_at?->format('d M Y') }}@if($c->expires_at) · expires {{ $c->expires_at->format('d M Y') }}@endif
@if($c->score)- Exam score
- {{ rtrim(rtrim(number_format((float) $c->score, 1), '0'), '.') }}%
@endif
@if($c->skills->isNotEmpty())@foreach($c->skills->take(6) as $sk){{ $sk->name }}@endforeach
@endif
@if($c->isValid())
@endif
@endforeach
@endif
@if($badges->isNotEmpty())
Digital badges {{ $badges->count() }}
@foreach($badges as $b)
@php $sh = \App\Support\Share::badge($b); $st = $b->effectiveStatus(); $track = route('badges.track', $b->badge_id_code); @endphp
{{ $b->badge->name }}
{{ $b->badge->level }} · Issued {{ $b->issued_at?->format('d M Y') }}
{{ $b->view_count }} {{ $b->share_count }}
@if($b->skills->isNotEmpty())@foreach($b->skills->take(4) as $sk){{ $sk->name }}@endforeach
@endif
@if($b->isValid())
@endif
@endforeach
@endif
@if($letters->isNotEmpty())
Letters {{ $letters->count() }}
| Letter | Reference | Issued | Status | |
@foreach($letters as $l)
| {{ ucwords(str_replace('_', ' ', $l->type)) }} | {{ $l->letter_id }} | {{ $l->issued_at?->format('d M Y') }} | |
Verify PDF |
@endforeach
@endif
@if($credentials->isNotEmpty() || $badges->isNotEmpty())
How LinkedIn sharing works. “Add to LinkedIn profile” opens LinkedIn’s certification form with the name, issuer, dates, credential ID and verification link already filled in. Only public credentials can be verified by people who are not logged in. Set a credential to private to hide it from employers.
@endif
@endsection