@extends('layouts.dashboard') @section('breadcrumb') @endsection @section('content')
Entri Pembayaran
@csrf
@error('nisn') {{ $message }} @enderror
@error('spp_bulan') {{ $message }} @enderror
@error('jumlah_bayar') {{ $message }} @enderror
Data Pembayaran
@php $i=1; @endphp @foreach($pembayaran as $value) @php $i++; @endphp @endforeach
# PETUGAS NISN SISWA NAMA SISWA SPP JUMLAH BAYAR TANGGAL BAYAR
{{ $i }} {{ $value->users->name }} {{ $value->siswa->nisn }} {{ $value->siswa->nama }} {{ $value->siswa->spp->nominal }} {{ $value->jumlah_bayar }} {{ $value->created_at->format('d M, Y') }}
@if($pembayaran->lastPage() != 1)
@for($i = 1; $i <= $pembayaran->lastPage(); $i++) {{ $i }} @endfor
@endif @if(count($pembayaran) == 0)
Tidak ada data!
@endif
@endsection @section('sweet') function deleteData(id){ Swal.fire({ title: 'PERINGATAN!', text: "Yakin ingin menghapus data SPP?", icon: 'warning', showCancelButton: true, confirmButtonColor: '#3085d6', cancelButtonColor: '#d33', confirmButtonText: 'Yakin', cancelButtonText: 'Batal', }).then((result) => { if (result.value) { $('#delete'+id).submit(); } }) } @endsection