
<?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 e($variables['judul']); ?></h3>
                        <div class="card-tools">
                            <a href="<?php echo e(route('menus.edit', $data->id)); ?>" class="btn btn-sm btn-warning button-cek-permission" data-permission="menus.edit">
                                <i class="fas fa-edit"></i> Ubah
                            </a>
                            <a href="<?php echo e(route('menus.index')); ?>" class="btn btn-sm btn-warning">
                                <i class="fas fa-arrow-left"></i> Kembali
                            </a>
                        </div>
                    </div>
                    <div class="card-body">
                        <!-- Menu 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>Grup Menu</strong></td>
                                        <td>: <?php echo e($data->menu_group ?: '-'); ?></td>
                                    </tr>
                                    <tr>
                                        <td><strong>Kode PLU</strong></td>
                                        <td>: <?php echo e($data->plu_code ?: '-'); ?></td>
                                    </tr>
                                </table>
                            </div>
                            <div class="col-md-6">
                                <table class="table table-borderless">
                                    <tr>
                                        <td width="40%"><strong>Kategori</strong></td>
                                        <td>: <?php echo e($data->category ?: '-'); ?></td>
                                    </tr>
                                    <tr>
                                        <td><strong>Harga</strong></td>
                                        <td>: <span class="badge badge-success"><?php echo e($data->formatted_price); ?></span></td>
                                    </tr>
                                    <tr>
                                        <td><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 ? $data->creator->fullname : 'System'); ?> (<?php echo e($data->created_at ? $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>
<?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-menus/show.blade.php ENDPATH**/ ?>