@extends('layouts.tenant') @section('title') {{$user->first_name}} {{$user->last_name}} @endsection @section('content')
@if(isset($user->cover)) image @elseif($user->cover == null) image @elseif($user->cover == 'null') image @else image @endif
image

{{$user->first_name}} {{$user->last_name}} @php $experiences = json_decode($speaker->work_experience); $skills = json_decode($speaker->expertise); @endphp
{{$experiences[0]->job_role[0]}} at {{$experiences[0]->company_name[0]}}

Expertise: @forelse ($skills as $skill) {{$skill}}, @empty @endforelse
Contact

About

{{$speaker->open_statement}}

Work Experience
@php $experiences = json_decode($speaker->work_experience); @endphp @forelse ($experiences as $experience)

{{$experience->job_role[0]}}
{{$experience->company_name[0]}}, {{\Carbon\Carbon::parse($experience->start_date[0])->toFormattedDateString()}} - {{\Carbon\Carbon::parse($experience->end_date[0])->toFormattedDateString()}}

@empty @endforelse
Education

{{$user->school}}
Bachelor's Degree, History and International Studies 2012 – 2016

@php $flyers = json_decode($speaker->flyer); @endphp @forelse ($flyers as $flyer) @empty
No flyers found
@endforelse
@php $articles = json_decode($speaker->article); @endphp @forelse ($articles as $article)
{{$article->title[0]}}

{{$article->description[0]}}

@empty @endforelse
@php $video = json_decode($speaker->video_footage); @endphp @if ($video) @else
No videos found
@endif
People also viewed
@forelse ($other_speakers as $speaker)
@php $user = App\Models\User::where('id', $speaker->user_id)->first(); @endphp
{{$user->first_name}} {{$user->last_name}}
{{$experiences[0]->job_role[0]}} at {{$experiences[0]->company_name[0]}}
@empty @endforelse
@include('elements.contact-speaker') @endsection