update marketing
All checks were successful
All checks were successful
This commit is contained in:
@@ -97,6 +97,9 @@
|
||||
@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>
|
||||
@@ -147,6 +150,23 @@
|
||||
<h6 class="fw-bold" id="sub_total">
|
||||
{{ currency_format(0, currency: business_currency()) }}</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">{{ __('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">
|
||||
<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">
|
||||
@@ -166,23 +186,6 @@ class="form-control right-start-input" 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="">
|
||||
@@ -243,7 +246,7 @@ class="btn btn-category w-100">{{ __('Category') }}</a>
|
||||
</div>
|
||||
<div class="products-container">
|
||||
<div class="p-3 scroll-card">
|
||||
<div class="search-product-card products gap-2 @if (count($products) === 1) single-product @endif product-list-container" id="products-list">
|
||||
<div class="search-product-card products gap-2 @if (count($products) === 1) single-product @endif product-list-container" id="products-list">
|
||||
@include('business::purchases.product-list')
|
||||
</div>
|
||||
</div>
|
||||
@@ -252,25 +255,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" id="purchase-cart" value="{{ route('business.purchases.cart') }}">
|
||||
<input type="hidden" id="clear-cart" value="{{ route('business.carts.remove-all') }}">
|
||||
<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.supplier-create')
|
||||
@include('business::purchases.bulk-upload.index')
|
||||
@include('business::purchases.product-modal')
|
||||
@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>
|
||||
|
||||
Reference in New Issue
Block a user