@extends('store.layout.main') @section('title', isset($product) ? 'Edit Product' : 'Add Product') @section('page-header') @php $headerIsEdit = isset($product); @endphp @endsection @section('main-container') @php $isEdit = isset($product); $currencySym = config('constants.CURRENCY_SYMBOL', '$'); if (! isset($bizInv)) { $bizInv = [ 'manage_stock' => true, 'manage_tax' => false, 'manage_product_cost' => false, 'default_profit_percent' => 25.0, ]; } if (! isset($businessPresetTaxesForProduct)) { $businessPresetTaxesForProduct = (new \App\Models\Business)->defaultBusinessTaxPresets(); } $showProductCostSection = ($bizInv['manage_product_cost'] ?? false) || ($isEdit && isset($product) && ( ($product->cost_seller_name ?? '') !== '' || (float) ($product->buying_cost ?? 0) > 0 || (float) ($product->shipping_cost ?? 0) > 0 || (float) ($product->buying_tax ?? 0) > 0 )); @endphp
Product name, branch availability and optional expiry date.
Purchase cost and supplier for margin tracking.
Sizes, colors, or track plain stock.
Set the selling price and applicable taxes.
No taxes configured. Set up taxes →
Category-specific attributes and product description.