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.
72 lines
3.3 KiB
PHTML
72 lines
3.3 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 pr-0">
|
||
|
<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.partner.create', null, 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="width-100 width-clear">업체명</th>
|
||
|
<th class="text-left">링크</th>
|
||
|
<th class="width-50">노출</th>
|
||
|
<th class="width-70 mobileNone">등록일</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
@foreach($data as $i => $row)
|
||
|
<tr>
|
||
|
<td>{{ $row->number }}</td>
|
||
|
<td class="nowrap"><span><a href="{{ route('cms.partner.modify', [$row->uid], false) }}" class="view-link">{{ $row->title }}</a></span></td>
|
||
|
<td class="ellipsis ellipsis-wide text-left"><span>@if($row->link)<a href="{{ $row->link }}" target="_blank">{{ $row->link }}</a>@else{{ $row->link }}@endif</span></td>
|
||
|
<td class="text-center"><i class="fas fa-dot-circle @if($row->status) check-on @else check-off @endif"></i></td>
|
||
|
<td class="nowrap mobileNone">{{ str_replace('-', '.', substr($row->created_at, 0, 10)) }}</td>
|
||
|
</tr>
|
||
|
@endforeach
|
||
|
@if(!$data->count())
|
||
|
<tr>
|
||
|
<td colspan="5" class="none-data">데이터가 없습니다.</td>
|
||
|
</tr>
|
||
|
@endif
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
{{ $data->render('admin.paginator') }}
|
||
|
</div>
|
||
|
@stop
|
||
|
|
||
|
@push('scripts')
|
||
|
<script type="text/javascript">
|
||
|
$(document).ready(function() {
|
||
|
});
|
||
|
</script>
|
||
|
@endpush
|