You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
3.0 KiB
PHTML
66 lines
3.0 KiB
PHTML
2 years ago
|
@extends('layouts.admin')
|
||
|
|
||
|
@section('content')
|
||
|
<div class="card">
|
||
|
<div class="card-body">
|
||
|
<form id="search-form">
|
||
|
<div class="form-row">
|
||
|
<div class="col-auto form-inline">
|
||
|
<div class="input-group">
|
||
|
<div class="input-group-prepend">
|
||
|
<select name="field" class="custom-select rounded-start">
|
||
|
@if($searchs)
|
||
|
@foreach($searchs as $key => $value)
|
||
|
<option value="{{ $key }}"{{ (@$search['field'] == $key) ? ' selected="selected"' : '' }}>{{ $value }}</option>
|
||
|
@endforeach
|
||
|
@endif
|
||
|
</select>
|
||
|
</div>
|
||
|
<input type="text" name="word" class="form-control" size="20" value="{{ @$search['word'] }}" placeholder="검색어 입력" />
|
||
|
<div class="input-group-append">
|
||
|
<button type="submit" class="btn btn-info"><i class="fas fa-search"></i> 검색</button>
|
||
|
</div>
|
||
|
<div class="input-group-append">
|
||
|
<a href="{{ route('cms.board.create', [$code], false) }}" class="btn btn-danger"><i class="fas fa-pen"></i> 등록</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="card">
|
||
|
<div class="card-body pl-3 pr-3 pt-1 pb-1">
|
||
|
<table class="table text-center">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th class="width-50">순번</th>
|
||
|
<th class="text-left">제목</th>
|
||
|
<th class="width-70 mobileNone">작성자</th>
|
||
|
<th class="width-70">등록일</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
@foreach($data as $i => $row)
|
||
|
<tr>
|
||
|
<td>{{ $row->number }}</td>
|
||
|
<td class="ellipsis ellipsis-wide text-left"><span><a href="{{ route('cms.board.modify', [$code, $row->uid], false) }}" class="view-link">{{ Str::limit($row->subject, 100, ' ‥') }}</a></span></td>
|
||
|
<td class="nowrap mobileNone"><span>{{ $row->name }}</span></td>
|
||
|
<td class="nowrap">{{ str_replace('-', '.', substr($row->created_at, 0, 10)) }}</td>
|
||
|
</tr>
|
||
|
@endforeach
|
||
|
@if(!$data->count())
|
||
|
<tr>
|
||
|
<td colspan="4" class="none-data">데이터가 없습니다.</td>
|
||
|
</tr>
|
||
|
@endif
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
{{ $data->render('admin.paginator') }}
|
||
|
</div>
|
||
|
@stop
|
||
|
|
||
|
@push('scripts')
|
||
|
@endpush
|