<?php $__env->startSection('page_title', 'Data Siswa'); ?>
<?php $__env->startSection('content'); ?>
<?php echo $__env->make('admin.partials.crud-table', [
    'title' => 'Siswa',
    'headers' => ['ID', 'Nama', 'Kelas', 'JK', 'Telepon'],
    'columns' => ['id_siswa', 'nama', 'kelas', 'jenis_kelamin', 'telepon'],
    'rows' => $data,
    'primaryKey' => 'id_siswa',
    'storeRoute' => 'admin.data.siswa.store',
    'updateRoute' => 'admin.data.siswa.update',
    'deleteRoute' => 'admin.data.siswa.destroy',
    'fields' => [
        ['name' => 'nama', 'label' => 'Nama Lengkap', 'type' => 'text', 'required' => true],
        ['name' => 'kelas', 'label' => 'Kelas', 'type' => 'text', 'required' => true],
        ['name' => 'jenis_kelamin', 'label' => 'Jenis Kelamin', 'type' => 'select', 'options' => [['v'=>'Laki-Laki','l'=>'Laki-Laki'],['v'=>'Perempuan','l'=>'Perempuan']], 'optionValue' => 'v', 'optionLabel' => 'l'],
        ['name' => 'alamat', 'label' => 'Alamat', 'type' => 'textarea'],
        ['name' => 'tgl_lahir', 'label' => 'Tanggal Lahir', 'type' => 'date'],
        ['name' => 'telepon', 'label' => 'Telepon (WA)', 'type' => 'text'],
    ],
], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\Users\Samsul Arifin\Downloads\absensismkn1prajekan\resources\views/admin/pages/siswa.blade.php ENDPATH**/ ?>