Merge branch 'main' of https://git.abbauf.com/Magang-2025/Undangan
This commit is contained in:
commit
72d25ad801
@ -12,6 +12,29 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Flash Message -->
|
||||||
|
@if (session('success'))
|
||||||
|
<div id="toast-success" class="mb-4 p-3 rounded bg-green-100 text-green-800 border border-green-300 shadow">
|
||||||
|
{{ session('success') }}
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
setTimeout(() => document.getElementById('toast-success')?.remove(), 3000);
|
||||||
|
</script>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
@if ($errors->any())
|
||||||
|
<div id="toast-error" class="mb-4 p-3 rounded bg-red-100 text-red-800 border border-red-300 shadow">
|
||||||
|
<ul class="list-disc ml-5">
|
||||||
|
@foreach ($errors->all() as $error)
|
||||||
|
<li>{{ $error }}</li>
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
setTimeout(() => document.getElementById('toast-error')?.remove(), 5000);
|
||||||
|
</script>
|
||||||
|
@endif
|
||||||
|
|
||||||
<!-- Tabel Fitur -->
|
<!-- Tabel Fitur -->
|
||||||
<div class="bg-white rounded-lg shadow-sm">
|
<div class="bg-white rounded-lg shadow-sm">
|
||||||
<div class="p-4 overflow-x-auto">
|
<div class="p-4 overflow-x-auto">
|
||||||
@ -27,8 +50,7 @@
|
|||||||
@forelse ($fitur as $key => $item)
|
@forelse ($fitur as $key => $item)
|
||||||
<tr class="hover:bg-gray-50">
|
<tr class="hover:bg-gray-50">
|
||||||
<td class="py-5 px-2 border border-gray-300 text-center">{{ $key + 1 }}</td>
|
<td class="py-5 px-2 border border-gray-300 text-center">{{ $key + 1 }}</td>
|
||||||
<td class="py-5 px-2 border border-gray-300 truncate whitespace-nowrap">{{ $item->deskripsi }}
|
<td class="py-5 px-2 border border-gray-300 truncate whitespace-nowrap">{{ $item->deskripsi }}</td>
|
||||||
</td>
|
|
||||||
<td class="py-5 px-2 border border-gray-300 text-center">
|
<td class="py-5 px-2 border border-gray-300 text-center">
|
||||||
<div class="flex justify-center space-x-2">
|
<div class="flex justify-center space-x-2">
|
||||||
<button class="text-blue-600 flex items-center pr-4 openEditModalBtn"
|
<button class="text-blue-600 flex items-center pr-4 openEditModalBtn"
|
||||||
|
@ -39,12 +39,12 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
@forelse($pelanggans as $key => $pelanggan)
|
@forelse($pelanggans as $key => $pelanggan)
|
||||||
<tr>
|
<tr>
|
||||||
<td class="p-2 border border-gray-300 text-center">{{ $key + 1 }}</td>
|
<td class="p-2 py-4 border border-gray-300 text-center">{{ $key + 1 }}</td>
|
||||||
<td class="p-2 border border-gray-300 truncate">{{ $pelanggan->nama_pemesan }}</td>
|
<td class="p-2 py-4 border border-gray-300 truncate">{{ $pelanggan->nama_pemesan }}</td>
|
||||||
<td class="p-2 border border-gray-300 truncate">{{ $pelanggan->nama_template }}</td>
|
<td class="p-2 py-4 border border-gray-300 truncate">{{ $pelanggan->nama_template }}</td>
|
||||||
<td class="p-2 border border-gray-300 truncate">{{ $pelanggan->kategori ?? '-' }}</td>
|
<td class="p-2 py-4 border border-gray-300 truncate">{{ $pelanggan->kategori ?? '-' }}</td>
|
||||||
<td class="p-2 border border-gray-300 truncate">{{ $pelanggan->email }}</td>
|
<td class="p-2 py-4 border border-gray-300 truncate">{{ $pelanggan->email }}</td>
|
||||||
<td class="p-2 border border-gray-300 truncate">{{ $pelanggan->no_tlpn ?? '-' }}</td>
|
<td class="p-2 py-4 border border-gray-300 truncate">{{ $pelanggan->no_tlpn ?? '-' }}</td>
|
||||||
<td class="py-3 px-2 border border-gray-300 text-center">
|
<td class="py-3 px-2 border border-gray-300 text-center">
|
||||||
Rp {{ number_format($pelanggan->harga, 0, ',', '.') }}
|
Rp {{ number_format($pelanggan->harga, 0, ',', '.') }}
|
||||||
</td>
|
</td>
|
||||||
|
@ -33,10 +33,10 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
@forelse ($reviews as $key => $review)
|
@forelse ($reviews as $key => $review)
|
||||||
<tr>
|
<tr>
|
||||||
<td class="p-2 border border-gray-300 text-center truncate">{{ $key + 1 }}</td>
|
<td class="p-2 py-4 border border-gray-300 text-center truncate">{{ $key + 1 }}</td>
|
||||||
<td class="p-2 border border-gray-300 truncate">{{ $review->name }}</td>
|
<td class="p-2 py-4 border border-gray-300 truncate">{{ $review->name }}</td>
|
||||||
<td class="p-2 border border-gray-300 truncate">{{ $review->city }}</td>
|
<td class="p-2 py-4 border border-gray-300 truncate">{{ $review->city }}</td>
|
||||||
<td class="p-2 border border-gray-300 text-center">
|
<td class="p-2 py-4 border border-gray-300 text-center">
|
||||||
@for ($s = 1; $s <= 5; $s++)
|
@for ($s = 1; $s <= 5; $s++)
|
||||||
<i
|
<i
|
||||||
class="bi {{ $s <= $review->rating ? 'bi-star-fill text-yellow-500' : 'bi-star text-gray-400' }}"></i>
|
class="bi {{ $s <= $review->rating ? 'bi-star-fill text-yellow-500' : 'bi-star text-gray-400' }}"></i>
|
||||||
|
Loading…
Reference in New Issue
Block a user