Skip to content

Commit

Permalink
update beranda guru
Browse files Browse the repository at this point in the history
  • Loading branch information
nesaathussholeha committed Nov 7, 2024
1 parent 69bc48f commit 1111f91
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 36 deletions.
9 changes: 7 additions & 2 deletions resources/views/teacher/pages/dashboard/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
/* Thumb and track colors */
}
</style>

@endsection

@section('content')
Expand Down Expand Up @@ -152,9 +153,13 @@ class="badge bg-light-{{ $todayAttendance->status->color() }} text-{{ $todayAtte
</div>

<h4>Riwayat Jurnal</h4>
<h6 class="mb-5">Daftar jurnal guru setelah berkegiatan mengajar</h6>
<h6 class="mb-4">Daftar jurnal guru setelah berkegiatan mengajar</h6>

@include('teacher.pages.dashboard.panes.journal-history')
<div class="row">
<div class="col-lg-12">
@include('teacher.pages.dashboard.panes.journal-history')
</div>
</div>

@if ($teacherJournals->count() > 3)
<a class="btn mb-5 waves-effect waves-light btn-outline-info w-100"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="row mb-4">
<div class="col-lg-8 col-12 mb-4 d-flex align-items-stretch">
<div class="card w-100 h-100">
<div class="card w-100 h-100 border">
<div class="card-body">
<h4>Riwayat Absensi</h4>
<div class="table-responsive rounded-2 mt-3">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="row">
<div class="row me-3">
<div class="col-lg-12 col-md-12">
@forelse ($teacherJournals->take(3) as $teacherJournal)
<div class="col-md-12 d-flex align-items-stretch">
Expand All @@ -9,72 +9,72 @@
{{ $teacherJournal->lessonSchedule->teacherSubject->subject->name }}
</h4>
<div class="position-absolute top-0 end-0" style="padding: 0px; position: relative;">
<img src="{{ asset('assets/images/background/arrow-leftwarning.png') }}"
alt="Description" class="img-fluid"
style="max-width: 210px; height: auto; position: relative;">
<span class="d-flex align-items-center ms-5 fs-4"
style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-weight: bold;width: 100%;">
<svg xmlns="http://www.w3.org/2000/svg" class="me-2" width="20" height="20"
<img src="{{ asset('assets/images/background/arrow-leftwarning.png') }}" alt="Description"
class="img-fluid" style="max-width: 210px; height: auto; position: relative;">
<span class="d-flex align-items-center ms-5"
style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-weight: bold;width: 100%; font-size: 13px">
<svg xmlns="http://www.w3.org/2000/svg" class="me-2" width="18" height="18"
viewBox="0 0 24 24">
<path fill="currentColor"
d="M12 12h5v5h-5zm7-9h-1V1h-2v2H8V1H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 2v2H5V5zM5 19V9h14v10z" />
</svg>
{{ $teacherJournal->date }}
{{ \Carbon\Carbon::parse($teacherJournal->date)->translatedFormat('d F Y') }}
</span>
</div>
</div>

<div class="card-body">
<div class="row pb-2" style="border-bottom: 1px solid #c0c0c0">
<div class="col-lg-8" style="border-right: 1px solid #c0c0c0;">
<div class="pe-3">
<div class="col-lg-8 col-12 mb-3 mb-lg-0" style="border-right: 1px solid #c0c0c0;">
<div class="pe-lg-3">
<h5 class="card-title mb-4">Deskripsi:</h5>
<p>{{ Str::limit($teacherJournal->description, 130) }}</p>
</div>
</div>
<div class="col-lg-4">
<div class="ps-3">
<h5 class="card-title mb-4 ms-5 ps-3">Rekap Absensi:</h5>
<div class="row px-5">
<div class="col-lg-4">
<div class="col-lg-4 col-12">
<div class="ps-lg-3">
<h5 class="card-title mb-4 ms-lg-5 ps-lg-3">Rekap Absensi:</h5>
<div class="row px-lg-5">
<div class="col-4">
<div class="text-center">
<span
class="badge bg-light-primary text-primary fs-7 fw-semibold mb-1 py-2">{{ $teacherJournal->attendanceJournals->where('status', App\Enums\AttendanceEnum::PERMIT)->count() }}</span>
<p>Izin</p>
<span class="badge bg-light-primary text-primary fs-7 fw-semibold mb-1 py-2">
{{ $teacherJournal->attendanceJournals->where('status', App\Enums\AttendanceEnum::PERMIT)->count() }}
</span>
<p class="mb-0">Izin</p>
</div>
</div>
<div class="col-lg-4">
<div class="col-4">
<div class="text-center">
<span
class="badge bg-light-warning text-warning fs-7 fw-semibold mb-1 py-2">{{ $teacherJournal->attendanceJournals->where('status', App\Enums\AttendanceEnum::SICK)->count() }}</span>
<p>Sakit</p>
<span class="badge bg-light-warning text-warning fs-7 fw-semibold mb-1 py-2">
{{ $teacherJournal->attendanceJournals->where('status', App\Enums\AttendanceEnum::SICK)->count() }}
</span>
<p class="mb-0">Sakit</p>
</div>
</div>
<div class="col-lg-4">
<div class="col-4">
<div class="text-center">
<span
class="badge bg-light-danger text-danger fs-7 fw-semibold mb-1 py-2">{{ $teacherJournal->attendanceJournals->where('status', App\Enums\AttendanceEnum::ALPHA)->count() }}</span>
<p>Alfa</p>
<span class="badge bg-light-danger text-danger fs-7 fw-semibold mb-1 py-2">
{{ $teacherJournal->attendanceJournals->where('status', App\Enums\AttendanceEnum::ALPHA)->count() }}
</span>
<p class="mb-0">Alfa</p>
</div>
</div>
</div>
</div>
</div>
</div>

<div>
<a href="{{ route('teacher.journals.show', $teacherJournal->id) }}"
class="btn btn-primary mt-3">
<div class="mt-3">
<a href="{{ route('teacher.journals.show', $teacherJournal->id) }}" class="btn btn-primary">
Lihat Detail Jurnal
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" class="mb-1"
viewBox="0 0 24 24">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" class="mb-1" viewBox="0 0 24 24">
<path fill="currentColor"
d="M17.92 11.62a1 1 0 0 0-.21-.33l-5-5a1 1 0 0 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l5-5a1 1 0 0 0 .21-.33a1 1 0 0 0 0-.76" />
</svg>
</a>
</div>

</div>

</div>
</div>
@empty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class="img-fluid mb-3">
<h3><b>{{ auth()->user()->name }}</b></h3>
<h5>Tahun Ajaran {{ $schoolYear->school_year }}</h5>
</div>
<div class="col-12 pt-2">
<div class="col-12 pt-2 mb-0">
@forelse ($teacherSubjects as $teacherSubject)
<div class="m-1 badge bg-light-primary text-primary">
{{ $teacherSubject->subject->name }}
Expand Down

0 comments on commit 1111f91

Please sign in to comment.