芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/resources/views/frontend/blog.blade.php
@extends('frontend.layouts.master') @php $lang = selectedLang(); @endphp @section('content')
@foreach ($blogs??[] as $blog)
{{ @$blog->category->name }}
{{ @$blog->name->language->$lang->name }}
{{textLength(strip_tags(@$blog->details->language->$lang->details,120))}}
{{showDate(@$blog->created_at)}}
Read More
@endforeach
{{ __("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
{{ get_paginate($blogs) }}
@endsection @push("script") @endpush