Files
new_haai/resources/views/patents/show.blade.php
2020-09-18 14:04:26 +08:00

60 lines
2.1 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="300">专利名称</th>
<th width="200">专利号</th>
<th width="200">专利类别</th>
<th width="200">申请日期</th>
<th width="300">第一发明人</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="300">论文题目</th>
<th width="200">刊物名称</th>
<th width="200">刊物作者</th>
<th width="200">发表年度</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