Files
new_haai/resources/views/patents/show.blade.php
2020-09-18 13:45:13 +08:00

60 lines
2.0 KiB
PHP

@extends('layouts.app')
@section('title', $patent->title)
@section('content')
<!-- content -->
<div class="container details">
<!-- 文章标题 -->
<h3 class="details-title">{{ $patent->title }}</h3>
<p class="details-time">{{ $patent->created_at }}</p>
@if ($patent->type=='patent')
<table class="paper-table patent-table" border="1" bordercolor="#d1d1d1">
<tr>
<th width="500">专利名称</th>
<th>专利号</th>
<th>专利类别</th>
<th>申请日期</th>
<th>第一发明人</th>
</tr>
<tr>
<td>{{ $patent->title }}</td>
<td>{{ $patent->number }}</td>
<td>{{ $patent->category->title }}</td>
<td>{{ $patent->application }}</td>
<td>{{ $patent->nickname }}</td>
</tr>
</table>
@else
<table class="paper-table patent-table" border="1" bordercolor="#d1d1d1">
<tr>
<th width="500">论文题目</th>
<th>刊物名称</th>
<th>刊物作者</th>
<th>发表年度</th>
</tr>
<tr>
<td>{{ $patent->title }}</td>
<td>{{ $patent->publication }}</td>
<td>{{ $patent->nickname }}</td>
<td>{{ $patent->created_at->format('Y-m-d') }}</td>
</tr>
</table>
@endif
<!-- 文章详情 -->
<div class="details-content">
{{-- <img src="{{ $patent->cover_path }}">--}}
{!! $patent->content !!}
</div>
<!-- 下一篇 -->
@if ($next)
<div class="details-writings">
<a href="{{ $next->link }}">下一篇:{{ $next->title }}</a>
</div>
@endif
</div>
@endsection