<div class="table-responsive">
    <table class="table table-hover" id="table">
        <thead>
            <tr>
                <th>#</th>
                <th>Code</th>
                <th>Name</th>
                <th>Sub County</th>
                <th>District</th>
                <th>Sub Region</th>
                <th>Region</th>
                <th><i>i</i></th>
            </tr>
        </thead>
        <tbody>
            <?php $key = 1; ?>
            @foreach($locationData as $parish)
            <tr>
                <th scope="row"><?php echo $key; ?></th>
                <td>{{$parish->code}}</td>
                <td>{{$parish->name}}</td>
                <td>{{$parish->subcounty}}</td>
                <td>{{$parish->district}}</td>
                <td>{{$parish->subregion}}</td>
                <td>{{$parish->region}}</td>
                <td><a href="{{ url('/location/parish?id=' . ($parish->uuid ?? $parish->id)) }}" class="ti-pencil"></a> &nbsp;<a href="#" class="ti-close label label-danger"></a> </td>
            </tr>
            <?php $key++;?>
            @endforeach
        </tbody>
    </table>
</div>

