@extends('layouts.business.master') @section('title') {{ __('Edit Product') }} @endsection @php $modules = product_setting()->modules ?? []; $showSingle = !isset($modules['show_product_type_single']) || $modules['show_product_type_single']; $showVariant = isset($modules['show_product_type_variant']) && $modules['show_product_type_variant']; $hasVisibleColumn = is_module_enabled($modules, 'show_batch_no') || is_module_enabled($modules, 'show_product_stock') || is_module_enabled($modules, 'show_exclusive_price') ||is_module_enabled($modules, 'show_inclusive_price') ||is_module_enabled($modules, 'show_profit_percent') ||is_module_enabled($modules, 'show_product_sale_price') ||is_module_enabled($modules, 'show_product_wholesale_price') ||is_module_enabled($modules, 'show_product_dealer_price') ||is_module_enabled($modules, 'show_mfg_date') ||is_module_enabled($modules, 'show_expire_date') ||is_module_enabled($modules, 'show_action'); $defaultPermissions = [ 'show_batch_no', 'show_product_stock', 'show_exclusive_price', 'show_inclusive_price', 'show_profit_percent', 'show_product_sale_price', 'show_product_wholesale_price', 'show_product_dealer_price', 'show_mfg_date', 'show_expire_date', 'show_action', ]; @endphp @section('main_content')