
        <table class="table table-striped">
            <thead>
                <th  class = "col-md-2">
                    
                </th>
                <th ng-if="item.client" class = "col-md-5">
                    {{ "CLIENT" | translate }}
                </th>
                <th ng-if="item.virtual_client" class = "col-md-5">
                    {{ "VIRTUAL_CLIENT" | translate }}
                </th>
                <th ng-if="!item.uclient" class = "col-md-5">

                </th>
                <th class = "col-md-5">
                    {{ "RISK_PERSON" | translate }}
                </th>
            </thead>
            <tbody>
                <tr>
                    <td>
                        <b>{{ "ID" | translate }}</b>
                    </td>
                    <td ng-if="item.client" class = "col-md-5">
                        <a ng-href="#/objects/client/{{item.client.id}}" ng-click="okOnModal()">{{item.client.id}}</a>
                    </td>
                    <td ng-if="item.virtual_client" class = "col-md-5">
                        <a ng-href="#/objects/virtual_client/{{item.virtual_client.id}}" ng-click="okOnModal()">{{item.virtual_client.id}}</a>
                    </td>
                    <td ng-if="!item.uclient" class = "col-md-5">

                    </td>
                    <td>
                        <a ng-href="#/objects/list/{{item.list.id}}" ng-click="okOnModal()"><b ng-show = "item.color == 2" class = "swamp">&#10004; </b><b ng-show = "item.color == 1" class = "dark-yellow">&#10004; </b> {{item.list.id}}</a>
                    </td>
                </tr>
                <!-- <tr ng-if="item.list.First_Name || item.uclient.FIRSTNAME"> -->
                <tr>
                    <td>
                        <b>{{ "FIRSTNAME" | translate }}</b>
                    </td>
                    <td>
                        {{item.uclient.FIRSTNAME}}
                    </td>
                    <td>
                        {{item.list.First_Name}}
                    </td>
                </tr>
                <!-- <tr ng-if="item.list.Last_Name || item.list.Full_Name || item.uclient.LASTNAME"> -->
                <tr>
                    <td>
                        <b>{{ "LASTNAME" | translate }}</b>
                    </td>
                    <td>
                        {{item.uclient.LASTNAME}}
                    </td>
                    <td>
                        {{ [item.list.Last_Name, item.list.Full_Name] | reduceStrings }}
                    </td>
                </tr>
                <!-- <tr ng-if="item.uclient.DOB || item.list.DOB"> -->
                <tr>
                    <td>
                        <b>{{ "DOB" | translate }}</b>
                    </td>
                    <td>
                        {{item.uclient.DOB}}
                    </td>
                    <td class="text">
                        <abbr class="hide-abbr" title="{{ item.list.DOB }}"><span>{{item.list.DOB}}</span></abbr>
                    </td>
                </tr>
                <!-- <tr ng-if="item.uclient.Additional_Name1 || item.uclient.add_name || item.list.Alias || item.uclient.Additional_Name2 || item.uclient.add_name2"> -->
                <tr>
                    <td>
                        <b>{{ "ALIAS" | translate }}</b>
                    </td>
                    <td>
                        {{ [item.uclient.Additional_Name1, item.uclient.add_name, item.uclient.Additional_Name2, item.uclient.add_name2] | reduceStrings }}
                    </td>
                    <td class="text">
                        <abbr class="hide-abbr" title="{{ [item.list.Full_Name, item.list.Alias] | reduceStrings }}"><span>{{ [item.list.Alias] | reduceStrings }}</span></abbr>
                    </td>
                </tr>
                <!-- <tr ng-if="item.uclient.COUNTRIES || item.uclient.ADDR_COUNTRY || item.list.Country || item.list.Country_Of_Origin || item.uclient.Nationality || item.uclient.NATIONALITY || item.list.Country_Of_Activity"> -->
                <tr>
                    <td>
                        <b>{{ "COUNTRIES" | translate }}</b>
                    </td>
                    <td>
                        {{ [item.uclient.COUNTRIES, item.uclient.ADDR_COUNTRY, item.uclient.Nationality, item.uclient.NATIONALITY] | reduceStrings }}
                    </td>
                    <td>
                        {{ [item.list.Country, item.list.Country_Of_Origin, item.list.Country_Of_Activity] | reduceStrings }}
                    </td>
                </tr>

            </tbody>
        </table>


<div ng-if="item.list.Function">
  <h3>{{ "FUNCTIONS" | translate }}</h3>
  <table class="table table-striped">
    <thead>
      <tr>
        <th>{{ "FUNCTION" | translate }}</th>
        <th>{{ "CATEGORY" | translate }}</th>
        <th>{{ "NOT_IN_CHARGE_SINCE" | translate }}</th>
      </tr>
    </thead>
    <tbody>
      <tr ng-repeat="row in item.list.Function.split('; OTHER FUNCTION: ')">
        <td>{{row.split(' CATEGORY: ')[0].split(' NOT IN CHARGE SINCE: ')[0].trim()}}</td>
        <td>{{row.split(' CATEGORY: ')[1].trim()}}</td>
        <td>{{row.split(' CATEGORY: ')[0].split(' NOT IN CHARGE SINCE: ')[1].trim()}}</td>
      </tr>
    </tbody>
  </table>
</div>

