

<?php $__env->startSection('title','Edit Mata Pelajaran'); ?>

<?php $__env->startSection('content'); ?>

<div class="container-fluid">

    
    <div class="d-flex justify-content-between align-items-center mb-4">

        <div>

            <h3 class="font-weight-bold mb-1">
                Edit Mata Pelajaran
            </h3>

            <p class="text-muted mb-0">
                Perbarui informasi mata pelajaran.
            </p>

        </div>

        <a href="<?php echo e(route('mata-pelajaran.index')); ?>"
           class="btn btn-secondary btn-modern">

            <i class="fas fa-arrow-left mr-1"></i>

            Kembali

        </a>

    </div>

    <form action="<?php echo e(route('mata-pelajaran.update',$mapel->id)); ?>"
          method="POST">

        <?php echo csrf_field(); ?>
        <?php echo method_field('PUT'); ?>

        <div class="card card-modern">

            <div class="card-header bg-white border-0">

                <h5 class="mb-0">

                    <i class="fas fa-book-open text-warning mr-2"></i>

                    Form Edit Mata Pelajaran

                </h5>

            </div>

            <div class="card-body">

                <div class="row">

                    
                    <div class="col-md-6 mb-3">

                        <label>Kode Mata Pelajaran</label>

                        <div class="input-group">

                            <div class="input-group-prepend">

                                <span class="input-group-text">

                                    <i class="fas fa-barcode"></i>

                                </span>

                            </div>

                            <input
                                type="text"
                                name="kode_mapel"
                                value="<?php echo e(old('kode_mapel',$mapel->kode_mapel)); ?>"
                                class="form-control <?php $__errorArgs = ['kode_mapel'];
$__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); ?>"
                                placeholder="Kode Mata Pelajaran">

                            <?php $__errorArgs = ['kode_mapel'];
$__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 class="col-md-6 mb-3">

                        <label>Nama Mata Pelajaran</label>

                        <div class="input-group">

                            <div class="input-group-prepend">

                                <span class="input-group-text">

                                    <i class="fas fa-book"></i>

                                </span>

                            </div>

                            <input
                                type="text"
                                name="nama_mapel"
                                value="<?php echo e(old('nama_mapel',$mapel->nama_mapel)); ?>"
                                class="form-control <?php $__errorArgs = ['nama_mapel'];
$__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); ?>"
                                placeholder="Nama Mata Pelajaran">

                            <?php $__errorArgs = ['nama_mapel'];
$__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>

            <div class="card-footer bg-white">

                <button
                    class="btn btn-warning btn-modern">

                    <i class="fas fa-save mr-1"></i>

                    Update Data

                </button>

                <a href="<?php echo e(route('mata-pelajaran.index')); ?>"
                   class="btn btn-light btn-modern">

                    Batal

                </a>

            </div>

        </div>

    </form>

</div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\laragon\www\Presguru\resources\views/mata-pelajaran/edit.blade.php ENDPATH**/ ?>