KUJUNTI.ID MINISH3LL
Path : /var/www/html/jewelry-pos/storage/framework/views/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : /var/www/html/jewelry-pos/storage/framework/views/fafd44190bcf24dec95eed231815d5e2.php


<?php $__env->startSection('content'); ?>
    <div class="col-lg-12">
        <div class="card-body shadow-1">
            <div class="row">
                <div class="col-lg-12 margin-tb">
                    <div class="pull-right mb-2" style="text-align: right;">
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('product-category-create')): ?>
                            <a class="btn btn-sm  btn-primary" href="<?php echo e(route('product-category.create')); ?>">
                                <i class="fal fa-plus"></i> <?php echo e(__('message.add new')); ?>

                            </a>
                        <?php endif; ?>
                    </div>
                </div>
            </div>
            <div class="panel-container show">
                <div class="d-flex flex-column h-100">
                    <div class="h-auto">
                        <table id="example" class="table table-bordered table-hover table-striped w-100">
                            <thead class="bg-fusion-400">
                            <tr class="text-center">
                                <th>#</th>
                                <th><?php echo e(__('message.name')); ?></th>
                                <th><?php echo e(__('message.icon')); ?></th>
                                <th><?php echo e(__('message.main category')); ?></th>
                                <th><?php echo e(__('message.to usd exchange rate')); ?></th>
                                <th><?php echo e(__('message.buying rate')); ?></th>
                                <th><?php echo e(__('message.selling rate')); ?></th>
                                
                                <th><?php echo e(__('message.is_active')); ?></th>
                                <th><?php echo e(__('message.created by')); ?></th>
                                <th><?php echo e(__('message.created date')); ?></th>
                                <th><?php echo e(__('message.action')); ?></th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php $__currentLoopData = $productCategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr class="text-center" <?php if(!$category->is_active): ?> class="inactive" <?php endif; ?>>
                                    <td><?php echo e($index+1); ?></td>
                                    <td class="text-center" style="font-family: 'Khmer OS Siemreap'">
                                        <div class="row">
                                            <div class="col-sm-2 col-xl-2">
                                                <?php if($category->is_main): ?>
                                                    <input type="checkbox" onclick="return false;" checked/>
                                                <?php endif; ?>
                                            </div>
                                            <div class="col-sm-8 col-xl-8">
                                                <?php echo e($category->name); ?>

                                                
                                            </div>
                                        </div>

                                    </td>
                                    <td>
                                        <div class="col-xs-12 col-sm-10">
                                            <div class="d-flex justify-content-center">
                                                <?php if($category->icon): ?>
                                                    <img src="<?php echo e(asset($category->icon)); ?>" style="width:55px;">
                                                <?php endif; ?>
                                            </div>
                                        </div>
                                    </td>
                                    <td class="text-center" style="font-family: 'Khmer OS Siemreap'">
                                        <?php echo e($category->parent->name??''); ?>

                                    </td>
                                    <?php if($category->price()): ?>
                                        <td class="credit text-center" style="font-family: 'Khmer OS Siemreap'"><?php echo e($currency_->currency_symbol); ?> <?php echo e($category->price() ??0); ?>

                                        <td class="credit text-center" style="font-family: 'Khmer OS Siemreap'"><?php echo e($currency_->currency_symbol); ?> <?php echo e($category->buyingPrice() ??0); ?>

                                            <?php if($category->name == 'ផ្លាកទីន វៀតណាម'): ?>
                                                <?php if($category->product): ?>
                                                    <td class="credit text-center" style="font-family: 'Khmer OS Siemreap'"><?php echo e($currency_->currency_symbol); ?> <?php echo e($category->sellingPrice($category->product[0]->selling_purity??0.8) ??0); ?>

                                                <?php else: ?>
                                                <td class="credit text-center" style="font-family: 'Khmer OS Siemreap'"><?php echo e($currency_->currency_symbol); ?> <?php echo e($category->sellingPrice(0.8) ??0); ?>

                                                <?php endif; ?>        
                                            <?php else: ?>
                                                <td class="credit text-center" style="font-family: 'Khmer OS Siemreap'"><?php echo e($currency_->currency_symbol); ?> <?php echo e($category->sellingPrice() ??0); ?>

                                            <?php endif; ?>
                                    <?php else: ?>
                                    <td class="credit text-center" style="font-family: 'Khmer OS Siemreap'">
                                        <?php if($category->to_usd_exchange_rate): ?>
                                            <?php echo e($currency_->currency_symbol); ?> <?php echo e($category->name=='แพลตตินัม' ||$category->name=='ផ្លាកទីន' ||$category->name=='Platinum' ?'--':  $category->to_usd_exchange_rate ??0); ?>

                                        <?php endif; ?>
                                    </td>
                                    <td class="credit text-center" style="font-family: 'Khmer OS Siemreap'">
                                        <?php if($category->buying_to_usd_exchange_rate): ?>
                                            <?php echo e($currency_->currency_symbol); ?> <?php echo e($category->name=='แพลตตินัม' ||$category->name=='ផ្លាកទីន' ||$category->name=='Platinum' ?'--':  $category->buying_to_usd_exchange_rate ??0); ?>

                                        <?php endif; ?>

                                    </td>
                                    <td class="credit text-center" style="font-family: 'Khmer OS Siemreap'">
                                        <?php if($category->selling_to_usd_exchange_rate): ?>
                                            <?php echo e($currency_->currency_symbol); ?> <?php echo e($category->name=='แพลตตินัม' ||$category->name=='ផ្លាកទីន' ||$category->name=='Platinum' ?'--':  $category->selling_to_usd_exchange_rate ??0); ?>

                                        <?php endif; ?>
                                    </td>

                                    <?php endif; ?>
                                    
                                    <td>
                                        <?php if($category->is_active == 1): ?>
                                            <label class="badge badge-success">
                                                <?php echo e(__('message.active')); ?>

                                            </label>
                                        <?php else: ?>
                                            <label class="badge badge-danger">
                                                <?php echo e(__('message.deactive')); ?>

                                            </label>
                                        <?php endif; ?>
                                    </td>
                                    <td>






                                        <a href="<?php echo e(route('users.show' , $category->user_id)); ?>?id=<?php echo e($category->id); ?>" class="text-dark" title="<?php echo e(__('message.show user')); ?>">
                                            <?php echo e($category->user->name??''); ?>

                                        </a>

                                    </td>
                                    <td><?php echo e($category->created_at->format('d/m/y H:i')); ?></td>
                                    <td>
                                        <?php if($category->is_active): ?>

                                            <?php if($category->fixed_price==false): ?>
                                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('product-category-edit')): ?>





                                                <?php endif; ?>
                                                <?php if($category->to_usd_exchange_rate>0): ?>
                                                        <a class="btn btn-sm btn-info" id="modal_update_price" data-toggle="modal" data-target=".bd-example-modal-lg<?php echo e($category->id); ?>" href="#"><?php echo e(__('message.update price')); ?></a>
                                                <?php endif; ?>
                                            <?php endif; ?>

                                            <input type="hidden" name="category_id" value="<?php echo e($category); ?>">

                                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('product-category-edit')): ?>
                                                <a class="btn btn-sm btn-info" href="<?php echo e(route('product-category.edit' , $category->id)); ?>"><?php echo e(__('message.edit')); ?></a>
                                            <?php endif; ?>

                                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('product-category-delete')): ?>
                                                <form method="POST" action="<?php echo e(route('product-category.destroy' , $category->id)); ?>" style="display: inline">
                                                <button class="btn btn-sm btn-danger" onclick="return confirm('<?php echo e(__("message.do you want to delete")); ?>')">
                                                    <?php echo e(__('message.delete')); ?>

                                                </button>
                                                <?php echo method_field('DELETE'); ?>
                                                <?php echo csrf_field(); ?>
                                                </form>
                                            <?php endif; ?>
                                        <?php endif; ?>
                                    </td>
                                </tr>
                                <div class="modal fade bd-example-modal-lg<?php echo e($category->id); ?>" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
                                    <div class="modal-dialog modal-lg">
                                        <form action="<?php echo e(route('category.update_price' , $category->id)); ?>">
                                            <div class="modal-content">
                                                <div class="row m-0 text-center" style="height: 40px">
                                                    <div class="col-xs-12 col-md-12 col-xl-12 bg-info text-center">
                                                        <header class="text-center mt-2" style="font-weight: bold;font-size: 18px;color: whitesmoke"><?php echo e(__('message.update price')); ?></header>
                                                    </div>
                                                </div>
                                                <div class="content m-4 " style="font-size: 15px;font-family: 'Khmer OS Siemreap';">
                                                    <div class="row">
                                                        <div class="mt-2 col-xs-2 col-md-2 col-xl-2">
                                                            <?php echo e(__('message.to usd exchange rate')); ?> :
                                                        </div>
                                                        <div class="col-xs-10 col-md-10 col-xl-10 mb-2">
                                                            <input type="text" pattern="^[0-9]*$" id="txtUpdate_price"
                                                                   oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');"
                                                                   name="to_usd_exchange_rate" value="<?php echo e($category->to_usd_exchange_rate); ?>" class="form-control" placeholder="<?php echo e(__('message.to usd exchange rate')); ?>" required>
                                                        </div>
                                                         <div class="mt-2 col-xs-2 col-md-2 col-xl-2">
                                                            <?php echo e(__('message.buying rate')); ?> :
                                                        </div>
                                                        <div class="col-xs-10 col-md-10 col-xl-10 mb-2">
                                                            <input type="text" pattern="^[0-9]*$" id="txtUpdate_price2"
                                                                   oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');"
                                                                   name="buying_to_usd_exchange_rate" value="<?php echo e($category->buying_to_usd_exchange_rate); ?>" class="form-control" placeholder="<?php echo e(__('message.buying rate')); ?>" required>
                                                        </div>
                                                         <div class="mt-2 col-xs-2 col-md-2 col-xl-2">
                                                            <?php echo e(__('message.selling rate')); ?> :
                                                        </div>
                                                        <div class="col-xs-10 col-md-10 col-xl-10 mb-2">
                                                            <input type="text" pattern="^[0-9]*$" id="txtUpdate_price3"
                                                                   oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');"
                                                                   name="selling_to_usd_exchange_rate" value="<?php echo e($category->selling_to_usd_exchange_rate); ?>" class="form-control" placeholder="<?php echo e(__('message.selling rate')); ?>" required>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="footer">

                                                    <div class="row mb-2">
                                                        <div class="col-xs-8 col-md-8 col-xl-8 d-flex align-items-center justify-content-center">
                                                            <a href="<?php echo e(route('category-price-history',$category->id)); ?>" class="mb-0  text-primary fw-bold "><?php echo e(__('message.view price history')); ?></a>
                                                        </div>
                                                        <div class="col-xs-2 col-md-2 col-xl-2 text-right">
                                                            <button type="button" class="btn btn-danger" id="closeModal" data-dismiss="modal"><?php echo e(__('message.close')); ?></button>
                                                        </div>
                                                        <div class="col-xs-2 col-md-2 col-xl-2 text-left">
                                                            <button type="submit" class="btn btn-info" id="btn_update_price" onclick="this.form.submit();this.disabled = true;"><?php echo e(__('message.save')); ?></button>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                        </table>
                        <!-- datatable end -->
                    </div>
                </div>

            </div>
        </div>
        <div class="py-4 mt-4 mx-2 ">
            <!-- Pagination bootstrap-->
                        <?php echo e($productCategories->appends($_GET)->links()); ?>

        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
    <script>
        
        
        
        
        
        
        

        
        
        

        
        
        
        

        $(document).ready(function() {
            $("#js-nav-menu").removeClass('active');
            $("#js-nav-menu li ul li").removeClass('active');
            $("#menu_setup_list").addClass('active open');
            $("#collapse_setup").addClass('collapse in')
            $("#menu_product_category").addClass('active')
        })
    </script>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('meta'); ?>
    <title><?php echo e(__('message.product category')); ?> - <?php echo e($settings_->shop_name); ?></title>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin-main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/jewelry-pos/resources/views/product-categories/index.blade.php ENDPATH**/ ?>

© KUJUNTI.ID