@extends('layouts.portal') @php $isStudent = $user->isStudent(); $isTrainer = $user->isTrainer(); $isEmployer = $user->isEmployer(); $hasResume = $user->resume_path && \Illuminate\Support\Facades\Storage::disk('local')->exists($user->resume_path); $checks = [$user->phone, $user->headline, $user->location, $user->bio, $user->avatar_path, $user->linkedin_url]; if ($isStudent) { $checks[] = $hasResume; } $done = collect($checks)->filter()->count(); $pct = (int) round($done / count($checks) * 100); @endphp @section('title', 'Profile and account') @section('subtitle', $isStudent ? 'Keep your profile and CV current. Employers on the career portal see the details you choose to share.' : ($isTrainer ? 'Your details appear on your public trainer page.' : 'Your account details and password.')) @section('content')
@csrf @method('PUT')

Profile

{{ $pct }}% complete
@if($user->avatarUrl())Your profile photo@else{{ $user->initials() }}@endif
JPG, PNG or WEBP, up to 2 MB. A square photo works best.
@error('avatar')
{{ $message }}
@enderror
@unless($isEmployer) @endunless @if($isStudent || $isTrainer) @endif @unless($isEmployer) @endunless @if($isTrainer) @endif @if($isStudent)
@endif
@if($isStudent)
@if($hasResume)
{{ 'CV-'.\Illuminate\Support\Str::slug($user->name).'.'.pathinfo($user->resume_path, PATHINFO_EXTENSION) }}
Uploaded. Choose a new file below to replace it.
Download
@endif
{{ strtoupper(implode(', ', config('infotics.careers.resume_mimes'))) }} ยท up to {{ config('infotics.careers.resume_max_mb') }} MB. Your CV is private: only employers you apply to can download it.
@error('resume')
{{ $message }}
@enderror
@endif
@csrf @method('PUT')

Change password

@endsection