move into sonardesk
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
@extends('stylist-theme-saasland::layouts.app')
|
||||
|
||||
@php
|
||||
$title = 'Blog';
|
||||
$description = 'Ideas, guides and updates from our team.';
|
||||
$eyebrow = 'Insights';
|
||||
$breadcrumbs = ['Blog' => null];
|
||||
@endphp
|
||||
|
||||
@section('content')
|
||||
<section class="content-section">
|
||||
<div class="wrap">
|
||||
<div class="content-grid">
|
||||
@forelse($records as $record)
|
||||
<article class="post-card">
|
||||
<div class="post-card-accent"></div>
|
||||
<div class="post-card-body">
|
||||
<span class="post-meta">{{ optional($record->published_at)->format('j F Y') ?: 'Latest article' }}</span>
|
||||
<h2><a href="{{ route('blog.public.show', $record->slug) }}">{{ $record->title }}</a></h2>
|
||||
@if($record->excerpt)<p>{{ $record->excerpt }}</p>@endif
|
||||
<a class="read-more" href="{{ route('blog.public.show', $record->slug) }}">Read article →</a>
|
||||
</div>
|
||||
</article>
|
||||
@empty
|
||||
<div class="empty-state">No blog posts have been published yet.</div>
|
||||
@endforelse
|
||||
</div>
|
||||
<div class="theme-pagination">{{ $records->links() }}</div>
|
||||
</div>
|
||||
</section>
|
||||
@endsection
|
||||
@@ -0,0 +1,23 @@
|
||||
@extends('stylist-theme-saasland::layouts.app')
|
||||
|
||||
@php
|
||||
$title = $record->title;
|
||||
$description = $record->excerpt;
|
||||
$eyebrow = 'Blog';
|
||||
$breadcrumbs = ['Blog' => route('blog.public.index'), $record->title => null];
|
||||
@endphp
|
||||
|
||||
@section('content')
|
||||
<section class="content-section">
|
||||
<div class="wrap content-layout">
|
||||
<article class="content-card prose-content">
|
||||
<div class="article-meta">
|
||||
@if($record->author)<span>{{ $record->author->name }}</span>@endif
|
||||
@if($record->published_at)<time datetime="{{ $record->published_at->toDateString() }}">{{ $record->published_at->format('j F Y') }}</time>@endif
|
||||
</div>
|
||||
@if($record->excerpt)<p class="content-lead">{{ $record->excerpt }}</p>@endif
|
||||
<div class="cms-content">{!! nl2br(e($record->content)) !!}</div>
|
||||
</article>
|
||||
</div>
|
||||
</section>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user