@extends('layouts.app') @php $user = $portfolio->user; $creds = $user->credentials->sortByDesc('issued_at'); $badges = $user->badges->sortByDesc('issued_at'); $skills = $creds->flatMap->skills->pluck('name')->unique()->sort()->values(); $items = $portfolio->items->where('status', 'published'); $owner = auth()->check() && auth()->id() === $portfolio->user_id; $typeIcon = ['project' => 'git-branch', 'certification' => 'award', 'link' => 'link']; $summary = $user->name.' is a learner at INFOTICS Academy'.($portfolio->headline ? ' ('.rtrim($portfolio->headline, '.').')' : '').($portfolio->location ? ' based in '.$portfolio->location : '').'. ' .($creds->count() + $badges->count() > 0 ? 'This page lists '.$creds->count().' verified '.\Illuminate\Support\Str::plural('credential', $creds->count()).' and '.$badges->count().' digital '.\Illuminate\Support\Str::plural('badge', $badges->count()).', each with a public verification link.' : 'Verified credentials will appear here as they are earned.'); @endphp @section('content')
@if(! $portfolio->is_public)
Private preview. Only you {{ $owner ? '' : '(as an administrator) ' }}can see this page. It is not indexed by search engines.@if($owner) Edit or publish it.@endif
@endif
@if($user->avatarUrl()){{ $user->name }}@else{{ $user->initials() }}@endif

{{ $user->name }}

@if($portfolio->headline)

{{ $portfolio->headline }}

@endif
@if($portfolio->location) {{ $portfolio->location }}@endif @if($user->open_to_work) Open to work@endif {{ $creds->count() }} verified {{ \Illuminate\Support\Str::plural('credential', $creds->count()) }}
@if($user->linkedin_url || $user->github_url) @endif

{{ $summary }}

@if($portfolio->bio)

About

{{ $portfolio->bio }}

@endif @if($skills->isNotEmpty())

Verified skills

@foreach($skills as $s){{ $s }}@endforeach
@endif

Verified credentials

@forelse($creds as $c) @php $b = $c->badge?->badge; @endphp
@if($b){{ $b->name }} badge@else@endif

{{ $c->title }}

{{ $c->type }} · Issued {{ $c->issued_at?->format('d M Y') }}@if($c->expires_at) · Valid until {{ $c->expires_at->format('d M Y') }}@endif · ID {{ $c->credential_id }}

@if($c->skills->isNotEmpty())
@foreach($c->skills->take(5) as $s){{ $s->name }}@endforeach
@endif
@empty

No public credentials yet.

@endforelse
@if($badges->isNotEmpty())

Digital badges

@endif @if($items->isNotEmpty())

Projects & work

@foreach($items as $it) @endforeach
@endif

Hiring for an IT role?

Credentials on this page are issued by INFOTICS Academy and can be checked with the Verify links. Employers can also request verified candidates through INFOTICS Careers.

Portfolio last updated {{ $portfolio->updated_at?->format('d M Y') }}.

@endsection