@php $commonTags = [ '{{total_amount}}' => 'Total Amount (Invoice/Voucher)', '{{total_cost}}' => 'Total Production Cost', '{{total_value}}' => 'Inventory Value', '{{supplier_account}}' => 'Supplier Account (Linked)', '{{branch_account}}' => 'Branch Account (Linked)', '{{customer_account}}' => 'Customer Account (Linked)', '{{treasury_account}}' => 'Branch Treasury (Default)', '{{bank_account}}' => 'Default Bank Account', ]; @endphp @extends('layouts.app') @section('title', 'Configure: ' . $scenario->name) @section('content')

{{ $scenario->name }}

{{ $scenario->event_key }}
@forelse($scenario->steps as $step) @empty @endforelse
# Description / الوصف Debit / مدين Credit / دائن Formula / المعادلة Condition / الشرط Actions / الإجراءات
{{ $step->priority }} {{ $step->description }} @if(str_contains($step->debit_account_pattern, '{')) {{ $step->debit_account_pattern }} @else {{ $step->debit_account_pattern }} @endif @if(str_contains($step->credit_account_pattern, '{')) {{ $step->credit_account_pattern }} @else {{ $step->credit_account_pattern }} @endif {{ $step->debit_amount_formula ?? $step->credit_amount_formula ?? $step->amount_formula }} @if($step->condition_expression) {{ $step->condition_expression }} @else Always @endif
@csrf @method('DELETE')
@include('accounting.scenarios._step_modal', ['step' => $step, 'accounts' => $accounts, 'commonTags' => $commonTags])
No Rules Defined

Start by adding the first accounting step for this scenario.

@include('accounting.scenarios._step_modal', ['step' => null, 'scenario' => $scenario, 'accounts' => $accounts, 'commonTags' => $commonTags]) @endsection