<div class="card">
    <div class="card-header">
        <h5>District Listing</h5>
    </div>
    <div class="card-block table-border-style">
        <div class="table-responsive">
            <table class="table table-hover" id="table">
                <thead>
                    <tr>
                        <th>#</th>
                        <th>Code</th>
                        <th>Nationality</th>
                        <th><i>i</i></th>
                    </tr>
                </thead>
                <tbody>
                    <?php $key = 1; ?>
                    @foreach($locationData as $nationality)
                    <tr>
                        <th scope="row"><?php echo $key; ?></th>
                        <td>{{$nationality->code}}</td>
                        <td>{{$nationality->name}}</td>
                        <td><a href="{{ url('/location/nationality?id=' . ($nationality->uuid ?? encrypt($nationality->id))) }}" class="ti-pencil"></a> &nbsp;<a href="#" class="ti-close label label-danger"></a> </td>
                    </tr>
                    <?php $key++;?>
                    @endforeach
                </tbody>
            </table>
        </div>
    </div>
</div>
