@extends('layouts.app') @section('content') @include('partials.navbar') @include('articles.partials.home-css') @include('partials.crypto_ticker')
@php $latest = $articles->first(); $sideArticles = $articles->skip(1)->take(2)->values(); // FIXED $bottomArticles = $articles->skip(3); @endphp {{-- ========================= TOP SECTION (3 ARTICLES) ========================== --}}
{{-- LEFT SIDE (first of sideArticles) --}} @if ($sideArticles->get(0)) @php $left = $sideArticles->get(0); @endphp
@if ($left->article_image) @php $path = $left->article_image; if (str_starts_with($path, 'uploads/')) { $imageUrl = asset($path); } else { $imageUrl = asset('storage/' . $path); } @endphp @endif {{ $latest->credit ? 'Image Credit: ' . $latest->credit : '' }}

{{ $left->title }}

By {{ $left->user->name ?? 'Admin' }} | {{ $left->created_at->format('F j, Y') }}
    Estimated Reading Time: {{ $latest->reading_time }} min

{{ Str::limit(strip_tags($left->content), 200) }}

Read Full Article


CYBERSECURITY FUNDING SNAPSHOT
@if ($cyberDeal)
STARTUP {{ strtoupper($cyberDeal->startup_name) }}
ROUND {{ $cyberDeal->round_type ?? 'N/A' }}
LEAD INVESTOR {{ $cyberDeal->lead_investor ?? 'N/A' }}
FUNDING ${{ number_format($cyberDeal->amount / 1000000, 0) }}
SECTOR {{ strtoupper($cyberDeal->sector) }}
COUNTRY {{ strtoupper($cyberDeal->country) }}
SOURCE @if ($cyberDeal->url) {{ $cyberDeal->source ?? 'View Source' }} @else {{ $cyberDeal->source }} @endif
@else

No cybersecurity deals available yet.

@endif
@endif @if ($latest)
@if ($latest->article_image) @php $path = $latest->article_image; if (str_starts_with($path, 'uploads/')) { $imageUrl = asset($path); } else { $imageUrl = asset('storage/' . $path); } @endphp Article Image @endif {{ $latest->credit ? 'Image Credit: ' . $latest->credit : '' }}

{{ $latest->title }}

By {{ $latest->user->name ?? 'Admin' }} | {{ $latest->created_at->format('F j, Y') }} | Estimated Reading Time: {{ $latest->reading_time }} min

{{ Str::limit(strip_tags($latest->content), 300) }}

Read Full Article @foreach ($articles as $article) @endforeach
Investment Surge: 2025 in Numbers
Region Total Investment Growth Lead Investor AI Investment
AFRICA [1] ~${{ number_format($africa->amount ?? 0, 0) }}B {{ $africa->growth_rate ?? 0 }}% {{ $africa->largest_company_name ?? 'N/A' }} ~${{ number_format($africa->largest_company_investment ?? 0, 0) }}B
USA [2] ~${{ number_format($america->amount ?? 0, 0) }}B {{ $america->growth_rate ?? 0 }}% {{ $america->largest_company_name ?? 'N/A' }} ~${{ number_format($america->largest_company_investment ?? 0, 0) }}B
GLOBAL [3] ~${{ number_format($global->amount ?? 0, 0) }}B {{ $global->growth_rate ?? 0 }}% {{ $global->largest_company_name ?? 'N/A' }} ~${{ number_format($global->largest_company_investment ?? 0, 0) }}B
Sources:
@if (!empty($africa->sources_note))
[1] {{ str_replace(["\r\n", "\n", "\r"], ', ', $africa->sources_note) }}
@endif @if (!empty($america->sources_note))
[2] {{ str_replace(["\r\n", "\n", "\r"], ', ', $america->sources_note) }}
@endif @if (!empty($global->sources_note))
[3] {{ str_replace(["\r\n", "\n", "\r"], ', ', $global->sources_note) }}
@endif
@endif {{-- RIGHT SIDE (second of sideArticles) --}} @if ($sideArticles->get(1)) @php $right = $sideArticles->get(1); @endphp
@if ($right->article_image) @php $path = $right->article_image; if (str_starts_with($path, 'uploads/')) { $imageUrl = asset($path); } else { $imageUrl = asset('storage/' . $path); } @endphp @endif {{ $latest->credit ? 'Image Credit: ' . $latest->credit : '' }}

{{ $right->title }}

By {{ $right->user->name ?? 'Admin' }} | {{ $right->created_at->format('F j, Y') }}
    Estimated Reading Time: {{ $latest->reading_time }} min

{{ Str::limit(strip_tags($right->content), 200) }}

Read Full Article @endif


FUNDING SNAPSHOT ● History
@if ($biggestDeal)
STARTUP {{ strtoupper($biggestDeal->startup_name) }}
TYPE {{ $biggestDeal->company->company_type ?? 'N/A' }}
ROUND {{ $biggestDeal->round_type ?? 'N/A' }}
LEAD INVESTOR {{ $biggestDeal->lead_investor ?? 'N/A' }}
FUNDING ${{ number_format($biggestDeal->amount, 0) }}
SECTOR {{ strtoupper($biggestDeal->sector) }}
COUNTRY {{ strtoupper($biggestDeal->country) }}
SOURCE @if ($biggestDeal->url) {{ $biggestDeal->source ?? 'View Source' }} @else {{ $biggestDeal->source }} @endif
@endif
TOP 10 AFRICAN TECH COMPANIES
Company
Country
Sector
Last Funding
Status
Valuation
@foreach ($topTechCompanies as $company)
{{ $company->name }}
{{ $company->country }}
{{ $company->sector }}
@if ($company->annual_revenue) {{ number_format($company->annual_revenue) }} @else — @endif
@if ($company->company_type == 'public') PRIVATE COMPANY @else PRIVATE STARTUP @endif
@if ($company->impact_text) {{ $company->impact_text }} @elseif ($company->valuation >= 1) ~${{ number_format($company->valuation) }}B unicorn @elseif ($company->valuation > 0) ~${{ number_format($company->valuation) }}B @else High growth @endif
@endforeach

@if ($bottomArticles->count() > 0)

More Articles

@foreach ($bottomArticles as $article)
@if ($article->article_image) @php $path = $article->article_image; if (str_starts_with($path, 'uploads/')) { $imageUrl = asset($path); } else { $imageUrl = asset('storage/' . $path); } @endphp @endif  {{ $article->credit ? 'Image Credit: ' . $article->credit : '' }}
{{ $article->title }}
By {{ $article->user->name ?? 'Admin' }} | {{ $article->created_at->format('F j, Y') }}
Reading Time: {{ $article->reading_time }} min
{{ Str::limit(strip_tags($article->content), 100) }} READ FULL ARTICLE
@endforeach
@endif
{{ $articles->links('pagination::bootstrap-5') }}
@endsection