<?php $__env->startSection('content'); ?>
<section class="section">
    <div class="section-header">
        <h1>Beranda Siswa</h1>
        <div class="section-header-breadcrumb">
            <div class="breadcrumb-item active"><a href="<?php echo e(route('dashboard')); ?>">Dashboard</a></div>
            
            
        </div>
    </div>

    <div class="section-body">

        <div class="row">
            <div class="col-md-12">
                <div class="card">
                    <div class="card-header">
                        <h4>Profile</h4>
                    </div>
                    <div class="card-body">
                        <a href="#" class="btn btn-primary btn-icon icon-left btn-lg btn-block mb-4 d-md-none"
                            data-toggle-slide="#ticket-items">
                            <i class="fas fa-list"></i> All Tickets
                        </a>
                        <div class="tickets">
                            <div class="ticket-items" id="ticket-items">
                                <div class="ticket-item active">
                                    <div class="ticket-title">
                                        <h4>Data Siswa</h4>
                                    </div>

                                </div>


                            </div>
                            <div class="ticket-content">
                                <div class="ticket-header">
                                    <div class="ticket-sender-picture img-shadow">
                                        <img src="assets/img/avatar/avatar-5.png" alt="image">
                                    </div>
                                    <div class="ticket-detail">
                                        <div class="ticket-title">
                                            <h4><?php echo e($datasiswa->nama); ?></h4>
                                        </div>
                                        <div class="ticket-info">
                                            <div class="font-weight-600"><?php echo e($datasiswa->kelas!=null?$datasiswa->kelas->tingkatan.' '.$datasiswa->kelas->jurusan.' '.$datasiswa->kelas->suffix : ' Kelas tidak ditemukan'); ?></div>
                                            <div class="bullet"></div>
                                            <div class="text-primary font-weight-600">Walikelas :
                                                <?php
                                                    if($datasiswa->kelas!=null){
                                                        if($datasiswa->kelas->guru!=null){
                                                            $namawali=$datasiswa->kelas->guru->nama;
                                                        }else{
                                                            $namawali='';
                                                        }
                                                    }else{
                                                        $namawali='';
                                                    }
                                                ?>
                                                <?php echo e($namawali); ?>

                                                
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="ticket-description">

                                    <form action="<?php echo e(route('siswa.siswa.update',$datasiswa->id)); ?>" method="post">
                                        <?php echo method_field('put'); ?>
                                        <?php echo csrf_field(); ?>

                                    <div class="row">

                                        <div class="form-group col-md-5 col-5 mt-0 ml-5">
                                            <label for="nomerinduk">Nomer Induk <code>*)</code></label>
                                            <input type="text" name="nomerinduk" id="nomerinduk" class="form-control <?php $__errorArgs = ['nomerinduk'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" value="<?php echo e(old('nomerinduk')?old('nomerinduk'):$datasiswa->nomerinduk); ?>"  readonly>
                                            <?php $__errorArgs = ['nomerinduk'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="invalid-feedback"> <?php echo e($message); ?></div>
                                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                        </div>

                                        <div class="form-group col-md-5 col-5 mt-0 ml-5">
                                            <label for="nama">Nama Lengkap<code>*)</code></label>
                                            <input type="text" name="nama" id="nama" class="form-control <?php $__errorArgs = ['nama'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" value="<?php echo e(old('nama')?old('nama'):$datasiswa->nama); ?>"  readonly>
                                            <?php $__errorArgs = ['nama'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="invalid-feedback"> <?php echo e($message); ?></div>
                                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                        </div>


                                        <div class="form-group col-md-5 col-5 mt-0 ml-5">
                                            <label for="tempatlahir">Tempat Lahir<code>*)</code></label>
                                            <input type="text" name="tempatlahir" id="tempatlahir" class="form-control <?php $__errorArgs = ['tempatlahir'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" value="<?php echo e(old('tempatlahir')?old('tempatlahir'):$datasiswa->tempatlahir); ?>" required>
                                            <?php $__errorArgs = ['tempatlahir'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="invalid-feedback"> <?php echo e($message); ?></div>
                                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                        </div>

                                        <div class="form-group col-md-5 col-5 mt-0 ml-5">
                                            <label for="tgllahir">Tanggal Lahir<code>*)</code></label>
                                            <input type="date" name="tgllahir" id="tgllahir" class="form-control <?php $__errorArgs = ['tgllahir'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" value="<?php echo e(old('tgllahir')?old('tgllahir'):$datasiswa->tgllahir); ?>" required>
                                            <?php $__errorArgs = ['tgllahir'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="invalid-feedback"> <?php echo e($message); ?></div>
                                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                        </div>


                                        <div class="form-group col-md-5 col-5 mt-0 ml-5">
                                            <label for="agama">Pilih Agama <code></code></label>

                                            <select class="form-control  <?php $__errorArgs = ['agama'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="agama" required>
                                                <?php if(old('agama')): ?>
                                                <option><?php echo e(old('agama')); ?></option>
                                                <?php else: ?>
                                                <option><?php echo e($datasiswa->agama); ?></option>
                                                <?php endif; ?>
                                                <option>Islam</option>
                                                <option>Kristen</option>
                                                <option>Katholik</option>
                                                <option>Hindu</option>
                                                <option>Budha</option>
                                                <option>Konghucu</option>
                                                <option>Lain-lain</option>
                                            </select>
                                            <?php $__errorArgs = ['agama'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="invalid-feedback"> <?php echo e($message); ?></div>
                                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                        </div>

                                        <div class="form-group col-md-5 col-5 mt-0 ml-5">
                                            <label for="alamat">Alamat<code>*)</code></label>
                                            <input type="text" name="alamat" id="alamat" class="form-control <?php $__errorArgs = ['alamat'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" value="<?php echo e(old('alamat')?old('alamat'):$datasiswa->alamat); ?>" required>
                                            <?php $__errorArgs = ['alamat'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="invalid-feedback"> <?php echo e($message); ?></div>
                                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                        </div>

                                        <div class="form-group col-md-5 col-5 mt-0 ml-5">
                                            <label for="jk">Pilih Jenis Kelamin <code></code></label>

                                            <select class="form-control  <?php $__errorArgs = ['jk'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="jk" required>

                                            <?php if(old('jk')): ?>
                                            <option><?php echo e(old('jk')); ?></option>
                                            <?php else: ?>
                                            <option><?php echo e($datasiswa->jk); ?></option>
                                            <?php endif; ?>
                                             <option>Laki-laki</option>
                                                <option>Perempuan</option>
                                            </select>
                                            <?php $__errorArgs = ['jk'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="invalid-feedback"> <?php echo e($message); ?></div>
                                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                        </div>






                                        <div class="form-group col-md-5 col-5 mt-0 ml-5">
                                            <label for="email">Email<code></code></label>

                                            <input type="text" class="form-control  <?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="email" required  value="<?php echo e(old('email')?old('email'):$datasiswa->users->email); ?>">

                                            <?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="invalid-feedback"> <?php echo e($message); ?></div>
                                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                        </div>

                                        <div class="form-group col-md-5 col-5 mt-0 ml-5">
                                            <label for="password">Password<code></code></label>


                                            <input type="password" class="form-control  <?php $__errorArgs = ['password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="password" >

                                            <?php $__errorArgs = ['password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="invalid-feedback"> <?php echo e($message); ?></div>
                                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                        </div>

                                        <div class="form-group col-md-5 col-5 mt-0 ml-5">
                                            <label for="password2">Konfirmasi Password<code></code></label>


                                            <input type="password" class="form-control  <?php $__errorArgs = ['password2'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="password2" >

                                            <?php $__errorArgs = ['password2'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="invalid-feedback"> <?php echo e($message); ?></div>
                                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                        </div>

                                        

                                        <?php $__env->startPush('after-script'); ?>
                                        <script type="text/javascript">
                                            $(document).ready(function() {
                                              $.uploadPreview({
                                                input_field: "#image-upload",   // Default: .image-upload
                                                preview_box: "#image-preview",  // Default: .image-preview
                                                label_field: "#image-label",    // Default: .image-label
                                                label_default: "Logo Sekolah",   // Default: Choose File
                                                label_selected: "Ganti Logo Sekolah",  // Default: Change File
                                                no_label: false                 // Default: false
                                              });



                                            });
                                            </script>
                                        <?php $__env->stopPush(); ?>
                                        <div class="form-group col-md-5 col-5 mt-0 ml-5">
                                          <div id="image-preview" class="image-preview">
                                            <label for="image-upload" id="image-label2">UPLOAD FOTO</label>
                                            <input type="file" name="siswafoto" id="image-upload" class="<?php $__errorArgs = ['siswafoto'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                            is_invalid
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"  accept="image/png, image/gif, image/jpeg" />

                                        <?php $__errorArgs = ['siswafoto'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="invalid-feedback"> <?php echo e($message); ?></div>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                          </div>
                                        </div>


                                        </div>



                                    <div class="ticket-divider"></div>

                                    <div class="ticket-form">

                                            <div class="form-group text-right">
                                                <button class="btn btn-primary btn-lg">
                                                    Simpan
                                                </button>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>



    </div>
</section>


<?php $__env->stopSection(); ?>
<?php /**PATH C:\Xampp 8.2\htdocs\sim\resources\views/pages/admin/dashboard/dashboard_siswa.blade.php ENDPATH**/ ?>