<div id="errorModalMerchize" class="error-modal">
    <!-- Modal content -->
    <div class="error-modal-content">
        <table class="table">
            <tr>
                <th style="width: 50%">Item</th>
                <th>Message</th>
            </tr>
            <tbody ng-if="merchizeStates.messages" ng-repeat="messages in merchizeStates.messages"ng-if="merchizeStates.messages" ng-repeat="messages in merchizeStates.messages track by $index">
                <tr ng-repeat="message in messages">
                    <td rowspan="@{{ messages.length }}"  ng-if="$index == 0">
                        @{{ message.split('||')[0] }}
                    </td>
                    <td>
                        @{{ message.split('||').pop() }}
                    </td>
                </tr>
            </tbody>
            
        </table>

        <div class="text-center">
            <button class="btn" onclick="document.getElementById('errorModalMerchize').style.display = 'none'">Close</button>
        </div>
    </div>

</div>