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

@@ -98,6 +98,9 @@ class='dashboard-btn d-flex align-items-center gap-1'>
@usercan('purchases.price')
<th class="border table-background">{{ __('Purchase Price') }}</th>
@endusercan
@if (moduleCheck('SerialCodeAddon'))
<th class="border table-background serial-option">{{ __('Serial') }}</th>
@endif
<th class="border table-background">{{ __('Qty') }}</th>
<th class="border table-background">{{ __('Sub Total') }}</th>
<th class="border table-background">{{ __('Action') }}</th>
@@ -150,6 +153,23 @@ class="form-control receive_amount"
<h6>{{ __('Sub Total') }}</h6>
<h6 class="fw-bold" id="sub_total">{{ currency_format(0) }}</h6>
</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($purchase->discount_type == 'flat')>{{ __('Flat') }}
({{ business_currency()->symbol }})
</option>
<option value="percent" @selected($purchase->discount_type == 'percent')>{{ __('Percent (%)') }}</option>
</select>
</div>
<input type="number" step="any" name="discountAmount"
value="{{ $purchase->discount_type == 'percent' ? $purchase->discount_percent : $purchase->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">
<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">
@@ -169,23 +189,6 @@ class="form-control receive_amount"
</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($purchase->discount_type == 'flat')>{{ __('Flat') }}
({{ business_currency()->symbol }})
</option>
<option value="percent" @selected($purchase->discount_type == 'percent')>{{ __('Percent (%)') }}</option>
</select>
</div>
<input type="number" step="any" name="discountAmount"
value="{{ $purchase->discount_type == 'percent' ? $purchase->discount_percent : $purchase->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="">{{ __('Shipping Charge') }}</h6>
<div class="">
@@ -253,22 +256,30 @@ class="btn btn-category w-100">{{ __('Category') }}</a>
</div>
</div>
@include('business::purchases.product-modal')
<input type="hidden" id="get_product" value="{{ route('business.products.prices') }}">
<input type="hidden" value="{{ route('business.purchases.cart') }}" id="purchase-cart">
<input type="hidden" value="{{ route('business.carts.remove-all') }}" id="clear-cart">
<input type="hidden" id="get-product-variants" value="{{ route('business.products.variants') }}">
<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="profit_option" value="{{ $profit_option }}">
@endsection
@push('modal')
@if (moduleCheck('SerialCodeAddon'))
@include('serialcodeaddon::serial-code-modal')
@endif
@include('business::purchases.calculator')
@include('business::purchases.category-search')
@include('business::purchases.brand-search')
@include('business::purchases.product-modal')
@include('business::purchases.supplier-create')
@include('business::purchases.bulk-upload.index')
@endpush
@push('js')
<script src="{{ asset('assets/js/custom/purchase.js') }}"></script>
<script src="{{ asset('assets/js/custom/purchase.js') }}?v={{ time() }}"></script>
<script src="{{ asset('assets/js/custom/math.min.js') }}"></script>
<script src="{{ asset('assets/js/custom/calculator.js') }}"></script>
<script src="{{ asset('assets/js/choices.min.js') }}"></script>