Untitled

mail@pastecode.io avatarunknown
plain_text
21 days ago
1.4 kB
0
Indexable
Never
                                        <select id="treeviewSelect" class="form-select text-end" name="account_to">
                                            @foreach($categories as $category)
                                                <optgroup label="{{ $category->name_ar }}">
                                                    @foreach($category->children as $subcategory)
                                                        <optgroup label="{{ $subcategory->name_ar }}">
                                                            @foreach($subcategory->accounts as $account)
                                                                <option value="{{ $account->id }}">{{ $account->name_ar }}</option>
                                                            @endforeach
                                                        </optgroup>
                                                    @endforeach
                                                    @foreach($category->accounts as $account)
                                                        <option value="{{ $account->id }}">{{ $account->name_ar }}</option>
                                                    @endforeach
                                                </optgroup>
                                            @endforeach
                                        </select>