Commit 4b7f543f by Aan Choesni Herlingga

bug fix view team academic staff

parent e1382a8b
...@@ -83,13 +83,20 @@ class PersonController extends Controller ...@@ -83,13 +83,20 @@ class PersonController extends Controller
if ($pick) { if ($pick) {
$listTeam = $this->listTeam($pick->value_setting); $listTeam = $this->listTeam($pick->value_setting);
} }
$team = []; $team = [];
if ($listTeam) { if ($listTeam) {
if ($name == 'lecturer') { if ($name == 'lecturer') {
$team = $listTeam[1]; if (array_key_exists(1, $listTeam)) {
$team = $listTeam[1];
} else {
$team = [];
}
} elseif ($name == 'academic-staff') { } elseif ($name == 'academic-staff') {
$team = $listTeam[0]; if (array_key_exists(0, $listTeam)) {
$team = $listTeam[0];
} else {
$team = [];
}
} }
} }
......
...@@ -33,4 +33,5 @@ return [ ...@@ -33,4 +33,5 @@ return [
'unit' => 'Unit', 'unit' => 'Unit',
'lecturer' => 'Lecturer', 'lecturer' => 'Lecturer',
'employe' => 'Academic Staff', 'employe' => 'Academic Staff',
'academic-staff' => 'Academic Staff',
]; ];
...@@ -33,4 +33,5 @@ return [ ...@@ -33,4 +33,5 @@ return [
'unit' => 'Unit', 'unit' => 'Unit',
'lecturer' => 'Dosen', 'lecturer' => 'Dosen',
'employe' => 'Tenaga Kependidikan', 'employe' => 'Tenaga Kependidikan',
'academic-staff' => 'Tenaga Kependidikan',
]; ];
...@@ -75,8 +75,8 @@ ...@@ -75,8 +75,8 @@
</table> </table>
<h1>@lang('label.employe')</h1> <h1>@lang('label.employe')</h1>
<div style="padding: 10px; color: blue; font-size: 14px;"> <div style="padding: 10px; color: blue; font-size: 14px;">
URL : <a href="{{ url('team/employe') }}" target="_blank">{{ url('employe') }}</a> URL : <a href="{{ url('team/academic-staff') }}" target="_blank">{{ url('academic-staff') }}</a>
<label id="urlemploye" hidden>team/employe</label> <label id="urlemploye" hidden>team/academic-staff</label>
<button type="button" onclick="copyToClipboard('#urlemploye')" class="btn btn-info btn-xs">Copy URL</button> <button type="button" onclick="copyToClipboard('#urlemploye')" class="btn btn-info btn-xs">Copy URL</button>
</div> </div>
<table class="table table-hover" width="100%"> <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