75 lines
2.6 KiB
PHP
75 lines
2.6 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('content')
|
|
<div class="pure-g">
|
|
|
|
<div class="pure-u-1 pure-u-md-2-3">
|
|
<div class="content">
|
|
|
|
<div class="title">
|
|
<h2><i class="fa fa-pencil"></i> Persons Management</h2>
|
|
</div>
|
|
|
|
<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>
|
|
<th>ORCID</th>
|
|
<!-- <th>Borrow</th> -->
|
|
<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>
|
|
<!-- <td>{{ date('d-M-y', $person->registered_at) }}</td>-->
|
|
<td>{{ $person->identifier_orcid }}</td>
|
|
<!-- <td>{{ $person->borrow }}</td> -->
|
|
<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> </span></a>
|
|
<a class="delete" href="{{ route('settings.person.delete', $person->id) }}"><span> </span></a>
|
|
</td>
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@stop |