Finishing tampilan apps

This commit is contained in:
pand03
2026-02-13 14:10:43 +07:00
parent c52682a121
commit 945ab963c1
3 changed files with 55 additions and 17 deletions

View File

@@ -152,10 +152,13 @@ public function update(Request $request, $id)
'id_kendaraan' => $request->id_kendaraan_baru 'id_kendaraan' => $request->id_kendaraan_baru
]); ]);
return response()->json([ // return response()->json([
'status' => 'success', // 'status' => 'success',
'message' => 'data berhasil di ubah' // 'message' => 'data berhasil di ubah'
]); // ]);
return redirect()
->route('apps.index')
->with('success', 'Data berhasil diubah');
} }
/** /**

BIN
public/images/parkq-systems.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 552 KiB

View File

@@ -43,10 +43,11 @@
<div class="main-panel"> <div class="main-panel">
<div class="content-wrapper d-flex align-items-center auth px-0"> <div class="content-wrapper d-flex align-items-center auth px-0">
<div class="row w-100 mx-0"> <div class="row w-100 mx-0">
<div class="col-lg-4 mx-auto"> {{-- <div class="col-lg-4 mx-auto"> --}}
<div class="col-12 col-md-8 col-lg-5 mx-auto">
<div class="auth-form-light text-left py-5 px-4 px-sm-5"> <div class="auth-form-light text-left py-5 px-4 px-sm-5">
<div class="text-center mb-1"> <div class="text-center mb-1">
<img src="{{ asset('images/parkq-services.png') }}" <img src="{{ asset('images/parkq-systems.png') }}"
alt="Logo Perusahaan" alt="Logo Perusahaan"
style="max-height: 80px;"> style="max-height: 80px;">
</div> </div>
@@ -104,8 +105,10 @@
</div> </div>
</div> </div>
<div class="row mb-2"> {{-- <div class="row mb-2">
<div class="col-md-4 font-weight-bold"> <div class="col-md-4 font-weight-bold"> --}}
<div class="row mb-3 align-items-center">
<div class="col-12 col-md-4 font-weight-bold mb-1 mb-md-0">
Jam Masuk Jam Masuk
</div> </div>
<div class="col-md-8 text-md-right"> <div class="col-md-8 text-md-right">
@@ -117,8 +120,10 @@
</div> </div>
</div> </div>
<div class="row"> {{-- <div class="row">
<div class="col-md-4 font-weight-bold"> <div class="col-md-4 font-weight-bold"> --}}
<div class="row mb-3 align-items-center">
<div class="col-12 col-md-4 font-weight-bold mb-1 mb-md-0">
Pintu Masuk Pintu Masuk
</div> </div>
<div class="col-md-8 text-md-right"> <div class="col-md-8 text-md-right">
@@ -131,8 +136,10 @@
</div> </div>
</div> </div>
<div class="row"> {{-- <div class="row">
<div class="col-md-4 font-weight-bold"> <div class="col-md-4 font-weight-bold"> --}}
<div class="row mb-3 align-items-center">
<div class="col-12 col-md-4 font-weight-bold mb-1 mb-md-0">
Kendaraan terbaca : Kendaraan terbaca :
</div> </div>
<div class="col-md-8 text-md-right"> <div class="col-md-8 text-md-right">
@@ -180,10 +187,6 @@ class="btn btn-primary px-4 shadow-sm">
</form> </form>
</div> </div>
</div> </div>
{{-- @else
<h1>Halaman Utama Apps</h1>
<p>Ini adalah tampilan standar ketika tidak ada ID yang dipilih.</p>
@endif --}}
</div> </div>
</div> </div>
</div> </div>
@@ -195,6 +198,7 @@ class="btn btn-primary px-4 shadow-sm">
@section('javascript') @section('javascript')
<script src="https://unpkg.com/html5-qrcode"></script> <script src="https://unpkg.com/html5-qrcode"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script> <script>
function onScanSuccess(decodedText) { function onScanSuccess(decodedText) {
@@ -225,5 +229,36 @@ function onScanSuccess(decodedText) {
); );
html5QrcodeScanner.render(onScanSuccess); html5QrcodeScanner.render(onScanSuccess);
</script>
</script>
@if(session('success'))
<script>
Swal.fire({
icon: 'success',
title: 'Berhasil',
// text: "{{ session('success') }}",
// confirmButtonColor: '#3085d6'
html: `
{{ session('success') }}<br><br>
Redirect dalam <b></b> detik...
`,
timer: 3000, // 3 detik
timerProgressBar: true,
showConfirmButton: false,
didOpen: () => {
const b = Swal.getHtmlContainer().querySelector('b');
timerInterval = setInterval(() => {
b.textContent = Math.ceil(Swal.getTimerLeft() / 1000);
}, 100);
},
willClose: () => {
clearInterval(timerInterval);
window.location.href = "{{ route('apps.index') }}";
}
});
</script>
@endif
@endsection @endsection