Skip to content

Commit

Permalink
update personel
Browse files Browse the repository at this point in the history
  • Loading branch information
punkestu committed Nov 3, 2024
1 parent bf8ea48 commit 26cc1a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/PersonelController.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function cabang(Request $request, $id)
}])->find($id);
} else if ($request->tab === 'AIS') {
$cabang = Cabang::with(['personels' => function ($query) use ($limit, $page) {
$query->with(['kompetensis'])->where('posisi', 'AIS')->orWhere('posisi', 'AERONAUTICAL INFORMATION SERVICE')->limit($limit)->offset($page * $limit);
$query->with(['kompetensis'])->where('posisi', 'AIS')->orWhere('posisi', 'AERONAUTICAL INFORMATION SERVICE')->orWhere('posisi', 'LIKE', 'AIS%')->limit($limit)->offset($page * $limit);
}])->find($id);
} else if ($request->tab === 'ATFM') {
$cabang = Cabang::with(['personels' => function ($query) use ($limit, $page) {
Expand Down
2 changes: 1 addition & 1 deletion resources/views/rotasi/cabang/detail.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
class="p-2 break-all w-full font-sans">{{ $cabang->alamat }}</pre>
@can('cabangOwner', $cabang->id)
<a class="mt-4 bg-[#003285] hover:bg-white text-white hover:text-black border-2 border-[#003285] duration-200 w-full text-center p-2 rounded-lg font-semibold mb-2"
href="/personel/cabang/{{ $cabang->id }}">Personel</a>
href="/personel/cabang/{{ $cabang->id }}?tab=ATC">Personel</a>
<a href="/rotasi/cabang/input/{{ $cabang->id }}"
class="bg-[#003285] hover:bg-white text-white hover:text-black border-2 border-[#003285] duration-200 w-full text-center p-2 rounded-lg font-semibold mb-2">Update</a>
<a href="/rotasi/cabang/input/{{ $cabang->id }}/delete"
Expand Down

0 comments on commit 26cc1a4

Please sign in to comment.