@extends('frontend.template.index') @push('after-script') @endpush @push('meta') @endpush @section('content') INFORMASI {{ @$nav }} {{ $post->title }} {{ date_ID($post->created_at, 'd F Y h:i:s') }} Admin : {{ @$post->office->name }} Editor : {{ @$post->office->user->name }} {!! $post->body !!} PROFIL {{ $office->name }} Profil Pegawai Sejarah Pembentukan Visi & Misi Struktur Organisasi {{ @$nav }} LAINNYA @php $beritas = @$office ->posts() ->whereHas('postCategories', function ($query) use ($nav) { return $query->where('name', $nav); }) ->orderBy('id', 'DESC') ->where('id', '!=', $post->id) ->limit(4) ->get(); @endphp @foreach ($beritas as $berita) {{ $berita->title }} {{ date_ID($berita->created_at, 'd F Y') }} {{ $berita->excercept }} @endforeach @endsection
{{ $berita->excercept }}