Skip to content

Commit 26c120d

Browse files
Add version and satker information to views and implement footer in layout
1 parent f85fa41 commit 26c120d

File tree

5 files changed

+56
-4
lines changed

5 files changed

+56
-4
lines changed

app/Http/Controllers/PulsaController.php

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ public function index()
1515
{
1616
$judul = PulsaKegiatan::getJudulByToken(request()->route('token'));
1717
$token = request()->route('token');
18+
$version = Helper::version();
19+
$satker = 'BPS '.config('satker.kabupaten');
1820

19-
return view('index-pulsa', compact('judul', 'token'));
21+
return view('index-pulsa', compact('judul', 'token', 'version', 'satker'));
2022
}
2123

2224
public function verifikasi(Request $request)
@@ -61,8 +63,10 @@ public function actionsChoice(Request $request)
6163
$token = request()->route('token');
6264
$nik = $mitra->nik;
6365
$nama = $mitra->nama;
66+
$version = Helper::version();
67+
$satker = 'BPS '.config('satker.kabupaten');
6468

65-
return view('actions-choice-pulsa', compact('judul', 'token', 'nik', 'nama'));
69+
return view('actions-choice-pulsa', compact('judul', 'token', 'nik', 'nama', 'version', 'satker'));
6670
}
6771

6872
public function choice(Request $request)
@@ -103,8 +107,10 @@ public function confirm(Request $request)
103107
$nik = $mitra->nik;
104108
$nama = $mitra->nama;
105109
$handphone = $mitra->no_pulsa;
110+
$version = Helper::version();
111+
$satker = 'BPS '.config('satker.kabupaten');
106112

107-
return view('konfirmasi-pulsa', compact('judul', 'token', 'nik', 'nama', 'handphone'));
113+
return view('konfirmasi-pulsa', compact('judul', 'token', 'nik', 'nama', 'handphone', 'version', 'satker'));
108114
}
109115

110116
public function submitConfirm(Request $request)
@@ -169,8 +175,10 @@ public function upload(Request $request)
169175
->where('mitra_id', session('mitraId'))
170176
->whereNotNull('file')
171177
->exists();
178+
$version = Helper::version();
179+
$satker = 'BPS '.config('satker.kabupaten');
172180

173-
return view('upload-pulsa', compact('judul', 'token', 'nik', 'nama', 'handphone', 'nominal', 'uploaded'));
181+
return view('upload-pulsa', compact('judul', 'token', 'nik', 'nama', 'handphone', 'nominal', 'uploaded', 'version', 'satker'));
174182
}
175183

176184
public function submitUpload(Request $request)

resources/views/pulsa/layout.blade.php

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,28 @@
177177
outline: none;
178178
box-shadow: 0 0 0 3px rgba(8, 136, 36, 0.5); /* focus:ring-2 focus:ring-indigo-500 focus:ring-opacity-50 */
179179
}
180+
.footer {
181+
position: static;
182+
left: 0;
183+
bottom: 0;
184+
width: 100%;
185+
background: #f3f4f6;
186+
text-align: center;
187+
font-size: 0.85rem;
188+
padding: 0.5rem 0;
189+
color: #4b5563;
190+
box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
191+
z-index: 100;
192+
}
193+
.footer-link {
194+
color: #0bb430ff;
195+
text-decoration: none;
196+
font-weight: 500;
197+
}
198+
.footer-link:hover {
199+
text-decoration: underline;
200+
color: #087824;
201+
}
180202
181203
/* Mobile Responsive Styles */
182204
@media (max-width: 640px) {
@@ -189,6 +211,10 @@
189211
.form-title {
190212
font-size: 1.5rem;
191213
}
214+
.footer {
215+
font-size: 0.75rem;
216+
padding: 0.4rem 0;
217+
}
192218
}
193219
</style>
194220
<title>Penggantian Pulsa</title>
@@ -200,6 +226,24 @@
200226
@yield('form')
201227
</div>
202228
</div>
229+
<footer class="footer">
230+
<div>
231+
<div>
232+
Sistem Integrasi Pekerjaan dan Dokumentasi secara Elektronik &middot; v.{{ $version }}
233+
</div>
234+
<div>
235+
Copyright &copy; 2021 -
236+
<span id="copyright">
237+
<script>
238+
document.getElementById("copyright").appendChild(document.createTextNode(new Date().getFullYear()));
239+
</script>
240+
</span>
241+
<a href="{{ config('satker.website') }}" target="_blank" class="footer-link">
242+
{{ $satker }}
243+
</a>
244+
</div>
245+
</div>
246+
</footer>
203247
@include('sweetalert2::index')
204248
</body>
205249
</html>
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)