update marketing
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 5m14s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 17s
Build, Push and Deploy / deploy-staging (push) Successful in 41s
Build, Push and Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-05-14 11:55:22 +07:00
parent f80fcc4c1b
commit 05fd3230b8
448 changed files with 17545 additions and 5128 deletions

View File

@@ -78,6 +78,7 @@ class="ajaxform">
</a>
</div>
</div>
@if(moduleCheck('WarehouseAddon'))
<div class="col-6">
<div class="d-flex align-items-center">
<select required name="warehouse_id" class="form-select choices-select warehouse_id" aria-label="Select Customer">
@@ -88,6 +89,7 @@ class="ajaxform">
</select>
</div>
</div>
@endif
</div>
</div>
<div class="cart-payment">
@@ -101,17 +103,18 @@ class="ajaxform">
<th class="border table-background">{{ __('Batch') }}</th>
<th class="border table-background">{{ __('Unit') }}</th>
<th class="border table-background">{{ __('Sale Price') }}</th>
@if (moduleCheck('SerialCodeAddon'))
<th class="border table-background serial-option">{{ __('Serial') }}</th>
@endif
@if ($modules['allow_product_discount'] ?? false)
<th class="border table-background">{{ __('Discount') }}</th>
@endif
<th class="border table-background">{{ __('Vat %') }}</th>
<th class="border table-background">{{ __('Vat Value') }}</th>
<th class="border table-background">{{ __('Qty') }}</th>
<th class="border table-background">{{ __('Sub Total') }}</th>
<th class="border table-background">{{ __('Action') }}</th>
</tr>
</thead>
<tbody class='text-start' id="cart-list">
<tbody class='text-start' id="sale_cart_list">
@include('business::sales.cart-list')
</tbody>
</table>
@@ -165,12 +168,25 @@ class="form-control" placeholder="{{ __('Type note...') }}">
<h6 class="fw-bold" id="sub_total">
{{ currency_format(0, currency: business_currency()) }}</h6>
</div>
<div class="mb-2 d-flex align-items-center justify-content-between">
<h6>{{ get_business_option('business-settings')['vat_name'] ?? 'Vat' }}</h6>
<h6 class="fw-bold" id="vat_amount_txt">
{{ currency_format(($sale->vat_amount ?? 0) != 0 ? $sale->vat_amount : (($sale->vat_percent ?? 0) != 0 ? $sale->vat_percent : 0), currency: business_currency()) }}</h6>
<div class="row save-amount-container align-items-center mb-2">
<h6 class="payment-title col-6">{{ __('Discount') }}</h6>
<div class="col-6 w-100 d-flex justify-content-between gap-2">
<div class="d-flex d-flex align-items-center gap-2">
<select name="discount_type" class="form-select discount_type" id='form-ware'>
<option value="flat" @selected($sale->discount_type == 'flat')>{{ __('Flat') }}
({{ business_currency()->symbol }})
</option>
<option value="percent" @selected($sale->discount_type == 'percent')>{{ __('Percent (%)') }}</option>
</select>
</div>
<input type="number" step="any" name="discountAmount"
value="{{ $sale->discount_type == 'percent' ? $sale->discount_percent : $sale->discountAmount }}"
id="discount_amount" min="0" class="right-start-input form-control"
placeholder="{{ __('0') }}">
</div>
</div>
<div class="row save-amount-container align-items-center mb-2 d-none">
<div class="row save-amount-container align-items-center mb-2">
<h6 class="payment-title col-6">{{ get_business_option('business-settings')['vat_name'] ?? 'Vat' }}</h6>
<div class="col-6 w-100 d-flex justify-content-between gap-2">
<div class="d-flex d-flex align-items-center gap-2">
@@ -191,24 +207,6 @@ class="form-control" placeholder="{{ __('Type note...') }}">
</div>
</div>
<div class="row save-amount-container align-items-center mb-2">
<h6 class="payment-title col-6">{{ __('Discount') }}</h6>
<div class="col-6 w-100 d-flex justify-content-between gap-2">
<div class="d-flex d-flex align-items-center gap-2">
<select name="discount_type" class="form-select discount_type" id='form-ware'>
<option value="flat" @selected($sale->discount_type == 'flat')>{{ __('Flat') }}
({{ business_currency()->symbol }})
</option>
<option value="percent" @selected($sale->discount_type == 'percent')>{{ __('Percent (%)') }}</option>
</select>
</div>
<input type="number" step="any" name="discountAmount"
value="{{ $sale->discount_type == 'percent' ? $sale->discount_percent : $sale->discountAmount }}"
id="discount_amount" min="0" class="right-start-input form-control"
placeholder="{{ __('0') }}">
</div>
</div>
<div class="shopping-crg-grid mb-2">
<h6 class="payment-title">{{ __('Shipping Charge') }}</h6>
<div class="">
@@ -255,7 +253,7 @@ class="form-control right-start-input" placeholder="0">
<form action="{{ route('business.sales.product-filter') }}" method="post" class="product-filter product-filter-form" table="#products-list">
@csrf
<div class="d-flex">
<input type="text" name="search" class="form-control search-input"
<input type="text" name="search" id="sale_product_search" class="form-control search-input"
placeholder="{{ __('Search product...') }}">
<button class="btn btn-search">
<i class="far fa-search"></i>
@@ -303,10 +301,16 @@ class="btn btn-category w-100">{{ __('Category') }}</a>
<input type="hidden" id="asset_base_url" value="{{ asset('') }}">
<input type="hidden" id="get_stock_prices" value="{{ route('business.products.stocks-prices') }}">
<input type="hidden" id="warehouse_module_exist" value="{{ moduleCheck('WarehouseAddon') ? 1 : 0 }}">
<input type="hidden" id="has-serial-code-addon" value="{{ moduleCheck('SerialCodeAddon') }}">
<input type="hidden" id="check-serial-exist" value="{{ route('business.products.check-serial') }}">
<input type="hidden" id="get-product-serials" value="{{ route('business.products.get-serials') }}">
@endsection
@push('modal')
@if (moduleCheck('SerialCodeAddon'))
@include('serialcodeaddon::select-serial-modal')
@endif
@include('business::sales.calculator')
@include('business::sales.category-search')
@include('business::sales.brand-search')