Skip to content

Commit

Permalink
update paginate journal teacher role school
Browse files Browse the repository at this point in the history
  • Loading branch information
nesaathussholeha committed Nov 18, 2024
1 parent 759cdf8 commit 04e3e05
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/Contracts/Repositories/LessonScheduleRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function whereJournalTeacher(mixed $query, Request $request): mixed
$i->whereRelation('teacherSubject.employee.user', 'name', 'like', '%' . $request->search . '%');
})
->latest()
->get();
->paginate(10);
}

public function export(Request $request): mixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ class="mb-1 badge font-medium {{ $all_journal->teacherJournals->first() ? 'bg-li
data-author="{{ $all_journal->teacherSubject->employee->user->name }}"
data-date="{{ \Carbon\Carbon::parse($all_journal->created_at)->translatedFormat('d F Y') }}"
data-description="{{ $all_journal->teacherJournals->first() ? \Illuminate\Support\Str::limit($all_journal->teacherJournals->first()->description, 50) : 'kosong...' }}"
data-classroom="{{ $all_journal->classroom->name }} - {{ $all_journal->teacherSubject->subject->name }}"
>
data-classroom="{{ $all_journal->classroom->name }} - {{ $all_journal->teacherSubject->subject->name }}">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"
viewBox="0 0 24 24">
<g fill="none" stroke="currentColor" stroke-linecap="round"
Expand Down Expand Up @@ -89,6 +88,8 @@ class="mb-1 badge font-medium {{ $all_journal->teacherJournals->first() ? 'bg-li
</tbody>
</table>
</div>
<div class="pagination justify-content-end mb-0">
<x-paginate-component :paginator="$all_journals->appends(request()->input())" />
</div>
</div>
</div>

Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ class="fw-normal">{{$fill_journal->teacherSubject->employee->user->modelHasRfid
</tbody>
</table>
</div>
<div class="pagination justify-content-end mb-0">
<x-paginate-component :paginator="$fill_journals->appends(request()->input())" />
</div>
</div>
</div>

Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,8 @@ class="mb-1 badge font-medium {{ $notfill_journal->teacherJournals->first() ? 'b
</tbody>
</table>
</div>
<div class="pagination justify-content-end mb-0">
<x-paginate-component :paginator="$notfill_journals->appends(request()->input())" />
</div>
</div>
</div>

0 comments on commit 04e3e05

Please sign in to comment.