@extends('layouts.portal') @php $u = auth()->user(); $pub = route('portfolio.show', $p->slug); $creds = $p->user->credentials->where('revoked_at', null); $badges = $p->user->badges->where('status', 'issued'); $typeIcon = ['project' => 'git-branch', 'certification' => 'award', 'link' => 'link']; $showing = $creds->where('visibility', 'public')->count() + $badges->where('visibility', 'public')->count(); @endphp @section('title', 'My portfolio') @section('subtitle', 'A public, recruiter-friendly page with your verified credentials and the work you choose to show.') @section('actions') Preview page @if($p->is_public)@endif @endsection @section('content')
@if($p->is_public)Your portfolio is public. Anyone with the link can see it and search engines may index it: {{ preg_replace('~^https?://~', '', $pub) }}. @elseYour portfolio is private. Only you can preview it. Switch it to public below when you are ready to share the link with employers.@endif
@csrf @method('PUT')

Profile

Projects & links

{{ $p->items->count() }} of 24
@forelse($p->items as $it)
{{ $it->title }} {{ ucfirst($it->type) }} @if($it->description)
{{ $it->description }}
@endif @if($it->url){{ \Illuminate\Support\Str::limit(preg_replace('~^https?://~', '', $it->url), 60) }}@endif
@csrf @method('DELETE')
@empty
Nothing here yet. Add a lab write-up, a GitHub repository or a certification you earned elsewhere.
@endforelse
@csrf

Add an item

@endsection