@extends('layouts.default') @section('title') Pelanggaran @endsection @push('before-script') @if (session('status')) @endif @endpush @section('content') @yield('title') Dashboard Pelanggaran @yield('title') Tambah @if($datas->count()>0) @endif No Nama Siswa Total Aksi @forelse ($datas as $data) {{ ((($loop->index)+1)+(($datas->currentPage()-1)*$datas->perPage())) }} {{Str::limit($data->nama,25,' ...')}} {{$data->pelanggaran!=null ? $data->pelanggaran->count() : '0'}} @push('before-script') @endpush @empty Data tidak ditemukan @endforelse @php $cari=$request->cari; @endphp {{ $datas->onEachSide(1) ->links() }} Tambah Pelanggaran @csrf Pilih Siswa Pilih Siswa @foreach ($datas as $t) {{ $t->nama }} @endforeach @push('before-script') @endpush Nama Pelanggaran @error('nama') {{$message}} @enderror Skor Pelanggaran @error('skor') {{$message}} @enderror Tanggal Pelanggaran @error('tgl') {{$message}} @enderror @endsection