ok
Direktori : /home2/selectio/www/fms-worksuite/storage/framework/views/ |
Current File : /home2/selectio/www/fms-worksuite/storage/framework/views/fe73a73b7f93dce3297077b2e2a0c812.php |
<?php $editPermission = user()->permission('edit_product'); $deletePermission = user()->permission('delete_product'); ?> <div id="product-detail-section"> <div class="row"> <div class="col-sm-12"> <div class="card bg-white border-0 b-shadow-4"> <div class="card-header bg-white border-bottom-grey text-capitalize justify-content-between p-20"> <div class="row"> <div class="col-lg-10 col-10"> <h3 class="heading-h1 mb-3"><?php echo app('translator')->get('app.menu.products'); ?> <?php echo app('translator')->get('app.details'); ?></h3> </div> <div class="col-lg-2 col-2 text-right"> <?php if( ($editPermission == 'all' || ($editPermission == 'added' && $product->added_by == user()->id)) || ($deletePermission == 'all' || ($deletePermission == 'added' && $product->added_by == user()->id)) ): ?> <div class="dropdown"> <button class="btn btn-lg f-14 px-2 py-1 text-dark-grey text-capitalize rounded dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-ellipsis-h"></i> </button> <div class="dropdown-menu dropdown-menu-right border-grey rounded b-shadow-4 p-0" aria-labelledby="dropdownMenuLink" tabindex="0"> <?php if($editPermission == 'all' || ($editPermission == 'added' && $product->added_by == user()->id)): ?> <a class="dropdown-item openRightModal" href="<?php echo e(route('products.edit', $product->id)); ?>"><?php echo app('translator')->get('app.edit'); ?> </a> <?php endif; ?> <?php if($deletePermission == 'all' || ($deletePermission == 'added' && $product->added_by == user()->id)): ?> <a class="dropdown-item delete-product" data-product-id="<?php echo e($product->id); ?>"><?php echo app('translator')->get('app.delete'); ?></a> <?php endif; ?> </div> </div> <?php endif; ?> </div> </div> </div> <div class="card-body"> <div class="row"> <div class="col-12"> <?php if (isset($component)) { $__componentOriginalfc012cd47eee5094db538668bc6edefd = $component; } ?> <?php $component = App\View\Components\Cards\DataRow::resolve(['label' => __('app.name'),'value' => $product->name ?? '--'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.data-row'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Cards\DataRow::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalfc012cd47eee5094db538668bc6edefd)): ?> <?php $component = $__componentOriginalfc012cd47eee5094db538668bc6edefd; ?> <?php unset($__componentOriginalfc012cd47eee5094db538668bc6edefd); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalfc012cd47eee5094db538668bc6edefd = $component; } ?> <?php $component = App\View\Components\Cards\DataRow::resolve(['label' => __('app.price'),'value' => $product->price ? currency_format($product->price) : '--'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.data-row'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Cards\DataRow::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalfc012cd47eee5094db538668bc6edefd)): ?> <?php $component = $__componentOriginalfc012cd47eee5094db538668bc6edefd; ?> <?php unset($__componentOriginalfc012cd47eee5094db538668bc6edefd); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalfc012cd47eee5094db538668bc6edefd = $component; } ?> <?php $component = App\View\Components\Cards\DataRow::resolve(['label' => __('modules.invoices.tax'),'value' => !empty($taxValue) ? strtoupper($taxValue) : '--'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.data-row'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Cards\DataRow::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalfc012cd47eee5094db538668bc6edefd)): ?> <?php $component = $__componentOriginalfc012cd47eee5094db538668bc6edefd; ?> <?php unset($__componentOriginalfc012cd47eee5094db538668bc6edefd); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalfc012cd47eee5094db538668bc6edefd = $component; } ?> <?php $component = App\View\Components\Cards\DataRow::resolve(['label' => __('modules.unitType.unitType'),'value' => ucfirst($product->unit->unit_type ?? '--')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.data-row'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Cards\DataRow::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalfc012cd47eee5094db538668bc6edefd)): ?> <?php $component = $__componentOriginalfc012cd47eee5094db538668bc6edefd; ?> <?php unset($__componentOriginalfc012cd47eee5094db538668bc6edefd); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalfc012cd47eee5094db538668bc6edefd = $component; } ?> <?php $component = App\View\Components\Cards\DataRow::resolve(['label' => __('app.hsnSac'),'value' => $product->hsn_sac_code ?? '--'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.data-row'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Cards\DataRow::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalfc012cd47eee5094db538668bc6edefd)): ?> <?php $component = $__componentOriginalfc012cd47eee5094db538668bc6edefd; ?> <?php unset($__componentOriginalfc012cd47eee5094db538668bc6edefd); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalfc012cd47eee5094db538668bc6edefd = $component; } ?> <?php $component = App\View\Components\Cards\DataRow::resolve(['label' => __('modules.productCategory.productCategory'),'value' => $product->category->category_name ?? '--'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.data-row'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Cards\DataRow::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalfc012cd47eee5094db538668bc6edefd)): ?> <?php $component = $__componentOriginalfc012cd47eee5094db538668bc6edefd; ?> <?php unset($__componentOriginalfc012cd47eee5094db538668bc6edefd); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalfc012cd47eee5094db538668bc6edefd = $component; } ?> <?php $component = App\View\Components\Cards\DataRow::resolve(['label' => __('modules.productCategory.productSubCategory'),'value' => $product->subCategory->category_name ?? '--'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.data-row'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Cards\DataRow::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalfc012cd47eee5094db538668bc6edefd)): ?> <?php $component = $__componentOriginalfc012cd47eee5094db538668bc6edefd; ?> <?php unset($__componentOriginalfc012cd47eee5094db538668bc6edefd); ?> <?php endif; ?> <?php if(!in_array('client', user_roles())): ?> <?php if (isset($component)) { $__componentOriginalfc012cd47eee5094db538668bc6edefd = $component; } ?> <?php $component = App\View\Components\Cards\DataRow::resolve(['label' => __('app.purchaseAllow'),'value' => ($product->allow_purchase) ? '<span class=\'badge badge-success\'>'. __('app.yes').' </span>': '<span class=\'badge badge-danger\'>'. __('app.no').' </span>'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.data-row'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Cards\DataRow::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalfc012cd47eee5094db538668bc6edefd)): ?> <?php $component = $__componentOriginalfc012cd47eee5094db538668bc6edefd; ?> <?php unset($__componentOriginalfc012cd47eee5094db538668bc6edefd); ?> <?php endif; ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalfc012cd47eee5094db538668bc6edefd = $component; } ?> <?php $component = App\View\Components\Cards\DataRow::resolve(['label' => __('app.downloadable'),'value' => ($product->downloadable) ? '<span class=\'badge badge-success\'>'. __('app.yes').' </span>': '<span class=\'badge badge-danger\'>'. __('app.no').' </span>'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.data-row'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Cards\DataRow::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalfc012cd47eee5094db538668bc6edefd)): ?> <?php $component = $__componentOriginalfc012cd47eee5094db538668bc6edefd; ?> <?php unset($__componentOriginalfc012cd47eee5094db538668bc6edefd); ?> <?php endif; ?> <?php if($product->downloadable && !in_array('client', user_roles())): ?> <?php if (isset($component)) { $__componentOriginalfc012cd47eee5094db538668bc6edefd = $component; } ?> <?php $component = App\View\Components\Cards\DataRow::resolve(['label' => __('app.downloadableFile'),'value' => '<a href='.$product->download_file_url.' download>'.$product->download_file_url.'</a>'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.data-row'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Cards\DataRow::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalfc012cd47eee5094db538668bc6edefd)): ?> <?php $component = $__componentOriginalfc012cd47eee5094db538668bc6edefd; ?> <?php unset($__componentOriginalfc012cd47eee5094db538668bc6edefd); ?> <?php endif; ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalfc012cd47eee5094db538668bc6edefd = $component; } ?> <?php $component = App\View\Components\Cards\DataRow::resolve(['label' => __('app.description'),'value' => !empty($product->description) ? $product->description : '--','html' => 'true'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.data-row'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Cards\DataRow::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalfc012cd47eee5094db538668bc6edefd)): ?> <?php $component = $__componentOriginalfc012cd47eee5094db538668bc6edefd; ?> <?php unset($__componentOriginalfc012cd47eee5094db538668bc6edefd); ?> <?php endif; ?> <?php if($product->files): ?> <div class="col-12 px-0 pb-3 d-lg-flex d-md-flex d-block"> <p class="mb-0 text-lightest f-14 w-30 text-capitalize"><?php echo e(__('modules.productImage')); ?></p> <p class="mb-0 text-dark-grey f-14 w-70 text-wrap"> <?php $__currentLoopData = $product->files; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $file): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <a href="javascript:;" class="img-lightbox" data-image-url="<?php echo e($file->file_url); ?>"> <img src="<?php echo e($file->file_url); ?>" width="80" height="80" class="img-thumbnail"> </a> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </p> </div> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalc7faf3da9dd03559633827985b4aafa9 = $component; } ?> <?php $component = App\View\Components\Forms\CustomFieldShow::resolve(['fields' => $fields,'model' => $product] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.custom-field-show'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Forms\CustomFieldShow::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc7faf3da9dd03559633827985b4aafa9)): ?> <?php $component = $__componentOriginalc7faf3da9dd03559633827985b4aafa9; ?> <?php unset($__componentOriginalc7faf3da9dd03559633827985b4aafa9); ?> <?php endif; ?> </div> </div> </div> </div> </div> </div> </div> <script> $('body').on('click', '.delete-product', function() { var id = $(this).data('product-id'); Swal.fire({ title: "<?php echo app('translator')->get('messages.sweetAlertTitle'); ?>", text: "<?php echo app('translator')->get('messages.recoverRecord'); ?>", icon: 'warning', showCancelButton: true, focusConfirm: false, confirmButtonText: "<?php echo app('translator')->get('messages.confirmDelete'); ?>", cancelButtonText: "<?php echo app('translator')->get('app.cancel'); ?>", customClass: { confirmButton: 'btn btn-primary mr-3', cancelButton: 'btn btn-secondary' }, showClass: { popup: 'swal2-noanimation', backdrop: 'swal2-noanimation' }, buttonsStyling: false }).then((result) => { if (result.isConfirmed) { let url = "<?php echo e(route('products.destroy', ':id')); ?>"; url = url.replace(':id', id); const token = "<?php echo e(csrf_token()); ?>"; $.easyAjax({ type: 'POST', url: url, data: { '_token': token, '_method': 'DELETE' }, success: function(response) { if (response.status === "success") { window.location.href = response.redirectUrl; } } }); } }); }); </script> <?php /**PATH /home2/selectio/public_html/fms-worksuite/resources/views/products/ajax/show.blade.php ENDPATH**/ ?>