tethys/resources/views/settings/collection/collection.blade.php

65 lines
1.6 KiB
PHP
Raw Normal View History

2018-08-31 14:47:04 +00:00
@extends('settings.layouts.app')
2018-08-06 12:30:51 +00:00
@section('content')
2018-08-29 15:18:15 +00:00
<div class="header">
<h3 class="header-title">
<i class="fa fa-archive"></i> Collections
</h3>
</div>
2018-08-06 12:30:51 +00:00
2018-08-29 15:18:15 +00:00
<div class="pure-g box-content">
2018-08-06 12:30:51 +00:00
2018-08-29 15:18:15 +00:00
<div class="pure-u-1 pure-u-md-3-3">
2018-10-04 14:41:29 +00:00
<a href="{{ route('settings.collection.create') }}" class="pure-button button-small is-primary">
<i class="fa fa-plus-circle"></i>ADD NEW CHILD COLLECTION
2018-08-29 15:18:15 +00:00
</a>
2018-08-06 12:30:51 +00:00
<br><br>
<table class="pure-table pure-table-horizontal">
<thead>
2018-10-04 14:41:29 +00:00
<th>Collection (number of child collections)</th>
<th>Collection Role</th>
2018-08-06 12:30:51 +00:00
<th>Document id's</th>
<th>Options</th>
</thead>
<tbody>
@foreach($collections as $collection)
<tr>
2018-10-04 14:41:29 +00:00
<td>
<a class="show" href="{{ route('settings.collection.show', $collection) }}">
{{-- <span">{{ $collection->name }}</span> --}}
<span">{{ $collection->name .' ('. $collection->children->count() .')' }}</span>
</a>
</td>
<td>{{ $collection->collectionrole->name }}</td>
2018-08-06 12:30:51 +00:00
<td>
@foreach ($collection->documents as $document)
<p>document id: {{ $document->id }}</p>
@endforeach
</td>
<td>
2018-10-04 14:41:29 +00:00
<a class="edit" href="{{ route('settings.collection.edit', $collection->id) }}"><span aria-hidden="true">edit collection</span></a>
{{-- <a class="delete" href="{{ route('settings.collection.delete', $collection->id) }}"><span aria-hidden="true"></span></a> --}}
2018-08-06 12:30:51 +00:00
</td>
</td>
</tr>
@endforeach
</tbody>
</table>
2018-08-29 15:18:15 +00:00
</div>
2018-08-06 12:30:51 +00:00
2018-08-29 15:18:15 +00:00
<div class="pure-u-1 pure-u-md-3-3">
{{ $collections->links('vendor.pagination.default') }}
2018-08-06 12:30:51 +00:00
</div>
2018-08-29 15:18:15 +00:00
</div>
2018-08-06 12:30:51 +00:00
@stop