revisi:1.5

This commit is contained in:
ilhamrandikesuma 2025-04-28 16:30:20 +08:00
parent 1315c02a87
commit b32d666802
10 changed files with 30 additions and 29 deletions

View File

@ -38,7 +38,7 @@ public function dashboard()
$totalServices = Service::count();
// Total pelanggan
$totalCustomers = User::where('role', 'customer')->count();
$totalCustomers = User::where('role', 'pelanggan')->count();
// Total admin
$totalAdmins = User::where('role', 'admin')->count();

BIN
public/images/logotitle.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
public/images/logotitle.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

View File

@ -8,7 +8,7 @@
<meta content="UPTD. LABLING DLH KOTA PROBOLINGGO" name="author" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!-- App favicon -->
<link rel="shortcut icon" href="{{ asset('images/logo2.png') }}">
<link rel="shortcut icon" href="{{ asset('images/logotitle.png') }}">
<!-- Datatables css -->
<link href="{{ asset('DB/assets/libs/datatables/dataTables.bootstrap4.css') }}" rel="stylesheet" type="text/css" />

View File

@ -179,7 +179,7 @@
<table class="table table-hover table-centered m-0">
<thead>
<tr>
<th>ID</th>
<th>No</th>
<th>Pelanggan</th>
<th>Jenis Permintaan</th>
<th>Pengujian</th>
@ -190,7 +190,7 @@
<tbody>
@foreach($latestServices as $service)
<tr>
<td>{{ $service->id }}</td>
<td>{{ $loop->iteration }}</td>
<td>{{ $service->user->name }}</td>
<td>{{ $service->jenis_permintaan }}</td>
<td>{{ $service->pengujian_kualitas_air }}</td>

View File

@ -27,19 +27,15 @@
<div class="row">
<div class="col-md-12">
<div class="d-flex justify-content-between mb-4">
<h4>Informasi Keluhan #{{ $complaint->id }}</h4>
<h4>Informasi Keluhan</h4>
<div>
@can('customer')
<a href="{{ route('complaints.edit', $complaint->id) }}" class="btn btn-primary btn-sm mr-1">
<i class="fe-edit"></i> Edit
</a>
<form action="{{ route('complaints.destroy', $complaint->id) }}" method="POST" class="d-inline" onsubmit="return confirm('Anda yakin ingin menghapus data ini?');">
@csrf
@method('DELETE')
<button type="submit" class="btn btn-danger btn-sm">
<button type="button" class="btn btn-danger btn-sm" onclick="confirmDelete('{{ route('complaints.destroy', $complaint->id) }}')">
<i class="fe-trash"></i> Hapus
</button>
</form>
@endcan
</div>
</div>
@ -150,4 +146,7 @@
</div>
</div>
</div>
<!-- Sertakan Modal Konfirmasi Hapus -->
@include('layouts.delete-modal')
@endsection

View File

@ -160,7 +160,7 @@
<table class="table table-hover table-centered m-0">
<thead>
<tr>
<th>ID</th>
<th>No</th>
<th>Jenis Permintaan</th>
<th>Tanggal Uji</th>
<th>Jenis Pengujian</th>
@ -172,7 +172,7 @@
<tbody>
@forelse($latestServices as $service)
<tr>
<td># {{ $service->id }}</td>
<td>{{ $loop->iteration }}</td>
<td>{{ $service->jenis_permintaan }}</td>
<td>{{ \Carbon\Carbon::parse($service->tanggal_uji)->format('d M Y') }}</td>
<td>{{ $service->pengujian_kualitas_air }}</td>

View File

@ -11,7 +11,7 @@
<meta content="UPTD. LABLING DLH KOTA PROBOLINGGO" name="author" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!-- App favicon -->
<link rel="shortcut icon" href="{{ asset('images/logo2.png') }}">
<link rel="shortcut icon" href="{{ asset('images/logotitle.png') }}">
<style>
body {
background-color: #f5f5f5;

View File

@ -79,10 +79,10 @@
</div>
<div class="card-body">
<table class="table table-borderless">
<tr>
{{-- <tr>
<th style="width: 40%;">ID Penilaian</th>
<td># {{ $satisfaction->id }}</td>
</tr>
</tr> --}}
<tr>
<th>Tanggal Pengisian</th>
<td>{{ $satisfaction->created_at->format('d F Y, H:i') }}</td>
@ -288,11 +288,9 @@
<a href="{{ route('satisfactions.index') }}" class="btn btn-secondary">Kembali</a>
@can('customer')
<a href="{{ route('satisfactions.edit', $satisfaction->id) }}" class="btn btn-primary ml-2">Edit</a>
<form action="{{ route('satisfactions.destroy', $satisfaction->id) }}" method="POST" class="d-inline" onsubmit="return confirm('Anda yakin ingin menghapus data ini?');">
@csrf
@method('DELETE')
<button type="submit" class="btn btn-danger ml-2">Hapus</button>
</form>
<button type="button" class="btn btn-danger ml-2" onclick="confirmDelete('{{ route('satisfactions.destroy', $satisfaction->id) }}')">
<i class="fe-trash"></i> Hapus
</button>
@endcan
</div>
</div>
@ -301,4 +299,7 @@
</div>
</div>
</div>
<!-- Sertakan Modal Konfirmasi Hapus -->
@include('layouts.delete-modal')
@endsection

View File

@ -28,18 +28,16 @@
<div class="col-md-12 mb-3">
<div class="d-flex justify-content-between align-items-center">
<h5 class="card-title">Informasi Layanan</h5>
@can('admin')
<div>
<a href="{{ route('services.edit', $service->id) }}" class="btn btn-primary btn-sm me-1">
<i class="fe-edit"></i> Edit
</a>
<form action="{{ route('services.destroy', $service->id) }}" method="POST" class="d-inline" onsubmit="return confirm('Apakah Anda yakin ingin menghapus layanan ini?')">
@csrf
@method('DELETE')
<button type="submit" class="btn btn-danger btn-sm">
<button type="button" class="btn btn-danger btn-sm" onclick="confirmDelete('{{ route('services.destroy', $service->id) }}')">
<i class="fe-trash-2"></i> Hapus
</button>
</form>
</div>
@endcan
</div>
<hr>
</div>
@ -237,4 +235,7 @@
</div>
</div>
</div>
<!-- Sertakan Modal Konfirmasi Hapus -->
@include('layouts.delete-modal')
@endsection