@php use App\Enums\SkillProficiency; @endphp @extends('v2.layouts.app') @section('content')
{{ auth()->user()->name }}

{{ auth()->user()->name }}

{{ auth()->user()->occupation }}

@if(auth()->user()->state && auth()->user()->country) {{ auth()->user()->state }}, {{ auth()->user()->country }} @endif Email @if(auth()->user()->phone) Phone @endif
Edit

Skills

@if(auth()->user()->skills) @php $skillsData = json_decode(auth()->user()->skills, true); @endphp @if(isset($skillsData['skill'])) @foreach($skillsData['skill'] as $index => $skill)
{{ $skill }}
Coming Soon
@endforeach @else

No skills added yet.

@endif @else

No skills added yet.

@endif

Personal Information

{{ auth()->user()->name }}
@if(auth()->user()->dob)
{{ Carbon\Carbon::parse(auth()->user()->dob)->format('F d, Y') }}
@endif
{{ auth()->user()->email }}
@if(auth()->user()->phone)
{{ auth()->user()->phone }}
@endif @if(auth()->user()->address)
{{ auth()->user()->address }}
@endif

Social Links

@foreach(['website', 'github', 'linkedin', 'twitter', 'facebook'] as $platform) @if(auth()->user()->$platform) {{ ucfirst($platform) }} @endif @endforeach
@if(auth()->user()->bio)

About Me

{{ auth()->user()->bio }}

@endif @if(auth()->user()->experience)

Work Experience

@php $experienceData = json_decode(auth()->user()->experience, true); @endphp @if(isset($experienceData['position'])) @foreach($experienceData['position'] as $index => $position) @php $startDate = !empty($experienceData['start_date'][$index]) ? \Carbon\Carbon::parse($experienceData['start_date'][$index]) : null; $endDate = !empty($experienceData['end_date'][$index]) ? \Carbon\Carbon::parse($experienceData['end_date'][$index]) : null; $isCurrentlyWorking = isset($experienceData['currently_working'][$index]) && ($experienceData['currently_working'][$index] === 'on' || $experienceData['currently_working'][$index] === true); @endphp

{{ $position }}

{{ $experienceData['company_name'][$index] ?? '' }}

{{ $startDate ? $startDate->format('M Y') : '' }} {{ $isCurrentlyWorking ? '- Present' : ($endDate ? '- ' . $endDate->format('M Y') : '') }}
@if(!empty($experienceData['description'][$index]))

{{ $experienceData['description'][$index] }}

@endif
@endforeach @else

No experience added yet.

@endif
@endif
@endsection