2018-08-31 14:47:04 +00:00
|
|
|
@extends('settings.layouts.app')
|
2018-08-29 15:18:15 +00:00
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<div class="header">
|
|
|
|
<h3 class="header-title">
|
|
|
|
<i class="fa fa fa-database"></i> Datasets
|
|
|
|
</h3>
|
|
|
|
</div>
|
2018-08-06 12:30:51 +00:00
|
|
|
|
|
|
|
|
2018-08-29 15:18:15 +00:00
|
|
|
<div class="pure-g box-content">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="sidebar-simplesearch pure-u-1">
|
|
|
|
{!! Form::open(array('route' => 'settings.document','method' => 'GET', 'class'=>'pure-form')) !!}
|
2019-02-12 11:21:35 +00:00
|
|
|
<p>
|
|
|
|
{!! Form::text('filter', (isset($filter)) ? $filter : '', array('class'=>'pure-u-1 pure-u-md-1-2', 'placeholder'=>'filter for the title...')) !!}
|
2018-08-29 15:18:15 +00:00
|
|
|
|
|
|
|
<div class="select pure-u-1 pure-u-md-1-2">
|
2019-02-12 11:21:35 +00:00
|
|
|
{!! Form::select('state', Config::get('enums.server_states'), (isset($state)) ? $state : 'published', ['class' => 'pure-u-1', 'onchange' => "this.form.submit()"]) !!}
|
2018-08-29 15:18:15 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="pure-u-1 pure-u-md-1-2">
|
2018-10-11 14:49:08 +00:00
|
|
|
{{-- <button type="submit">
|
2018-08-29 15:18:15 +00:00
|
|
|
<i class="fa fa-search"></i>
|
2018-10-11 14:49:08 +00:00
|
|
|
</button> --}}
|
2018-08-29 15:18:15 +00:00
|
|
|
</div>
|
|
|
|
</p>
|
|
|
|
<input type="hidden" name="searchtype" id="searchtype" value="simple" />
|
|
|
|
</div>
|
2018-08-06 12:30:51 +00:00
|
|
|
|
2018-08-29 15:18:15 +00:00
|
|
|
<div class="pure-u-1">
|
|
|
|
<div class="panel-heading">Page {{ $documents->currentPage() }} of {{ $documents->lastPage() }}</div>
|
|
|
|
<table class="pure-table pure-table-horizontal">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>id</th>
|
|
|
|
<th>Document Type</th>
|
|
|
|
<th>Project</th>
|
|
|
|
<th>Titles</th>
|
|
|
|
<th>Options</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach($documents as $document)
|
|
|
|
|
2018-08-06 12:30:51 +00:00
|
|
|
<tr>
|
|
|
|
|
2018-08-29 15:18:15 +00:00
|
|
|
<td>{{ $document->id }}</td>
|
|
|
|
<td>{{ $document->type }}</td>
|
|
|
|
@if($document->hasProject())
|
|
|
|
<td>{{ $document->project->name }}</td>
|
|
|
|
@else
|
|
|
|
<td>--</td>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<td>
|
|
|
|
@foreach ($document->titles as $title)
|
|
|
|
<p>title: {{ $title->value }}</p>
|
|
|
|
@endforeach
|
2018-08-06 12:30:51 +00:00
|
|
|
|
2018-08-29 15:18:15 +00:00
|
|
|
</td>
|
2018-08-06 12:30:51 +00:00
|
|
|
|
2018-08-29 15:18:15 +00:00
|
|
|
{{-- <td>
|
|
|
|
@foreach ($document->collections as $collection)
|
|
|
|
<p>in collection: {{ $collection->name }}</p>
|
|
|
|
@endforeach --}}
|
|
|
|
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a class="view" href="{{ route('settings.document.show', $document->id) }}"><span> </span></a>
|
2019-09-20 08:26:30 +00:00
|
|
|
<a class="edit" href="{{ route('settings.document.edit', $document->id) }}"><span> </span></a>
|
2018-08-29 15:18:15 +00:00
|
|
|
</td>
|
2018-08-06 12:30:51 +00:00
|
|
|
|
2018-08-29 15:18:15 +00:00
|
|
|
</tr>
|
2018-08-06 12:30:51 +00:00
|
|
|
|
2018-08-29 15:18:15 +00:00
|
|
|
@endforeach
|
2018-08-06 12:30:51 +00:00
|
|
|
|
2018-08-29 15:18:15 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2018-08-06 12:30:51 +00:00
|
|
|
|
2018-10-11 14:49:08 +00:00
|
|
|
{!! Form::close() !!}
|
|
|
|
|
2018-08-29 15:18:15 +00:00
|
|
|
<div class="pure-u-1">
|
|
|
|
{{ $documents
|
|
|
|
->appends(Input::except('page'))
|
|
|
|
->links('vendor.pagination.default') }}
|
|
|
|
</div>
|
2018-08-06 12:30:51 +00:00
|
|
|
|
2018-10-11 14:49:08 +00:00
|
|
|
|
2018-08-06 12:30:51 +00:00
|
|
|
|
2018-08-29 15:18:15 +00:00
|
|
|
</div>
|
2018-08-06 12:30:51 +00:00
|
|
|
|
|
|
|
@stop
|