⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.220
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Server Software:
Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.25
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
erp.dev-unit.com
/
storage
/
framework
/
views
/
View File Name :
1c2da1fcda579d54d6e89b52d1909244.php
<?php $__env->startSection('page-title'); ?> <?php echo e(__('Item Detail')); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('page-breadcrumb'); ?> <?php echo e(__('Item')); ?> , <?php echo e(__('Item Details')); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('page-action'); ?> <div> <?php echo $__env->yieldPushContent('addButtonHook'); ?> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="row"> <div class="col-sm-12"> <div class="row"> <div class="col-xl-3"> <div class="card sticky-top" style="top:30px"> <div class="list-group list-group-flush" id="useradd-sidenav"> <a href="#useradd-0" class="list-group-item list-group-item-action border-0 active"><?php echo e(__('Overview')); ?> <div class="float-end"><i class="ti ti-chevron-right"></i></div></a> <a href="#useradd-1" class="list-group-item list-group-item-action border-0 services <?php echo e($productService->type == 'service' ? 'd-none' : ''); ?>"><?php echo e(__('Vendors')); ?> <div class="float-end"><i class="ti ti-chevron-right"></i></div> </a> <a href="#useradd-2" class="list-group-item list-group-item-action border-0 services <?php echo e($productService->type == 'service' ? 'd-none' : ''); ?>"><?php echo e(__('Purchases')); ?> <div class="float-end"><i class="ti ti-chevron-right"></i></div> </a> <a href="#useradd-3" class="list-group-item list-group-item-action border-0 services <?php echo e($productService->type == 'service' ? 'd-none' : ''); ?>"><?php echo e(__('Warehouse')); ?> <div class="float-end"><i class="ti ti-chevron-right"></i></div> </a> <a href="#useradd-4" class="list-group-item list-group-item-action border-0"><?php echo e(__('Reports')); ?> <div class="float-end"><i class="ti ti-chevron-right"></i></div></a> <a href="#useradd-5" class="list-group-item list-group-item-action border-0"><?php echo e(__('Log Time')); ?> <div class="float-end"><i class="ti ti-chevron-right"></i></div></a> </div> </div> </div> <div class="col-xl-9"> <div id="useradd-0"> <ul class="nav nav-pills nav-fill cust-nav information-tab" id="pills-tab" role="tablist"> <li class="nav-item" role="presentation"> <button class="nav-link active" id="item_details" data-bs-toggle="pill" data-bs-target="#details-tab" type="button"><?php echo e(__('Details')); ?></button> </li> <li class="nav-item" role="presentation"> <button class="nav-link" id="item_pricing" data-bs-toggle="pill" data-bs-target="#pricing-tab" type="button"><?php echo e(__('Pricing')); ?></button> </li> <li class="nav-item" role="presentation"> <button class="nav-link" id="item_image" data-bs-toggle="pill" data-bs-target="#media-tab" type="button"><?php echo e(__('Images')); ?></button> </li> </ul> <div class="row"> <div class="col-sm-12"> <div class="row"> <div class="col-lg-12"> <div class="tab-content" id="pills-tabContent"> <div class="tab-pane fade active show" id="details-tab" role="tabpanel" aria-labelledby="pills-user-tab-1"> <div class="row"> <div class="col-lg-6 mt-3"> <div class="card"> <div class="card-body text-center"> <div class="card_img text-center"> <?php if (check_file($productService->image) == false) { $path = asset('packages/workdo/ProductService/src/Resources/assets/image/img01.jpg'); } else { $path = get_file($productService->image); } ?> <img class="img_setting seo_image" src="<?php echo e($path); ?>" alt="<?php echo e($path); ?>"> </div> <h6 class="mt-3 text-center"> <?php echo e($productService->name); ?> </h6> </div> </div> </div> <div class="col-6 d-flex mt-3"> <div class="card"> <div class="card-body"> <h5><?php echo e(__('Details')); ?></h5> <div class="row mt-4"> <dt class="col-lg-4 h6 text-lg"><?php echo e(__('Name')); ?> </dt> <dd class="col-lg-8 text-lg"> <?php echo e($productService->name); ?> </dd> <dt class="col-lg-4 h6 text-lg"><?php echo e(__('SKU')); ?> </dt> <dd class="col-lg-8 text-lg"> <?php echo e($productService->sku); ?> </dd> <?php if($productService->type == 'product' || 'parts'): ?> <dt class="col-lg-4 h6 text-lg"> <?php echo e(__('Quantity')); ?></dt> <dd class="col-lg-8 text-lg"> <?php echo e($productService->quantity); ?> </dd> <?php else: ?> - <?php endif; ?> <dt class="col-lg-4 h6 text-lg"><?php echo e(__('Tax')); ?> </dt> <?php $tax_id = explode(',', $productService->tax_id); $tax_names = \Workdo\ProductService\Entities\Tax::whereIn('id', $tax_id)->get(); ?> <dd class="col-lg-8 text-lg"> <?php $__currentLoopData = $tax_names; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tax_name): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php echo e($tax_name->name); ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </dd> <dt class="col-lg-4 h6 text-lg"> <?php echo e(__('Description')); ?></dt> <dd class="col-lg-8 text-lg"> <?php echo e($productService->description); ?> </dd> </div> </div> </div> </div> </div> </div> <div class="tab-pane fade" id="pricing-tab" role="tabpanel" aria-labelledby="pills-user-tab-2"> <div class="row"> <div class="col-6 mt-5"> <div class="card"> <div class="card-body"> <div class="row mt-4"> <dt class="col-lg-4 h6 text-lg"> <?php echo e(__('Purchase Price')); ?> </dt> <dd class="col-lg-8 text-lg"> <?php echo e($productService->purchase_price); ?> </dd> <dt class="col-lg-4 h6 text-lg"> <?php echo e(__('Unit')); ?> </dt> <dd class="col-lg-8 text-lg"> <?php echo e(optional($productService->units)->name ??''); ?> </dd> <dt class="col-lg-4 h6 text-lg"> <?php echo e(__('Sale Price')); ?> </dt> <dd class="col-lg-8 text-lg"> <?php echo e($productService->sale_price); ?> </dd> </div> </div> </div> </div> </div> </div> <div class="tab-pane fade" id="media-tab" role="tabpanel" aria-labelledby="pills-user-tab-3"> </div> </div> </div> </div> </div> </div> </div> <div id="useradd-1" class="<?php echo e($productService->type == 'service' ? 'd-none' : ''); ?>"> <div id="item_vendor" class=""> <div class=""> <div class="col-md-12 mt-3"> <div class="card"> <div class="card-header"> <div class="row"> <div class="col-11"> <h5 class=""> <?php echo e(__('Vendors')); ?> </h5> </div> <div class="col-1 text-end"> <a class="btn btn-sm btn-primary" data-ajax-popup="true" data-size="lg" data-title="<?php echo e(__('Create Vendor')); ?>" data-url="<?php echo e(route('vendors.create')); ?>" data-bs-toggle="tooltip" data-bs-original-title="<?php echo e(__('Create')); ?>"> <i class="ti ti-plus"></i> </a> </div> </div> </div> <div class="card-body"> <table class="table mb-0 "> <thead> <tr> <th> <?php echo e(__('Name')); ?></th> <th scope="col"><?php echo e(__('Email')); ?></th> <th width="10%"> <?php echo e(__('Action')); ?></th> </tr> </thead> <tbody> <?php $__empty_1 = true; $__currentLoopData = $vendors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $vendor): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <tr> <td class="font-style"><?php echo e($vendor->name); ?></td> <td class="font-style"><?php echo e($vendor->email); ?></td> <td class="Action"> <span> <?php if (app('laratrust')->hasPermission('vendor edit')) : ?> <div class="action-btn me-2"> <a class="mx-3 btn btn-sm align-items-center bg-info" data-url="<?php echo e(route('vendors.edit', $vendor['id'])); ?>" data-ajax-popup="true" data-size="lg" data-bs-toggle="tooltip" title="" data-title="<?php echo e(__('Edit Vendor')); ?>" data-bs-original-title="<?php echo e(__('Edit')); ?>"> <i class="ti ti-pencil text-white"></i> </a> </div> <?php endif; // app('laratrust')->permission ?> <?php if(!empty($vendor['vendor_id'])): ?> <?php if (app('laratrust')->hasPermission('vendor delete')) : ?> <div class="action-btn"> <?php echo e(Form::open(['route' => ['vendors.destroy', $vendor['id']], 'class' => 'm-0'])); ?> <?php echo method_field('DELETE'); ?> <a class="mx-3 btn btn-sm align-items-center bs-pass-para show_confirm bg-danger" data-bs-toggle="tooltip" title="" data-bs-original-title="Delete" aria-label="Delete" data-confirm="<?php echo e(__('Are You Sure?')); ?>" data-text="<?php echo e(__('This action can not be undone. Do you want to continue?')); ?>" data-confirm-yes="delete-form-<?php echo e($vendor['id']); ?>"><i class="ti ti-trash text-white text-white"></i></a> <?php echo e(Form::close()); ?> </div> <?php endif; // app('laratrust')->permission ?> <?php endif; ?> </span> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php echo $__env->make('layouts.nodatafound', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php endif; ?> </tbody> </table> </div> </div> </div> </div> </div> </div> <div id="useradd-2" class="<?php echo e($productService->type == 'service' ? 'd-none' : ''); ?>"> <div id="item_purchase" class=""> <div class=""> <div class="col-md-12"> <div class="card"> <div class="card-header"> <div class="row"> <div class="col-11"> <h5 class=""> <?php echo e(__('Purchases')); ?> </h5> </div> <div class="col-1 text-end"> <a href="<?php echo e(route('purchases.create', 0)); ?>" class="btn btn-sm btn-primary" data-bs-toggle="tooltip" title="<?php echo e(__('Create')); ?>"> <i class="ti ti-plus"></i> </a> </div> </div> </div> <div class="card-body"> <table class="table mb-0 "> <thead> <tr> <th> <?php echo e(__('Vendor')); ?></th> <th> <?php echo e(__('Purchase Date')); ?></th> <th width="10%"> <?php echo e(__('Action')); ?></th> </tr> </thead> <tbody> <?php $__empty_1 = true; $__currentLoopData = $purchases; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $purchase): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <tr> <td><?php echo e(!empty($purchase->user->name)?$purchase->user->name:''); ?></td> <td class="font-style"> <?php echo e(company_date_formate($purchase->purchase_date)); ?> </td> <td class="Action"> <span> <?php if (app('laratrust')->hasPermission('purchase edit')) : ?> <div class="action-btn me-2"> <a href="<?php echo e(route('purchases.edit', \Crypt::encrypt($purchase->id))); ?>" class="mx-3 btn btn-sm align-items-center bg-info" data-bs-toggle="tooltip" title="Edit" data-original-title="<?php echo e(__('Edit')); ?>"> <i class="ti ti-pencil text-white"></i> </a> </div> <?php endif; // app('laratrust')->permission ?> <?php if (app('laratrust')->hasPermission('purchase delete')) : ?> <div class="action-btn"> <?php echo Form::open([ 'method' => 'DELETE', 'route' => ['purchases.destroy', $purchase->id], 'class' => 'delete-form-btn', 'id' => 'delete-form-' . $purchase->id, ]); ?> <a href="#" class="mx-3 btn btn-sm align-items-center show_confirm bg-danger" data-bs-toggle="tooltip" title="<?php echo e(__('Delete')); ?>" data-original-title="<?php echo e(__('Delete')); ?>" data-confirm="<?php echo e(__('Are You Sure?')); ?>" data-confirm-yes="document.getElementById('delete-form-<?php echo e($purchase->id); ?>').submit();"> <i class="ti ti-trash text-white"></i> </a> <?php echo Form::close(); ?> </div> <?php endif; // app('laratrust')->permission ?> </span> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php echo $__env->make('layouts.nodatafound', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php endif; ?> </tbody> </table> </div> </div> </div> </div> </div> </div> <div id="useradd-3" class="<?php echo e($productService->type == 'service' ? 'd-none' : ''); ?>"> <div class="card "> <div class="card-body table-border-style full-card"> <div class="table-responsive"> <table class="table"> <thead> <tr> <th><?php echo e(__('Warehouse')); ?></th> <th><?php echo e(__('Quantity')); ?></th> </tr> </thead> <tbody> <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if(!empty($product->warehouse())): ?> <tr> <td><?php echo e(!empty($product->warehouse())?$product->warehouse()->name:'-'); ?></td> <td><?php echo e($product->quantity); ?></td> </tr> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div> </div> </div> <div id="useradd-4"> <div class="card"> <div class="card-header"> <h5 class="mb-0"><?php echo e(__('Reports')); ?></h5> </div> <div class="card-body"> <div class="row"> <?php if($productService->type == 'product' ): ?> <div class="col-lg-4 col-md-6"> <div class="card"> <div class="card-body"> <div class="row align-items-center justify-content-between"> <div class="col-auto mb-3 mb-sm-0"> <div class="d-flex align-items-center"> <div class="theme-avtar badge bg-warning"> <i class="ti ti-shopping-cart"></i> </div> <div class="ms-3"> <small class="text-muted"><?php echo e(__('Total')); ?></small> <h6 class="m-0"><?php echo e(__('Product Sold')); ?></h6> </div> </div> </div> <div class="col-auto text-end"> <h4 class="m-0"><?php echo e($total_sold); ?></h4> </div> </div> </div> </div> </div> <?php elseif($productService->type == 'parts'): ?> <div class="col-lg-4 col-md-6"> <div class="card"> <div class="card-body"> <div class="row align-items-center justify-content-between"> <div class="col-auto mb-3 mb-sm-0"> <div class="d-flex align-items-center"> <div class="theme-avtar badge bg-warning"> <i class="ti ti-shopping-cart"></i> </div> <div class="ms-3"> <small class="text-muted"><?php echo e('Total'); ?></small> <h6 class="m-0"><?php echo e(__('Parts Used')); ?></h6> </div> </div> </div> <div class="col-auto text-end"> <h4 class="m-0"><?php echo e($total_products_use); ?></h4> </div> </div> </div> </div> </div> <?php endif; ?> <div class="col-lg-4 col-md-6"> <div class="card"> <div class="card-body"> <div class="row align-items-center justify-content-between"> <div class="col-auto mb-3 mb-sm-0"> <div class="d-flex align-items-center"> <div class="theme-avtar badge bg-primary"> <i class="ti ti-shopping-cart"></i> </div> <div class="ms-3"> <small class="text-muted"><?php echo e('Total'); ?></small> <h6 class="m-0"><?php echo e('Cost'); ?></h6> </div> </div> </div> <div class="col-auto text-end"> <h4 class="m-0"> <?php echo e(!empty($total_cost->total_cost) ? $total_cost->total_cost : 0); ?> </h4> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div id="useradd-5"> <div class="card"> <div class="card-header"> <div class="row"> <div class="col-lg-10 col-md-10 col-sm-10"> <h5 class="mb-0"><?php echo e(__('Log Time')); ?></h5> </div> <div class="col-lg-2 col-md-2 col-sm-2 text-end"> <div class="float-end"> <a class="btn btn-sm btn-primary" data-ajax-popup="true" data-size="md" data-title="<?php echo e(__('Create Log Time')); ?>" data-url="<?php echo e(route('productslogtime.create', ['product_id' => $productService->id])); ?>" data-toggle="tooltip" title="<?php echo e(__('Create')); ?>"> <i class="ti ti-plus text-white"></i> </a> </div> </div> </div> </div> <div class="card-body"> <table class="table dataTable3"> <thead> <tr> <th><?php echo e(__('Description')); ?></th> <th class="text-end"><?php echo e(__('Action')); ?></th> </tr> </thead> <tbody> <?php $__currentLoopData = $productslogtime; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $partslogtime_val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td class="text-wrap text-break"> <i class="ti ti-clock"></i><?php echo e(company_date_formate($partslogtime_val->date)); ?> - <?php echo e($partslogtime_val->description); ?> </td> <td class="Action text-end"> <span> <div class="action-btn me-2"> <a class="mx-3 btn btn-sm align-items-center bg-info" data-url="<?php echo e(route('productslogtime.edit', $partslogtime_val->id)); ?>" data-ajax-popup="true" data-size="md" data-bs-toggle="tooltip" title="" data-title="<?php echo e(__('Edit Log Time')); ?>" data-bs-original-title="<?php echo e(__('Edit')); ?>"> <i class="ti ti-pencil text-white"></i> </a> </div> <div class="action-btn"> <?php echo Form::open([ 'method' => 'DELETE', 'route' => ['productslogtime.destroy', $partslogtime_val->id], 'class' => 'delete-form-btn', 'id' => 'delete-form-' . $partslogtime_val->id, ]); ?> <a href="#" class="mx-3 btn btn-sm align-items-center show_confirm bg-danger" data-bs-toggle="tooltip" title="<?php echo e(__('Delete')); ?>" data-original-title="<?php echo e(__('Delete')); ?>" data-confirm="<?php echo e(__('Are You Sure?')); ?>" data-confirm-yes="document.getElementById('delete-form-<?php echo e($partslogtime_val->id); ?>').submit();"> <i class="ti ti-trash text-white"></i> </a> <?php echo Form::close(); ?> </div> </span> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('scripts'); ?> <script> $(document).ready(function() { if ($("input[value='service']").is(":checked")) { ; $('.services').addClass('d-none') $('.services').removeClass('d-block'); } }); </script> <script> var scrollSpy = new bootstrap.ScrollSpy(document.body, { target: '#useradd-sidenav', offset: 300 }) </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/id/erp.dev-unit.com/packages/workdo/ProductService/src/Providers/../Resources/views/view.blade.php ENDPATH**/ ?>