@php $modalId = $step ? 'editStepModal' . $step->id : 'addStepModal'; $action = $step ? route('accounting.scenarios.steps.update', $step->id) : route('accounting.scenarios.steps.store', $scenario->id); $method = $step ? 'PUT' : 'POST'; $debitIsTag = $step && str_contains($step->debit_account_pattern, '{'); $creditIsTag = $step && str_contains($step->credit_account_pattern, '{'); $commonConditions = [ '' => 'Always Execute / تنفيذ دائم', "{{payment_method}} == 'bank'" => 'Payment is Bank / الدفع بنكي', "{{payment_method}} == 'cash'" => 'Payment is Cash / الدفع نقدي', "{{status}} == 'paid'" => 'Status is Paid / الحالة مدفوع', "{{status}} == 'approved'" => 'Status is Approved / الحالة معتمد', ]; @endphp