diff --git a/app/Contracts/Repositories/EmployeeRepository.php b/app/Contracts/Repositories/EmployeeRepository.php
index 4e287826..2f8d5cbe 100644
--- a/app/Contracts/Repositories/EmployeeRepository.php
+++ b/app/Contracts/Repositories/EmployeeRepository.php
@@ -77,6 +77,8 @@ public function whereSchool(mixed $id, $query, Request $request): mixed
})
->when($request->filter === "terlama", function($query) {
$query->oldest();
+ }) ->when($request->status, function($query) use ($request) {
+ $query->where('status', $request->status);
})
->latest()
->paginate(10);
diff --git a/app/Http/Controllers/Teacher/TeacherController.php b/app/Http/Controllers/Teacher/TeacherController.php
index 05f628ac..892a4a3a 100644
--- a/app/Http/Controllers/Teacher/TeacherController.php
+++ b/app/Http/Controllers/Teacher/TeacherController.php
@@ -11,6 +11,7 @@
use App\Http\Requests\UpdateEmployeeRequest;
use App\Models\Employee;
use App\Services\TeacherService;
+use Illuminate\Http\Request;
use Illuminate\Support\Str;
@@ -34,9 +35,9 @@ public function __construct(UserInterface $user, EmployeeInterface $employee, Te
/**
* Display a listing of the resource.
*/
- public function index()
+ public function index(Request $request)
{
- $teachers = $this->employee->whereSchool(auth()->user()->school->id, RoleEnum::TEACHER->value);
+ $teachers = $this->employee->whereSchool(auth()->user()->school->id, RoleEnum::TEACHER->value, $request);
$religions = $this->religion->get();
return view('school.pages.teacher.index', compact('teachers', 'religions'));
}
diff --git a/public/admin_assets/dist/images/ilustrations/absensi.png b/public/admin_assets/dist/images/ilustrations/absensi.png
new file mode 100644
index 00000000..a47ef0a6
Binary files /dev/null and b/public/admin_assets/dist/images/ilustrations/absensi.png differ
diff --git a/public/admin_assets/dist/images/ilustrations/scan.png b/public/admin_assets/dist/images/ilustrations/scan.png
new file mode 100644
index 00000000..1301b61d
Binary files /dev/null and b/public/admin_assets/dist/images/ilustrations/scan.png differ
diff --git a/resources/views/school/layouts/sidebar.blade.php b/resources/views/school/layouts/sidebar.blade.php
index ac608046..d36b7660 100644
--- a/resources/views/school/layouts/sidebar.blade.php
+++ b/resources/views/school/layouts/sidebar.blade.php
@@ -170,11 +170,11 @@ class="icon icon-tabler icons-tabler-outline icon-tabler-aperture">
+ viewBox="0 0 14 14">
+
No | -Guru | -Kelamin | -Status | -NIP | -RFID | -Jumlah Pelajaran | -Aksi | -
---|---|---|---|---|---|---|---|
{{ $loop->iteration }} | -- - {{ $teacher->user->name }} - | -{{ $teacher->gender == 'male' ? 'Laki Laki' : 'Perempuan' }} | -{{ $teacher->active == 1 ? 'Aktif' : 'Tidak aktif' }} | -{{ $teacher->nip }} | -{{ $teacher->modelHasRfid ? $teacher->modelHasRfid->rfid : '' }} - - | -
Lakukan tab pada rfid reader untuk menginputkan rfid
- -Lakukan tab pada rfid reader untuk menginputkan rfid
+Suyadi Oke
Suyadi Oke
-suyadi@gmail.com
-suyadi@gmail.com
089121289098
-089121289098
123123123
-123123123
123123123
-123123123
jl. - sembarang, - desa. opowae, kec. kepanjen, kab. Malang
-jl. + sembarang, + desa. opowae, kec. kepanjen, kab. Malang
Mata - Pelajaran
-Mata + Pelajaran