revisi:1.5
This commit is contained in:
parent
1315c02a87
commit
b32d666802
|
@ -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();
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
Binary file not shown.
After Width: | Height: | Size: 124 KiB |
|
@ -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" />
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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">
|
||||
<i class="fe-trash"></i> Hapus
|
||||
</button>
|
||||
</form>
|
||||
<button type="button" class="btn btn-danger btn-sm" onclick="confirmDelete('{{ route('complaints.destroy', $complaint->id) }}')">
|
||||
<i class="fe-trash"></i> Hapus
|
||||
</button>
|
||||
@endcan
|
||||
</div>
|
||||
</div>
|
||||
|
@ -150,4 +146,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Sertakan Modal Konfirmasi Hapus -->
|
||||
@include('layouts.delete-modal')
|
||||
@endsection
|
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
|
@ -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">
|
||||
<i class="fe-trash-2"></i> Hapus
|
||||
</button>
|
||||
</form>
|
||||
<button type="button" class="btn btn-danger btn-sm" onclick="confirmDelete('{{ route('services.destroy', $service->id) }}')">
|
||||
<i class="fe-trash-2"></i> Hapus
|
||||
</button>
|
||||
</div>
|
||||
@endcan
|
||||
</div>
|
||||
<hr>
|
||||
</div>
|
||||
|
@ -237,4 +235,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Sertakan Modal Konfirmasi Hapus -->
|
||||
@include('layouts.delete-modal')
|
||||
@endsection
|
Loading…
Reference in New Issue