Commit 4b7f543f by Aan Choesni Herlingga

bug fix view team academic staff

parent e1382a8b
......@@ -83,13 +83,20 @@ class PersonController extends Controller
if ($pick) {
$listTeam = $this->listTeam($pick->value_setting);
}
$team = [];
if ($listTeam) {
if ($name == 'lecturer') {
if (array_key_exists(1, $listTeam)) {
$team = $listTeam[1];
} else {
$team = [];
}
} elseif ($name == 'academic-staff') {
if (array_key_exists(0, $listTeam)) {
$team = $listTeam[0];
} else {
$team = [];
}
}
}
......
......@@ -33,4 +33,5 @@ return [
'unit' => 'Unit',
'lecturer' => 'Lecturer',
'employe' => 'Academic Staff',
'academic-staff' => 'Academic Staff',
];
......@@ -33,4 +33,5 @@ return [
'unit' => 'Unit',
'lecturer' => 'Dosen',
'employe' => 'Tenaga Kependidikan',
'academic-staff' => 'Tenaga Kependidikan',
];
......@@ -75,8 +75,8 @@
</table>
<h1>@lang('label.employe')</h1>
<div style="padding: 10px; color: blue; font-size: 14px;">
URL : <a href="{{ url('team/employe') }}" target="_blank">{{ url('employe') }}</a>
<label id="urlemploye" hidden>team/employe</label>
URL : <a href="{{ url('team/academic-staff') }}" target="_blank">{{ url('academic-staff') }}</a>
<label id="urlemploye" hidden>team/academic-staff</label>
<button type="button" onclick="copyToClipboard('#urlemploye')" class="btn btn-info btn-xs">Copy URL</button>
</div>
<table class="table table-hover" width="100%">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment