Web FT UNTAN (Laravel 8) versi lama + dump database ftuntan_web_profil

Kode dari ftuntan_main dengan dependensi diperbarui untuk PHP 8.3
(perbaikan insiden 27 Okt 2026). Dump database di database/sql/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
izu
2026-10-29 13:31:52 +07:00
co-authored by Claude Opus 5.5
commit 5f264c815a
489 changed files with 61031 additions and 0 deletions
@@ -0,0 +1,140 @@
@extends('admin/layout/main')
@section('title', 'Pertanyaan')
@section('container')
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0">Pertanyaan</h1>
</div><!-- /.col -->
</div><!-- /.row -->
</div><!-- /.container-fluid -->
</div>
<!-- Alert Status -->
@if (session('status'))
<div class="alert alert-success">
{{ session('status') }}
</div>
@endif
@if (session('alert'))
<div class="alert alert-danger">
{{ session('alert') }}
</div>
@endif
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-header">
<h3 class="card-title">Data Pertanyaan</h3>
</div>
<!-- /.card-header -->
<div class="card-body">
<div class="table-responsive">
<table id="tabel_pertanyaan" class="table table-bordered table-striped">
<thead>
<tr>
<th>Nomor</th>
<th>Nama</th>
<th>Email</th>
<th>Pertanyaan</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
@foreach ($pertanyaans as $pertanyaan)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $pertanyaan->nama }}</td>
<td>{{ $pertanyaan->email }}</td>
<td>{{ $pertanyaan->pertanyaan }}</td>
@if ($pertanyaan->deleted_at == '')
<td>
<form
action="{{ route('pertanyaan.destroy', $pertanyaan) }}"
method="post">
@method('delete')
@csrf
<button type="submit" class="btn btn-danger"
onclick="return confirm('Apakah anda yakin ingin menghapus data?')"><i
class="fa fa-trash"></i> Delete</button>
</form>
</td>
@else
<td>
<form
action="{{ url('/admin/pertanyaan/' . $pertanyaan->id . '/restore') }}"
method="post">
@csrf
<button type="submit" class="btn btn-primary"
onclick="return confirm('Apakah anda yakin ingin mengembalikan data?')"><i
class="fas fa-trash-restore"></i> Restore
</button>
</form>
<form
action="{{ url('/admin/pertanyaan/' . $pertanyaan->id . '/delete') }}"
method="post">
@csrf
<button type="submit" class="btn btn-danger"
onclick="return confirm('Apakah anda yakin ingin menghapus permanen data?')"><i
class="fa fa-trash"></i> Delete Permanent
</button>
</form>
</td>
@endif
</tr>
@endforeach
</tbody>
</table>
</div>
<!-- /.card-body -->
</div>
</div>
</div>
</div>
</div>
</section>
</div>
@endsection
@section('script')
<!--Data Table -->
<script>
$(function () {
$("#tabel_pertanyaan").DataTable({
"paging": true,
"lengthChange": false,
"searching": true,
"ordering": true,
"info": true,
"autoWidth": false,
"responsive": false,
"buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"]
}).buttons().container().appendTo('#tabel_pertanyaan_wrapper .col-md-6:eq(0)');
});
$(document).on("click", ".open-formModalEdit", function () {
var id = $(this).data('id');
var nama = $(this).data('nama');
var email = $(this).data('email');
var pertanyaan = $(this).data('pertanyaan');
var answer = $(this).data('answer');
var status = $(this).data('status');
$(".modal-body #id").val(id);
$(".modal-body #nama").val(nama);
$(".modal-body #email").val(email);
$(".modal-body #pertanyaan").val(pertanyaan);
$(".modal-body #answer").val(answer);
$(".modal-body #status").val(status);
});
</script>
@endsection