<div class="card">
    <div class="card-header">
        <h5>Region 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>Name</th>
                    <th>Region</th>
                    <th><i>i</i></th>
                </tr>
                </thead>
                <tbody>
                <?php $key = 1; ?>
                @foreach($locationData as $region)
                    <tr>
                        <th scope="row"><?php echo $key; ?></th>
                        <td>{{$region->code}}</td>
                        <td>{{$region->name}}</td>
                        <td>{{$region->region}}</td>
                        <td><a href="{{ url('/location/regions/' . ($region->uuid ?? $region->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>
