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

@@ -15,11 +15,11 @@
<h4>{{ __('Inventory Sales') }}</h4>
</div>
<div class="order-form-section p-16">
<form action="{{ route('business.sales.store') }}" method="post" enctype="multipart/form-data"
class="ajaxform">
<form action="{{ route('business.sales.store') }}" method="post" enctype="multipart/form-data" class="ajaxform" inventory-sale="1">
@csrf
<input type="hidden" name="type" value="inventory">
<div class="row mt-3">
<div class="row ">
<div class="col-lg-4">
<label>{{ __('Customer') }}</label>
<div class="input-group">
@@ -67,7 +67,7 @@ class="btn btn-danger square-btn d-flex justify-content-center align-items-cente
</div>
<div class="dropdown-search hidden" id="searchContainer">
<input type="text" id="productSearch" placeholder="Search product..." />
<input type="text" id="productSearch" placeholder="{{__('Search product...')}}" />
</div>
<div class="product-dropdown-options" id="dropdownList">
@@ -98,17 +98,18 @@ class="btn btn-danger square-btn d-flex justify-content-center align-items-cente
<th class="border p-2 table-background">{{ __('Batch') }}</th>
<th class="border p-2 table-background">{{ __('Unit') }}</th>
<th class="border p-2 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 p-2 table-background">{{ __('Discount') }}</th>
@endif
<th class="border p-2 table-background">{{ __('Vat %') }}</th>
<th class="border p-2 table-background">{{ __('Vat Value') }}</th>
<th class="border p-2 table-background">{{ __('Qty') }}</th>
<th class="border p-2 table-background">{{ __('Sub Total') }}</th>
<th class="border p-2 table-background">{{ __('Action') }}</th>
</tr>
</thead>
<tbody id="cart-list">
<tbody id="sale_cart_list">
@include('business::sales.cart-list')
</tbody>
</table>
@@ -149,12 +150,23 @@ class="btn btn-danger square-btn d-flex justify-content-center align-items-cente
<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(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">{{ __('Flat') }}
({{ business_currency()->symbol }})</option>
<option value="percent">{{ __('Percent (%)') }}</option>
</select>
</div>
<input type="number" step="any" name="discountAmount" id="discount_amount"
min="0" class="form-control right-start-input"
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">
@@ -173,22 +185,6 @@ class="btn btn-danger square-btn d-flex justify-content-center align-items-cente
placeholder="{{ __('0') }}" readonly>
</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">{{ __('Flat') }}
({{ business_currency()->symbol }})</option>
<option value="percent">{{ __('Percent (%)') }}</option>
</select>
</div>
<input type="number" step="any" name="discountAmount" id="discount_amount"
min="0" class="form-control right-start-input"
placeholder="{{ __('0') }}">
</div>
</div>
<div class="shopping-crg-grid mb-2">
<h6 class="payment-title">{{ __('Shipping Charge') }}</h6>
<div class="">
@@ -247,10 +243,16 @@ class="theme-btn border-btn m-2">{{__('Cancel')}}
<input type="hidden" id="selectedProductValue" name="selectedProductValue">
<input type="hidden" id="asset_base_url" value="{{ url('/') }}">
<input type="hidden" id="get_stock_prices" value="{{ route('business.products.stocks-prices') }}">
<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.customer-create')
@endpush