

<?php $__env->startSection('title'); ?>
<?php echo $variables['header_routes']; ?>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<section class="content">
    <div class="container-fluid">
        <div class="row">
            <div class="col-12">
                <div class="card">
                    <div class="card-header">
                        <h3 class="card-title"><?php echo $variables['judul']; ?></h3>
                        <div class="float-right">
                            <a href="<?php echo e(route('reason_adjustments.index')); ?>" class="btn btn-warning btn-sm button-cek-permission" data-permission="reason_adjustments.index">
                                <i class="fas fa-list"></i> Daftar
                            </a>
                            <a href="<?php echo e(route('reason_adjustments.edit', $data->id)); ?>" class="btn btn-warning btn-sm button-cek-permission" data-permission="reason_adjustments.edit">
                                <i class="fas fa-edit"></i> Ubah
                            </a>
                            <a href="<?php echo e(route('reason_adjustments.destroy', $data->id)); ?>" data='delete' onclick="notificationBeforeDelete(event, this)" class="btn btn-warning btn-sm button-cek-permission" data-permission="reason_adjustments.destroy">
                                <i class="fas fa-trash"></i> <?php echo e($data->delete_flag ? 'Aktifkan' : 'Nonaktifkan'); ?>

                            </a>
                        </div>
                    </div>
                    <div class="card-body">
                        <!-- Reason Adjustment Header Info -->
                        <div class="row">
                            <div class="col-md-6">
                                <table class="table table-borderless">
                                    <tr>
                                        <td width="40%"><strong>Kode</strong></td>
                                        <td>: <span class="badge badge-info"><?php echo e($data->code); ?></span></td>
                                    </tr>
                                    <tr>
                                        <td><strong>Nama</strong></td>
                                        <td>: <?php echo e($data->name); ?></td>
                                    </tr>
                                    <tr>
                                        <td><strong>Kategori</strong></td>
                                        <td>: <?php echo $data->category_badge ?? '<span class="badge badge-info">' . $data->category . '</span>'; ?></td>
                                    </tr>
                                </table>
                            </div>
                            <div class="col-md-6">
                                <table class="table table-borderless">
                                    <tr>
                                        <td width="40%"><strong>Status</strong></td>
                                        <td>: 
                                            <?php if($data->is_active): ?>
                                            <span class="badge badge-success">Aktif</span>
                                            <?php else: ?>
                                            <span class="badge badge-secondary">Nonaktif</span>
                                            <?php endif; ?>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td><strong>Dibuat Oleh</strong></td>
                                        <td>: <?php echo e($data->creator->fullname ?? 'System'); ?> (<?php echo e($data->created_at->format('d M Y, H:i')); ?>)</td>
                                    </tr>
                                    <tr>
                                        <td><strong>Diubah Oleh</strong></td>
                                        <td>: <?php echo e($data->modificator->fullname ?? '-'); ?> (<?php echo e($data->updated_at ? $data->updated_at->format('d M Y, H:i') : '-'); ?>)</td>
                                    </tr>
                                </table>
                            </div>
                        </div>

                        <?php if($data->description): ?>
                        <div class="row">
                            <div class="col-12">
                                <table class="table table-borderless">
                                    <tr>
                                        <td width="20%"><strong>Deskripsi</strong></td>
                                        <td>: <?php echo e($data->description); ?></td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                        <?php endif; ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

<form action="" id="delete-form" method="post">
    <?php echo method_field('delete'); ?>
    <?php echo csrf_field(); ?>
</form>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts/base_view', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH D:\LSM\resources\views/m-reason-adjustments/show.blade.php ENDPATH**/ ?>