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

69 lines
2.4 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 fa-edit"></i> Persons Management
</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-2-3">
<a class="pure-button button-small is-primary" href="{{ route('settings.person.add') }}">
<i class="fa fa-plus-circle"></i>
<span>ADD NEW Person</span>
</a>
<br><br>
<table class="pure-table pure-table-horizontal">
<thead>
<tr>
<th>Name</th>
2018-11-08 16:47:27 +00:00
<th>Email</th>
<th>ORCID</th>
2018-08-29 15:18:15 +00:00
<th>Status</th>
<th></th>
<th>Document Count</th>
<th colspan="2"><center>Options</center></th>
</tr>
</thead>
<tbody>
@foreach($persons as $person)
<tr>
<td>{{ $person->last_name }}</td>
2018-11-08 16:47:27 +00:00
<td>{{ $person->email }}</td>
<td>{{ $person->identifier_orcid }}</td>
2018-08-29 15:18:15 +00:00
<td>
@if($person->status == 1)
Active
@else
Inactive
@endif
</td>
<td>
@if($person->status == 1)
<a href="{{ route('settings.person.down', $person->id) }}" class="pure-button button-small is-warning">Deactivate</a>
@else
<a href="{{ route('settings.person.up', $person->id) }}" class="pure-button button-small is-success">Activate</a>
@endif
</td>
<td>{{ $person->documents->count() }}</td>
<td>
<a class="edit" href="{{ route('settings.person.edit', $person->id) }}"><span>&nbsp;</span></a>
2018-11-13 16:21:58 +00:00
@if($person->documents->count() == 0)
<a class="delete" href="{{ route('settings.person.delete', $person->id) }}"><span>&nbsp;</span></a>
@endif
2018-08-29 15:18:15 +00:00
</td>
</tr>
@endforeach
</tbody>
</table>
2018-08-06 12:30:51 +00:00
</div>
2018-08-29 15:18:15 +00:00
2018-08-06 12:30:51 +00:00
</div>
@stop