commit
3ae9f06a6b
|
@ -22,7 +22,7 @@ class StoreSettingsRequest extends FormRequest
|
|||
'company_address' => 'required|string|max:500',
|
||||
'default_currency_id' => 'required|numeric',
|
||||
'default_currency_position' => 'required|string|max:255',
|
||||
'footer_text' => 'required|string|max:255'
|
||||
'footer_text' => 'nullable|string|max:255'
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
@ -113,7 +113,7 @@ return [
|
|||
|
|
||||
*/
|
||||
|
||||
'inject_assets' => true,
|
||||
'inject_assets' => false,
|
||||
|
||||
/*
|
||||
|---------------------------------------------------------------------------
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
@stack('page_css')
|
||||
|
||||
@livewireStyles
|
||||
|
||||
<style>
|
||||
div.dataTables_wrapper div.dataTables_length select {
|
||||
width: 65px;
|
||||
|
|
|
@ -11,3 +11,5 @@
|
|||
@yield('third_party_scripts')
|
||||
|
||||
@stack('page_scripts')
|
||||
|
||||
@livewireScripts
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<div class="d-inline-block">
|
||||
<!-- Button trigger Discount Modal -->
|
||||
<span wire:click="$emitSelf('discountModalRefresh', '{{ $cart_item->id }}', '{{ $cart_item->rowId }}')" role="button" class="badge badge-warning pointer-event" data-toggle="modal" data-target="#discountModal{{ $cart_item->id }}">
|
||||
<span wire:click="$dispatch('discountModalRefresh', { product_id: {{ $cart_item->id }}, row_id: '{{ $cart_item->rowId }}' })" role="button" class="badge badge-warning pointer-event" data-toggle="modal" data-target="#discountModal{{ $cart_item->id }}">
|
||||
<i class="bi bi-pencil-square text-white"></i>
|
||||
</span>
|
||||
<!-- Discount Modal -->
|
||||
|
@ -18,7 +19,6 @@
|
|||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<form wire:submit="setProductDiscount('{{ $cart_item->rowId }}', '{{ $cart_item->id }}')" method="POST">
|
||||
<div class="modal-body">
|
||||
@if (session()->has('discount_message' . $cart_item->id))
|
||||
<div class="alert alert-success alert-dismissible fade show" role="alert">
|
||||
|
@ -49,9 +49,9 @@
|
|||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||
<button type="submit" class="btn btn-primary">Save changes</button>
|
||||
</div>
|
||||
</form>
|
||||
<button wire:click="setProductDiscount('{{ $cart_item->rowId }}', {{ $cart_item->id }})" type="button" class="btn btn-primary">Save changes</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue