芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/resources/views/frontend/blogDetails.blade.php
@extends('frontend.layouts.master') @php $lang = selectedLang(); @endphp @section('content')
{{ @$blog->category->name }}
{{ @$blog->name->language->$lang->name }}
@php echo @$blog->details->language->$lang->details; @endphp
{{ __("Categories") }}
@foreach ($categories ?? [] as $cat) @php $blogCount = App\Models\Blog::active()->where('category_id',$cat->id)->count(); @endphp @if( $blogCount > 0)
{{ __(@$cat->name) }}
{{ @$blogCount }}
@else
{{ __(@$cat->name) }}
{{ @$blogCount }}
@endif @endforeach
{{ __("Recent Posts") }}
@foreach ($recentPost as $post)
{{ $post->created_at->diffForHumans() }}
{{ @$post->name->language->$lang->name }}
@endforeach
{{ __("Tags") }}
@foreach ($blog->tags as $tag)
{{ @$tag }}
@endforeach
@endsection @push("script") @endpush