tissue/resources/views/info/show.blade.php

22 lines
903 B
PHP
Raw Permalink Normal View History

2017-11-03 20:38:09 +09:00
@extends('layouts.base')
2019-01-08 23:27:48 +09:00
@section('title', $category['label'] . ': ' . $info->title)
2017-11-03 20:38:09 +09:00
@section('content')
<div class="container">
<nav aria-label="breadcrumb" role="navigation">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{{ route('info') }}">サイトからのお知らせ</a></li>
<li class="breadcrumb-item active" aria-current="page">{{ $info->created_at->format('Y年n月j日') }}</li>
</ol>
</nav>
<h2><span class="badge {{ $category['class'] }}">{{ $category['label'] }}</span> {{ $info->title }}</h2>
<p class="text-secondary">
@if ($info->pinned)
<span class="badge badge-secondary"><span class="oi oi-pin"></span>ピン留め</span>
@endif
<span class="oi oi-calendar"></span> {{ $info->created_at->format('Y年n月j日') }}
</p>
@parsedown($info->content)
2017-11-03 20:38:09 +09:00
</div>
@endsection