This commit is contained in:
ghozahimma65 2026-04-08 02:14:30 +07:00
parent 4db17667aa
commit 6c2fb15d9f
5 changed files with 42 additions and 30 deletions

View File

@ -25,7 +25,6 @@
<th class="py-3 px-4 text-left uppercase font-semibold text-sm">No</th>
<th class="py-3 px-4 text-left uppercase font-semibold text-sm">NIS</th>
<th class="py-3 px-4 text-left uppercase font-semibold text-sm">Nama Siswa</th>
<th class="py-3 px-4 text-center uppercase font-semibold text-sm">Kelompok</th>
<th class="py-3 px-4 text-center uppercase font-semibold text-sm">Aksi</th>
</tr>
</thead>
@ -43,10 +42,6 @@
<td class="py-3 px-4 font-medium text-gray-900">
{{ $siswa->nama_siswa }}
</td>
<td class="py-3 px-4 text-center">
{{ $siswa->kelompok_id ?? '-' }}
</td>
<td class="py-3 px-4 text-center">
{{-- PERBAIKAN: Hapus 'admin.' jadi 'perkembangan.show' --}}
@ -57,7 +52,7 @@
</tr>
@empty
<tr>
<td colspan="5" class="text-center py-8 text-gray-500">
<td colspan="4" class="text-center py-8 text-gray-500">
<div class="flex flex-col items-center">
<span class="text-4xl mb-2">📭</span>
<p>Belum ada data siswa.</p>

View File

@ -1,31 +1,48 @@
@extends('layouts.app')
@section('content')
<div class="bg-white shadow-md rounded-lg p-6">
<div class="flex justify-between items-center mb-4">
<h1 class="text-xl font-semibold text-gray-700">👪 Data Wali Murid</h1>
<a href="{{ route('wali-murid.create') }}" class="bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700">+ Tambah Wali</a>
<div class="bg-white shadow-md rounded-2xl border border-[#e1f0e8] overflow-hidden">
<!-- Header Section -->
<div class="flex flex-col md:flex-row justify-between items-start md:items-center bg-gradient-to-br from-green-600 to-teal-700 p-8 shadow-inner relative overflow-hidden">
<!-- Decorative inner pattern -->
<div class="absolute inset-0 bg-[url('https://www.transparenttextures.com/patterns/cubes.png')] opacity-10 mix-blend-overlay"></div>
<div class="relative z-10">
<h1 class="text-2xl font-extrabold text-white flex items-center drop-shadow">
<span class="bg-white/20 text-white p-2.5 rounded-xl mr-4 backdrop-blur-md"><i class="fas fa-users"></i></span> Data Wali Murid
</h1>
<p class="text-green-50 mt-2 ml-14 font-medium drop-shadow-sm">Kelola informasi orang tua / wali peserta didik.</p>
</div>
<div class="mt-6 md:mt-0 relative z-10">
<a href="{{ route('wali-murid.create') }}" class="inline-flex items-center gap-2 bg-white text-green-700 px-6 py-3 rounded-xl hover:bg-green-50 font-bold text-sm shadow-lg transition-all hover:-translate-y-1">
<i class="fas fa-plus"></i> Tambah Wali
</a>
</div>
</div>
{{-- TAMBAHAN: Alert Merah untuk Error --}}
@if(session('error'))
<div class="bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded relative mb-4" role="alert">
<strong class="font-bold">Error!</strong>
<span class="block sm:inline">{{ session('error') }}</span>
</div>
@endif
<div class="p-6">
{{-- Alert Merah untuk Error --}}
@if(session('error'))
<div class="bg-red-50/50 border border-red-200 text-red-700 p-4 mb-6 rounded-xl flex items-center shadow-sm" role="alert">
<i class="fas fa-exclamation-circle mr-3 text-xl text-red-500"></i>
<div>
<strong class="font-bold block">Error!</strong>
<span>{{ session('error') }}</span>
</div>
</div>
@endif
{{-- Alert Hijau untuk Sukses --}}
@if(session('success'))
<div class="bg-green-100 border border-green-400 text-green-700 px-4 py-3 rounded relative mb-4" role="alert">
<strong class="font-bold">Sukses!</strong>
<span class="block sm:inline">{{ session('success') }}</span>
</div>
@endif
{{-- Alert Hijau untuk Sukses --}}
@if(session('success'))
<div class="bg-green-50/50 border border-green-200 text-green-700 p-4 mb-6 rounded-xl flex items-center shadow-sm" role="alert">
<i class="fas fa-check-circle mr-3 text-xl text-green-500"></i>
<p class="font-medium">{{ session('success') }}</p>
</div>
@endif
<table class="w-full border-collapse">
<thead>
<tr class="bg-green-600 text-white text-left">
<div class="overflow-x-auto">
<table class="w-full border-collapse">
<thead>
<tr class="bg-green-600 text-white text-left">
<th class="p-2">No</th>
<th class="p-2">Nama Wali</th>
<th class="p-2">No HP</th>
@ -56,5 +73,7 @@
@endforelse
</tbody>
</table>
</div>
</div>
</div>
@endsection

View File

@ -1 +0,0 @@
a:3:{s:6:"_token";s:40:"sDTN2eel2XLvgOIi2iCJoGQPjJjq3y5H52v5TpBf";s:9:"_previous";a:1:{s:3:"url";s:21:"http://127.0.0.1:8000";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}

View File

@ -1 +0,0 @@
a:4:{s:6:"_token";s:40:"eWLnDbrqXYS5aXlTxB1xh6b0Lnp8wmte7kkkWUnz";s:9:"_previous";a:1:{s:3:"url";s:39:"http://127.0.0.1:8000/admin/penjemputan";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}s:50:"login_web_59ba36addc2b2f9401580f014c7f58ea4e30989d";i:1;}

View File

@ -1 +1 @@
a:4:{s:6:"_token";s:40:"00mfxFm9DrbF1elsEluX9X6oWjH0R4XSNXCoGuB3";s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}s:9:"_previous";a:1:{s:3:"url";s:32:"http://127.0.0.1:8000/admin/guru";}s:50:"login_web_59ba36addc2b2f9401580f014c7f58ea4e30989d";i:1;}
a:4:{s:6:"_token";s:40:"00mfxFm9DrbF1elsEluX9X6oWjH0R4XSNXCoGuB3";s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}s:9:"_previous";a:1:{s:3:"url";s:31:"http://127.0.0.1:8000/dashboard";}s:50:"login_web_59ba36addc2b2f9401580f014c7f58ea4e30989d";i:1;}