@extends('layouts.main-app') @section('title', 'News and Promotions') @section('content') @include('layouts.navbar')

News & Updates

{{$newsItems->title}}

{!!$newsItems->content!!}

@foreach ($category as $categories)

{{$categories->category_name}}


@endforeach

RECENT POSTS

@foreach ($news->sortByDesc('created_at')->take(3) as $newsItem)
{{ $newsItem->title }}

{{ $newsItem->created_at->format('M d, Y') }}

{{ Str::limit($newsItem->title, 50) }}


@endforeach

OPEN JOB POSITIONS

@php // Filter careers where open_position is not zero and shuffle the remaining ones $filteredCareers = $careers->filter(function ($career) { return $career->open_position > 0; })->shuffle(); @endphp @foreach ($filteredCareers as $career)

{{ $career->mpc->mpc_name }}

{{ $career->title }}

{{ $career->location->location_name }} | {{ $career->created_at->diffForHumans() }}

@endforeach
@include('layouts.newsletter')
@include('layouts.footer') @endsection