!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/smabpro.picotech.app/public_html/storage/framework/views/   drwxrwxr-x
Free 29.05 GB of 117.98 GB (24.62%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     ae7a2b81c965977f883bfe5132eaa8ff5dd3c96d.php (39.22 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title',trans('layout.item_list')); ?>

<?php $__env->startSection('css'); ?>
<style>
    .modal-content-section.mt-4 {
        overflow-y: scroll;
    }
</style>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('main-content'); ?>
<div class="row page-titles mx-0">
    <div class="col-sm-6 p-md-0">
        <div class="welcome-text">
            <h4><?php echo e(trans('layout.item')); ?></h4>
            <p class="mb-0"><?php echo e(trans('layout.your_item')); ?></p>
        </div>
    </div>
    <div class="col-sm-6 p-md-0 justify-content-sm-end mt-2 mt-sm-0 d-flex">
        <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="#"><?php echo e(trans('layout.home')); ?></a></li>
            <li class="breadcrumb-item active"><a href="javascript:void(0)"><?php echo e(trans('layout.items')); ?></a></li>
        </ol>
    </div>
</div>
<!-- row -->

<div class="row">
    <div class="col-lg-12">
        <div class="card">
            <div class="card-header">
                <h4 class="card-title"><?php echo e(trans('layout.list')); ?></h4>
                <div class="pull-right">
                    <button type="button" class="btn btn-sm btn-primary" data-toggle="modal"
                        data-target="#itemCreateModal">
                        <?php echo e(trans('layout.create')); ?>

                    </button>
                </div>
            </div>
            <div class="card-body">
                <div class="table-responsive">
                    <table class="table table-responsive-md">
                        <thead>
                            <tr>
                                <th><strong><?php echo e(trans('layout.name')); ?></strong></th>
                                <th><strong><?php echo e(trans('layout.restaurant')); ?></strong></th>
                                <th><strong><?php echo e(trans('layout.category')); ?></strong></th>
                                <th><strong><?php echo e(trans('layout.discount')); ?></strong></th>
                                <th><strong><?php echo e(trans('layout.discount_type')); ?></strong></th>
                                <th><strong><?php echo e(trans('layout.tax')); ?></strong></th>
                                <th><strong><?php echo e(trans('layout.price')); ?></strong></th>
                                <th><strong><?php echo e(trans('layout.status')); ?></strong></th>
                                <th></th>
                            </tr>
                        </thead>
                        <tbody>

                            <?php $__currentLoopData $items$__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$item): $__env->incrementLoopIndices(); $loop $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($item->name); ?></td>
                                <td><?php echo e($item->restaurant->name); ?></td>
                                <td><?php echo e($item->category->name); ?></td>
                                <td><?php echo e($item->discount); ?></td>
                                <td><?php echo e($item->discount_type); ?></td>
                                <td>
                                    <?php if($item->tax->title): ?>
                                    <?php echo e($item->tax->title); ?>

                                    (<?php echo e($item->tax->type=='percentage'?formatNumber($item->tax->amount).'%':formatNumberWithCurrSymbol($item->tax->amount)); ?>)
                                    <?php endif; ?>
                                </td>
                                <td><?php echo e($item->price); ?></td>
                                <td>
                                    <?php if($item->status=='active'): ?>
                                    <span class="badge light badge-success"><?php echo e(trans('layout.active')); ?></span>
                                    <?php elseif($item->status=='inactive'): ?>
                                    <span class="badge light badge-warning"><?php echo e(trans('layout.inactive')); ?></span>
                                    <?php endif; ?>
                                </td>
                                <td>
                                    <div class="dropdown">
                                        <button type="button" class="btn btn-success light sharp"
                                            data-toggle="dropdown">
                                            <svg width="20px" height="20px" viewBox="0 0 24 24" version="1.1">
                                                <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                                                    <rect x="0" y="0" width="24" height="24" />
                                                    <circle fill="#000000" cx="5" cy="12" r="2" />
                                                    <circle fill="#000000" cx="12" cy="12" r="2" />
                                                    <circle fill="#000000" cx="19" cy="12" r="2" />
                                                </g>
                                            </svg>
                                        </button>
                                        <div class="dropdown-menu">
                                            <button class="dropdown-item edit_item" data-id="<?php echo e($item->id); ?>"
                                                data-restaurant_id="<?php echo e($item->restaurant_id); ?>"
                                                data-category_id="<?php echo e($item->category_id); ?>"
                                                data-name="<?php echo e($item->name); ?>" data-details="<?php echo e($item->details); ?>"
                                                data-price="<?php echo e($item->price); ?>" data-discount="<?php echo e($item->discount); ?>"
                                                data-discount_type="<?php echo e($item->discount_type); ?>"
                                                data-tax_id="<?php echo e($item->tax_id); ?>" data-status="<?php echo e($item->status); ?>"
                                                data-action="<?php echo e(route('item.update'$item->id)); ?>">
                                                <?php echo e(trans('layout.edit')); ?>

                                            </button>

                                            <button class="dropdown-item" type="button"
                                                data-message="<?php echo e(trans('layout.message.item_delete_warning')); ?>"
                                                data-action='<?php echo e(route('item.destroy',[$item])); ?>'
                                                data-input={"_method":"delete"} data-toggle="modal"
                                                data-target="#modal-confirm"><?php echo e(trans('layout.delete')); ?></button>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <?php endforeach; $__env->popLoop(); $loop $__env->getLastLoop(); ?>

                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>


<!-- Modal Create -->
<?php $__env->startSection('create-modal-id''itemCreateModal'); ?>
<?php $__env
->startSection('create-modal-title''Item Create'); ?>
<?php $__env
->startSection('create-modal-content-wapper'); ?>
<form method="POST" action="<?php echo e(route('item.store')); ?>" enctype="multipart/form-data">
    <?php echo csrf_field(); ?>
    <div class="modal-body">
        <div class="custom-tab-1">
            <ul class="nav nav-tabs">
                <li class="nav-item">
                    <a class="nav-link active" data-toggle="tab" href="#basic"><i
                            class="la la-border-all mr-2"></i><?php echo e(trans('layout.basic')); ?></a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" data-toggle="tab" href="#extra"><i class="la la-plus-square mr-2"></i>
                        <?php echo e(trans('layout.extra')); ?></a>
                </li>
            </ul>

            <div class="tab-content">
                <div class="tab-pane fade active show" id="basic" role="tabpanel">
                    <div class="pt-4">
                        <div>
                            <section>
                                <div class="row">
                                    <!-- Restaurant -->
                                    <div class="col-lg-6 mb-2">
                                        <div class="form-group">
                                            <label class="text-label"><?php echo e(trans('layout.restaurant')); ?>*</label>
                                            <select name="restaurant_id" class="form-control" required>
                                                <?php $__currentLoopData $restaurants$__env->addLoop($__currentLoopData); foreach($__currentLoopData as $restaurant): $__env->incrementLoopIndices(); $loop $__env->getLastLoop(); ?>
                                                <option value="<?php echo e($restaurant->id); ?>"><?php echo e($restaurant->name); ?></option>
                                                <?php endforeach; $__env->popLoop(); $loop $__env->getLastLoop(); ?>
                                            </select>
                                        </div>
                                    </div>

                                    <!-- Category -->
                                    <div class="col-lg-6 mb-2">
                                        <div class="form-group">
                                            <label class="text-label"><?php echo e(trans('layout.category')); ?>*</label>
                                            <div class="pull-right">
                                                <a class="btn-info btn btn-xs mb-1"
                                                    href="<?php echo e(route('category.create')); ?>"><?php echo e(trans('layout.new')); ?></a>
                                            </div>
                                            <select name="category_id" class="form-control" required>
                                                <?php $__currentLoopData $categories$__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop $__env->getLastLoop(); ?>
                                                <option value="<?php echo e($category->id); ?>"><?php echo e($category->name); ?></option>
                                                <?php endforeach; $__env->popLoop(); $loop $__env->getLastLoop(); ?>
                                            </select>
                                        </div>
                                    </div>

                                    <!-- Item Name -->
                                    <div class="col-lg-6 mb-2">
                                        <div class="form-group">
                                            <label class="text-label"><?php echo e(trans('layout.item_name')); ?>*</label>
                                            <input type="text" name="name" class="form-control" placeholder="Ex: Burger"
                                                required>
                                        </div>
                                    </div>

                                    <!-- Item Details -->
                                    <div class="col-lg-6 mb-2">
                                        <div class="form-group">
                                            <label class="text-label"><?php echo e(trans('layout.item_details')); ?></label>
                                            <input type="text" name="details" class="form-control"
                                                placeholder="Ex: A great burger">
                                        </div>
                                    </div>

                                    <!-- Price -->
                                    <div class="col-lg-6 mb-2">
                                        <div class="form-group">
                                            <label class="text-label"><?php echo e(trans('layout.price')); ?>*</label>
                                            <input type="number" name="price" min="0" step="0.001" class="form-control"
                                                placeholder="Ex: 20" required>
                                        </div>
                                    </div>

                                    <!-- Tax -->
                                    <div class="col-lg-6 mb-2">
                                        <div class="form-group">
                                            <label class="text-label"><?php echo e(trans('layout.tax')); ?></label>
                                            <select name="tax_id" class="form-control">
                                                <option value=""><?php echo e(trans('layout.select_tax')); ?></option>
                                                <?php $__currentLoopData $taxes$__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tax): $__env->incrementLoopIndices(); $loop $__env->getLastLoop(); ?>
                                                <option value="<?php echo e($tax->id); ?>">
                                                    <?php echo e($tax->title); ?> (<?php echo e($tax->type == 'flat' ?
                                                    
formatNumberWithCurrSymbol($tax->amount) :
                                                    
formatNumber($tax->amount) . '%'); ?>)
                                                </option>
                                                <?php endforeach; $__env->popLoop(); $loop $__env->getLastLoop(); ?>
                                            </select>
                                        </div>
                                    </div>

                                    <!-- Discount -->
                                    <div class="col-lg-6 mb-2">
                                        <div class="form-group">
                                            <label class="text-label"><?php echo e(trans('layout.discount')); ?>*</label>
                                            <input type="number" name="discount" min="0" step="0.001"
                                                class="form-control" placeholder="Ex: 5" required>
                                        </div>
                                    </div>

                                    <!-- Discount Type -->
                                    <div class="col-lg-6 mb-2">
                                        <div class="form-group">
                                            <label class="text-label"><?php echo e(trans('layout.discount_type')); ?>*</label>
                                            <select name="discount_type" class="form-control" required>
                                                <option value="flat"><?php echo e(trans('layout.flat')); ?></option>
                                                <option value="percent"><?php echo e(trans('layout.percent')); ?></option>
                                            </select>
                                        </div>
                                    </div>

                                    <!-- Item Image -->
                                    <div class="col-lg-6 mb-2">
                                        <label class="text-label"><?php echo e(trans('layout.item_image')); ?></label>
                                        <div class="input-group">
                                            <div class="custom-file">
                                                <input name="item_image" type="file" class="custom-file-input" required>
                                                <label class="custom-file-label"><?php echo e(trans('layout.choose')); ?></label>
                                            </div>
                                        </div>
                                    </div>

                                    <!-- Status -->
                                    <div class="col-lg-6 mb-2">
                                        <div class="form-group">
                                            <label class="text-label"><?php echo e(trans('layout.status')); ?>*</label>
                                            <select name="status" class="form-control" required>
                                                <option value="active"><?php echo e(trans('layout.active')); ?></option>
                                                <option value="inactive"><?php echo e(trans('layout.inactive')); ?></option>
                                            </select>
                                        </div>
                                    </div>

                                </div>
                            </section>
                        </div>
                    </div>
                </div>
                <div class="tab-pane fade" id="extra">
                    <div class="pt-4">
                        <h4><?php echo e(trans('layout.item_extra')); ?></h4>
                      <?php
                      $section_count 
=999;
                      
?>
                        <div class="row" id="extraSection<?php echo e($section_count); ?>">

                            <div class="col-lg-4 mb-2">
                                <div class="form-group row">
                                    <div class="col-sm-12">
                                        <input name="extra_title[]" type="text" value=""
                                            class="form-control" placeholder="<?php echo e(trans('layout.add_extra_name')); ?>">
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 mb-2">
                                <div class="form-group row">
                                    <div class="col-sm-12">
                                        <input name="extra_price[]" type="number"
                                            step="0.0001" min="0" class="form-control"
                                            placeholder="<?php echo e(trans('layout.enter_price')); ?>">
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 mb-2">
                                <div class="form-group row">
                                    <div class="col-sm-12">
                                        <select name="extra_status[]" class="form-control">
                                            <option value="active"><?php echo e(trans('layout.active')); ?></option>
                                            <option value="inactive"><?php echo e(trans('layout.inactive')); ?></option>
                                        </select>
                                    </div>
                                </div>

                            </div>
                            <div class="col-lg-2 mb-2">
                                <div class="form-group row mt-2">
                                    <button data-section="<?php echo e($section_count); ?>" type="button"
                                        class="btn btn-xs btn-danger delete-extra"><i class="la la-trash"></i>
                                    </button>
                                </div>
                            </div>

                        </div>
                 

                        <div id="extraItemAddSection"></div>
                        <div class="row">
                            <div class="col-lg-2 mb-2">
                                <button type="button"
                                    class="btn btn-xs btn-info add_extra"><?php echo e(trans('layout.add_extra')); ?></button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo e(trans('layout.close')); ?></button>
        <button type="submit" class="btn btn-primary"><?php echo e(trans('layout.submit')); ?></button>
    </div>
</form>
<?php $__env->stopSection(); ?>



<!-- Modal Edit -->
<?php $__env->startSection('edit-modal-id''itemEditModal'); ?>
<?php $__env
->startSection('edit-modal-title''Item Edit'); ?>
<?php $__env
->startSection('edit-modal-content-wapper'); ?>
<form method="POST" id="itemFormUpdate" enctype="multipart/form-data">
    <?php echo csrf_field(); ?>
    <?php echo method_field('PUT'); ?>
    <input type="hidden" name="id" id="edit-item-id">

    <div class="modal-body">
        <div class="custom-tab-1">
            <ul class="nav nav-tabs">
                <li class="nav-item">
                    <a class="nav-link active" data-toggle="tab" href="#edit-basic"><i
                            class="la la-border-all mr-2"></i><?php echo e(trans('layout.basic')); ?></a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" data-toggle="tab" href="#edit-extra"><i class="la la-plus-square mr-2"></i>
                        <?php echo e(trans('layout.extra')); ?></a>
                </li>
            </ul>

            <div class="tab-content">
                <div class="tab-pane fade active show" id="edit-basic" role="tabpanel">
                    <div class="pt-4">
                        <div>
                            <section>
                                <div class="row">

                                    <div class="col-lg-6 mb-2">
                                        <div class="form-group">
                                            <label class="text-label"><?php echo e(trans('layout.restaurant')); ?>*</label>
                                            <select name="restaurant_id" id="edit-item-restaurant-id"
                                                class="form-control" required>
                                                <?php $__currentLoopData $restaurants$__env->addLoop($__currentLoopData); foreach($__currentLoopData as $restaurant): $__env->incrementLoopIndices(); $loop $__env->getLastLoop(); ?>
                                                <option value="<?php echo e($restaurant->id); ?>"><?php echo e($restaurant->name); ?></option>
                                                <?php endforeach; $__env->popLoop(); $loop $__env->getLastLoop(); ?>
                                            </select>
                                        </div>
                                    </div>


                                    <div class="col-lg-6 mb-2">
                                        <div class="form-group">
                                            <label class="text-label"><?php echo e(trans('layout.category')); ?>*</label>
                                            <select name="category_id" id="edit-item-category-id" class="form-control"
                                                required>
                                                <?php $__currentLoopData $categories$__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop $__env->getLastLoop(); ?>
                                                <option value="<?php echo e($category->id); ?>"><?php echo e($category->name); ?></option>
                                                <?php endforeach; $__env->popLoop(); $loop $__env->getLastLoop(); ?>
                                            </select>
                                        </div>
                                    </div>


                                    <div class="col-lg-6 mb-2">
                                        <div class="form-group">
                                            <label class="text-label"><?php echo e(trans('layout.item_name')); ?>*</label>
                                            <input type="text" name="name" id="edit-item-name" class="form-control"
                                                required>
                                        </div>
                                    </div>

                                    <div class="col-lg-6 mb-2">
                                        <div class="form-group">
                                            <label class="text-label"><?php echo e(trans('layout.item_details')); ?></label>
                                            <input type="text" name="details" id="edit-item-details"
                                                class="form-control">
                                        </div>
                                    </div>

                                    <div class="col-lg-6 mb-2">
                                        <div class="form-group">
                                            <label class="text-label"><?php echo e(trans('layout.price')); ?>*</label>
                                            <input type="number" name="price" id="edit-item-price" min="0" step="0.001"
                                                class="form-control" required>
                                        </div>
                                    </div>

                                    <div class="col-lg-6 mb-2">
                                        <div class="form-group">
                                            <label class="text-label"><?php echo e(trans('layout.tax')); ?></label>
                                            <select name="tax_id" id="edit-item-tax" class="form-control">
                                                <option value=""><?php echo e(trans('layout.select_tax')); ?></option>
                                                <?php $__currentLoopData $taxes$__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tax): $__env->incrementLoopIndices(); $loop $__env->getLastLoop(); ?>
                                                <option value="<?php echo e($tax->id); ?>">
                                                    <?php echo e($tax->title); ?> (<?php echo e($tax->type == 'flat' ?
                                                    
formatNumberWithCurrSymbol($tax->amount) :
                                                    
formatNumber($tax->amount) . '%'); ?>)
                                                </option>
                                                <?php endforeach; $__env->popLoop(); $loop $__env->getLastLoop(); ?>
                                            </select>
                                        </div>
                                    </div>


                                    <div class="col-lg-6 mb-2">
                                        <div class="form-group">
                                            <label class="text-label"><?php echo e(trans('layout.discount')); ?>*</label>
                                            <input type="number" name="discount" id="edit-item-discount" min="0"
                                                step="0.001" class="form-control" required>
                                        </div>
                                    </div>


                                    <div class="col-lg-6 mb-2">
                                        <div class="form-group">
                                            <label class="text-label"><?php echo e(trans('layout.discount_type')); ?>*</label>
                                            <select name="discount_type" id="edit-item-discount-type"
                                                class="form-control" required>
                                                <option value="flat"><?php echo e(trans('layout.flat')); ?></option>
                                                <option value="percent"><?php echo e(trans('layout.percent')); ?></option>
                                            </select>
                                        </div>
                                    </div>


                                    <div class="col-lg-6 mb-2">
                                        <label class="text-label"><?php echo e(trans('layout.item_image')); ?></label>
                                        <div class="input-group">
                                            <div class="custom-file">
                                                <input name="item_image" type="file" class="custom-file-input">
                                                <label class="custom-file-label"><?php echo e(trans('layout.choose')); ?></label>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="col-lg-6 mb-2">
                                        <div class="form-group">
                                            <label class="text-label"><?php echo e(trans('layout.status')); ?>*</label>
                                            <select name="status" id="edit-item-status" class="form-control" required>
                                                <option value="active"><?php echo e(trans('layout.active')); ?></option>
                                                <option value="inactive"><?php echo e(trans('layout.inactive')); ?></option>
                                            </select>
                                        </div>
                                    </div>

                                </div>
                            </section>
                        </div>

                    </div>
                </div>
                <div class="tab-pane fade" id="edit-extra">
                    <div class="pt-4">
                        <h4><?php echo e(trans('layout.item_extra')); ?></h4>
                        <?php if(isset($item)): ?>
                        <?php $__currentLoopData $item->extras$__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$extra): $__env->incrementLoopIndices(); $loop $__env->getLastLoop(); ?>
                        <div class="row" id="editExtraSection<?php echo e($key); ?>">

                            <div class="col-lg-4 mb-2">
                                <div class="form-group row">
                                    <div class="col-sm-12">
                                        <input name="extra_title[]" type="text" value="<?php echo e($extra->title); ?>"
                                            class="form-control" placeholder="<?php echo e(trans('layout.add_extra_name')); ?>">
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 mb-2">
                                <div class="form-group row">
                                    <div class="col-sm-12">
                                        <input name="extra_price[]" type="number" value="<?php echo e($extra->price); ?>"
                                            step="0.0001" min="0" class="form-control"
                                            placeholder="<?php echo e(trans('layout.enter_price')); ?>">
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 mb-2">
                                <div class="form-group row">
                                    <div class="col-sm-12">
                                        <select name="extra_status[]" class="form-control">
                                            <option <?php echo e($extra->status=='active'?'selected':''); ?>

                                                value="active"><?php echo e(trans('layout.active')); ?></option>
                                            <option <?php echo e($extra->status=='inactive'?'selected':''); ?>

                                                value="inactive"><?php echo e(trans('layout.inactive')); ?></option>
                                        </select>
                                    </div>
                                </div>

                            </div>
                            <div class="col-lg-2 mb-2">
                                <div class="form-group row mt-2">
                                    <button data-section="<?php echo e($key); ?>" type="button"
                                        class="btn btn-xs btn-danger delete-extra"><i class="la la-trash"></i>
                                    </button>
                                </div>
                            </div>

                        </div>
                        <?php endforeach; $__env->popLoop(); $loop $__env->getLastLoop(); ?>
                        <?php endif; ?>

                        <div id="editExtraItemAddSection"></div>
                        <div class="row">
                            <div class="col-lg-2 mb-2">
                                <button type="button"
                                    class="btn btn-xs btn-info edit_add_extra"><?php echo e(trans('layout.add_extra')); ?></button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo e(trans('layout.close')); ?></button>
        <button type="submit" class="btn btn-primary"><?php echo e(trans('layout.submit')); ?></button>
    </div>
</form>
<?php $__env->stopSection(); ?>


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

<?php $__env->startSection('js'); ?>
<script>
    $(document).on('click', '.edit_item', function () {
    const id = $(this).data('id');
    const restaurant_id = $(this).data('restaurant_id');
    const category_id = $(this).data('category_id');
    const name = $(this).data('name');
    const details = $(this).data('details');
    const price = $(this).data('price');
    const discount = $(this).data('discount');
    const discount_type = $(this).data('discount_type');
    const tax_id = $(this).data('tax_id');
    const status = $(this).data('status');

    const action = $(this).data('action');
    $('#itemFormUpdate').attr('action', action);
    $('#edit-item-id').val(id);
    $('#edit-item-restaurant-id').val(restaurant_id).trigger('change');
    $('#edit-item-category-id').val(category_id).trigger('change');
    $('#edit-item-name').val(name);
    $('#edit-item-details').val(details);
    $('#edit-item-price').val(price);
    $('#edit-item-discount').val(discount);
    $('#edit-item-discount-type').val(discount_type).trigger('change');
    $('#edit-item-tax').val(tax_id).trigger('change');
    $('#edit-item-status').val(status).trigger('change');
    $('#itemEditModal').modal('show');
});


</script>

<script>
    let extraCount=1;
    $(document).on('click','.add_extra',function(e){
        e.preventDefault();
        const html=`<div class="row" id="extraSection${extraCount}">
                <div class="col-lg-4 mb-2">
                    <div class="form-group row">
                        <div class="col-sm-12">
                            <input name="extra_title[]" type="text" class="form-control" placeholder="<?php echo e(trans('layout.add_extra_name')); ?>">
                        </div>
                    </div>
                </div>
                <div class="col-lg-3 mb-2">
                    <div class="form-group row">
                        <div class="col-sm-12">
                            <input name="extra_price[]" step="0.0001"  type="number" min="0" class="form-control" placeholder="<?php echo e(trans('layout.enter_price')); ?>">
                        </div>
                    </div>
                </div>
                <div class="col-lg-3 mb-2">
                    <div class="form-group row">
                        <div class="col-sm-12">
                            <select name="extra_status[]" class="form-control">
                                <option value="active"><?php echo e(trans('layout.active')); ?></option>
                                <option value="inactive"><?php echo e(trans('layout.inactive')); ?></option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="col-lg-2 mb-2">
                    <div class="form-group row mt-2">
                            <button data-section=${extraCount} type="button" class="btn btn-xs btn-danger delete-extra"><i class="la la-trash"></i></button>
                    </div>
                </div>
            </div>`;

        $('#extraItemAddSection').append(html);
        extraCount++;
    });
    $(document).on('click','.delete-extra',function(e){
        e.preventDefault();
        const sectionId=$(this).attr('data-section');
        $('#extraSection'+sectionId).remove();
    })
</script>
<script>
    let editExtraCount=99;
    $(document).on('click','.edit_add_extra',function(e){
        e.preventDefault();
        const edit_html=`<div class="row" id="editExtraSection${editExtraCount}">
                <div class="col-lg-4 mb-2">
                    <div class="form-group row">
                        <div class="col-sm-12">
                            <input name="extra_title[]" type="text" class="form-control" placeholder="<?php echo e(trans('layout.add_extra_name')); ?>">
                        </div>
                    </div>
                </div>
                <div class="col-lg-3 mb-2">
                    <div class="form-group row">
                        <div class="col-sm-12">
                            <input name="extra_price[]" step="0.0001"  type="number" min="0" class="form-control" placeholder="<?php echo e(trans('layout.enter_price')); ?>">
                        </div>
                    </div>
                </div>
                <div class="col-lg-3 mb-2">
                    <div class="form-group row">
                        <div class="col-sm-12">
                            <select name="extra_status[]" class="form-control">
                                <option value="active"><?php echo e(trans('layout.active')); ?></option>
                                <option value="inactive"><?php echo e(trans('layout.inactive')); ?></option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="col-lg-2 mb-2">
                    <div class="form-group row mt-2">
                            <button edit-data-section=${editExtraCount} type="button" class="btn btn-xs btn-danger edit-delete-extra"><i class="la la-trash"></i></button>
                    </div>
                </div>
            </div>`;

        $('#editExtraItemAddSection').append(edit_html);
        editExtraCount++;
    });
    $(document).on('click','.edit-delete-extra',function(e){
        e.preventDefault();
        const editSectionId=$(this).attr('edit-data-section');
        $('#editExtraSection'+editSectionId).remove();
    })
</script>

<?php $__env->stopSection(); ?>
<?php 
echo $__env->make('layouts.dashboard'\Illuminate\Support\Arr::except(get_defined_vars(), ['__data''__path']))->render(); ?><?php /**PATH /home/picotech/domains/qr.picotech.app/public_html/resources/views/item/index.blade.php ENDPATH**/ ?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0054 ]--