finishing to dev
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m41s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 42s
Build, Push and Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-05-14 22:50:44 +07:00
parent 2fabdf8fc9
commit 8307b9e66d
212 changed files with 2451 additions and 4493 deletions

View File

@@ -4,31 +4,30 @@
{{-- Check only for Sale, Income & Due collect --}}
@if(!in_array($context ?? '', ['purchase', 'expense', 'due_pay']))
<option value="cheque">{{ __('Cheque') }}</option>
<option value="cheque">{{ __('Cheque') }}</option>
@endif
{{-- Wallet only for Sale, Purchase, Due (party exist) --}}
@if(!in_array($context ?? '', ['income', 'expense', 'guest_due']))
<option value="wallet">{{ __('Wallet') }}</option>
<option value="wallet">{{ __('Wallet') }}</option>
@endif
@foreach ($payment_types as $type)
<option value="{{ $type->id }}">{{ $type->name }}</option>
<option value="{{ $type->id }}">{{ $type->name }}</option>
@endforeach
</select>
{{-- hidden cheque input field --}}
<div class="cheque-input mt-2 d-none" disabled>
<input type="text" name="payments[main][cheque_number]" class="form-control" placeholder="Enter Cheque Number" disabled>
<input type="text" name="payments[main][cheque_number]" class="form-control" placeholder="Enter Cheque Number"
disabled>
</div>
{{-- Dynamic payments (optional data for edit) --}}
<div class="payment-main-container"
@if(!empty($transactions))
data-existing-transactions='@json($transactions)'
@endif>
<div class="payment-main-container" @if(!empty($transactions)) data-existing-transactions='@json($transactions)'
data-change-amount="{{ $sale->change_amount ?? 0 }}" @endif>
{{-- Dynamic payments will appear here --}}
</div>
<button type="button" class="add-payment-button">+ {{ __('Add Payment') }}</button>
</div>
</div>