Files
new_haai/resources/views/patents/patent.blade.php
2021-02-03 13:15:54 +08:00

53 lines
2.1 KiB
PHP

<form class="paper-form" action="{{ url()->current()}}">
<label class="paper-form-title">
专利搜索
</label>
<ul class="paper-form-ul">
<li class="paper-form-inputs">
<label>专利题目</label>
<input name="title" value="{{ request()->title }}" placeholder="输入论文题目"/>
</li>
<li class="paper-form-inputs">
<label>专利类别</label>
<select name="category_id">
@if (getCateChild(16)->isNotEmpty())
<option value="">专利类别</option>
@foreach (getCateChild(16) as $child)
<option value="{{ $child->id }}" @if($child->id==request()->category_id) selected @endif>{{ $child->title }}</option>
@endforeach
@endif
</select>
</li>
<li class="paper-form-inputs">
<label>专利号</label>
<input name="number" value="{{ request()->number }}" placeholder="输入论文题目"/>
</li>
<li class="paper-form-inputs">
<label>第一发明人</label>
<input name="nickname" value="{{ request()->nickname }}" placeholder="输入论文题目"/>
</li>
</ul>
<input type="hidden" name="type" value="{{ request()->type }}">
<button class="paper-form-btn" type="submit">搜索</button>
</form>
<!-- 论文表格 -->
<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>
@foreach ($patents as $patent)
<tr data-href="{{ $patent->link }}">
<td>{{ $patent->title }}</td>
<td>{{ $patent->number??'---' }}</td>
<td>{{ $patent->category->title??'---' }}</td>
<td>{{ $patent->application??'---' }}</td>
<td>{{ $patent->nickname }}</td>
</tr>
@endforeach
</table>