@extends('layouts.app') @section('content') @include('partials.navbar') @include('articles.partials.home-css')

Interviews

@php $featured = $interviews->first(); // newest (make sure controller orders latest) $others = $interviews->skip(1); @endphp {{-- FEATURED INTERVIEW --}} @if ($featured)
@if ($featured->photo) {{ $featured->interviewee }} @endif
{{-- Latest Interview --}} {{ $featured->created_at->gt(now()->subDays(700)) ? ' 🔥 Latest Interview' : 'Interview' }}

{{ $featured->title }}

Interview with {{ $featured->interviewee }}

{!! Str::limit(strip_tags($featured->summary), 390) !!}

Read Full Interview
@foreach ($interviews as $interview)    Estimated Reading Time:{{ $interview->readingTime }} Min | Total Words: {{ $interview->wordCount }} | Published: {{ \Carbon\Carbon::parse($interview->created_at)->format('F j, Y') }} @endforeach
@endif {{-- OTHER INTERVIEWS --}}
@foreach ($others as $interview)
@if ($interview->photo) {{ $interview->interviewee }} @endif
{{ Str::limit($interview->title, 60) }}

Interview with {{ $interview->interviewee }}

{!! Str::limit(strip_tags($interview->summary), 120) !!}

@endforeach
{{-- PAGINATION --}}
{{ $interviews->links('pagination::bootstrap-4') }}
@endsection