@extends('frontend.layouts.default') @php $page_title = $taxonomy->title ?? ($page->title ?? $page->name); $image_background = $taxonomy->json_params->image_background ?? ($web_information->image->background_breadcrumbs ?? ''); $str_alias = '.html?id='; @endphp @push('style') @endpush @section('content') {{-- Print all content by [module - route - page] without blocks content at here --}} {{ $page_title }} @foreach ($posts as $item) @php $title = $item->json_params->title->{$locale} ?? $item->title; $brief = $item->json_params->brief->{$locale} ?? $item->brief; $image = $item->image_thumb != '' ? $item->image_thumb : ($item->image != '' ? $item->image : null); $date = date('H:i d/m/Y', strtotime($item->created_at)); // Viet ham xu ly lay alias bai viet $alias_category = App\Helpers::generateRoute(App\Consts::TAXONOMY['resource'], $item->taxonomy_title, $item->taxonomy_id); $alias = App\Helpers::generateRoute(App\Consts::TAXONOMY['resource'], $title, $item->id, 'detail'); @endphp {{ $title }} {{ Str::limit($brief, 100) }} @lang('Read more') @endforeach {{ $posts->withQueryString()->links('frontend.pagination.default') }} {{-- End content --}} @endsection
{{ Str::limit($brief, 100) }}