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.
63 lines
2.7 KiB
PHTML
63 lines
2.7 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>
|
||
|
</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-40">순번</th>
|
||
|
<th class="width-70">이름</th>
|
||
|
<th class="text-left">문의내용</th>
|
||
|
<th class="width-70">등록일</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
@foreach($data as $i => $row)
|
||
|
<tr>
|
||
|
<td>{{ $row->number }}</td>
|
||
|
<td class="nowrap"><span>{{ $row->name }}</span></td>
|
||
|
<td class="ellipsis ellipsis-wide text-left"><span><a href="{{ route('cms.board.view', [$code, $row->uid], false) }}" class="view-link">{{ Str::limit(strip_tags($row->content), 100, ' ‥') }}</a></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
|