From 6aa1d841b42eedd3c794c335bb917ce4a98fbd41 Mon Sep 17 00:00:00 2001 From: Zhaqian Rouf Alfauzi Date: Mon, 10 Feb 2025 11:03:56 +0700 Subject: [PATCH] [add] QR Code --- .../views/pages/admin/class-result.blade.php | 4 +- .../views/pages/admin/data-santri.blade.php | 189 +++++++++++------- .../views/pages/admin/train-data.blade.php | 26 ++- .../views/pages/santri/dashboard.blade.php | 63 +++++- 4 files changed, 192 insertions(+), 90 deletions(-) diff --git a/resources/views/pages/admin/class-result.blade.php b/resources/views/pages/admin/class-result.blade.php index 78b88ff..e29efaa 100644 --- a/resources/views/pages/admin/class-result.blade.php +++ b/resources/views/pages/admin/class-result.blade.php @@ -73,8 +73,8 @@ {{ $item->nis }} {{ $item->asal_daerah }} {{ $item->tahun_angkatan }} - {{ $item->alhadis }} - {{ $item->alquran }} + {{ number_format(($item->alhadis / 1997) * 100, 2) }}% + {{ number_format(($item->alquran / 606) * 100, 2) }}% {{ $item->status }} @if ($item->predicted_status == 'Tercapai') diff --git a/resources/views/pages/admin/data-santri.blade.php b/resources/views/pages/admin/data-santri.blade.php index 21fcc8f..3168270 100644 --- a/resources/views/pages/admin/data-santri.blade.php +++ b/resources/views/pages/admin/data-santri.blade.php @@ -26,71 +26,80 @@
-
Munaqosah Santri
+
+
Munaqosah Santri
+ +
- - - - - - - - - - - - - - - - @foreach($riwayat as $item) - - - - - - - - - - - - @endforeach - -
TanggalNama SantriNISTahun AngkatanAl-Qur'an IsiAl-Hadis IsiNilai NStatusAksi
{{ $item->created_at->format('Y-m-d') }}{{ $item->user->name ?? '—' }}{{ $item->user->nis ?? '—' }}{{ $item->tahun_angkatan }}{{ $item->alquran }}{{ $item->alhadis }}{{ number_format($item->nilai_n, 2) }}{{ $item->status }} - @if($item->munaqosah_status === 'Sedang di Verifikasi') - +
+ + + + + + + + + + + + + + + + + + @foreach($riwayat as $item) + + + + + + + + + + + + + + @endforeach + +
TanggalNama SantriNISTahun AngkatanAl-Qur'an IsiPersentase Qur'anAl-Hadis IsiPersentase HadisNilai NStatusAksi
{{ $item->created_at->format('Y-m-d') }}{{ $item->user->name ?? '—' }}{{ $item->user->nis ?? '—' }}{{ $item->tahun_angkatan }}{{ $item->alquran }}{{ number_format(($item->alquran / 606) * 100, 2) }}%{{ $item->alhadis }}{{ number_format(($item->alhadis / 1997) * 100, 2) }}%{{ number_format($item->nilai_n, 2) }}{{ $item->status }} + @if($item->munaqosah_status === 'Sedang di Verifikasi') + +
+ @csrf + +
- -
- @csrf - +
+ + + - + @else + Selesai + @endif +
+
- -
- @csrf - -
- - - - @else - - Selesai - @endif -
- + - - + + + +
diff --git a/resources/views/pages/admin/train-data.blade.php b/resources/views/pages/admin/train-data.blade.php index 15277bb..5ebc471 100644 --- a/resources/views/pages/admin/train-data.blade.php +++ b/resources/views/pages/admin/train-data.blade.php @@ -13,7 +13,18 @@ - + + + @if(session('error')) + + @endif
@@ -79,7 +90,15 @@ class="btn btn-warning w-100 d-flex align-items-center justify-content-center ga {{ $item->nama ?? '—' }} {{ $item->jenis_kelamin ?? '—' }} {{ $item->nis ?? '—' }} - {{ $item->asal_daerah ?? '—' }} + + @if ($item->asal_daerah === 'dalamProvinsi') + Dalam Provinsi + @elseif ($item->asal_daerah === 'luarProvinsi') + Luar Provinsi + @else + {{ $item->asal_daerah }} + @endif + {{ $item->tahun_angkatan }} {{ $item->alhadis >= 1997 ? 'Khatam' : 'Belum Khatam' }} @@ -214,5 +233,8 @@ class="btn btn-warning w-100 d-flex align-items-center justify-content-center ga }); }); + + + @endsection \ No newline at end of file diff --git a/resources/views/pages/santri/dashboard.blade.php b/resources/views/pages/santri/dashboard.blade.php index fd77242..fba42cd 100644 --- a/resources/views/pages/santri/dashboard.blade.php +++ b/resources/views/pages/santri/dashboard.blade.php @@ -22,10 +22,17 @@ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); } - .text-success, - .text-danger { - font-size: 1.3rem; - font-weight: bold; + .qr-container { + display: none; + text-align: center; + margin-top: 10px; + } + + .qr-buttons { + display: flex; + justify-content: center; + gap: 10px; + margin-top: 10px; }
@@ -40,7 +47,6 @@
-
@@ -55,9 +61,25 @@
Ditolak
@elseif($latestRiwayat->munaqosah_status === 'Terverifikasi')
Terverifikasi
- -
- Unduh PDF + + +
+ + +
+ + + + @else
Belum Diverifikasi
@endif @@ -65,13 +87,10 @@
Belum ada data
@endif
- -
-
@@ -263,4 +282,26 @@ function generateQRCode() { }; } + @endsection \ No newline at end of file