@php use Carbon\Carbon; @endphp


<div class="row">
    <x-adminlte-card theme="lightblue" theme-mode="outline">
        <small>Found: </small> <strong>{{ count($humans) }} Record(s)</strong>
    </x-adminlte-card>
</div>

@php
    $headings = [
        'ID',
        'Serial',
        'First name',
        'Other names',
        'Surname',
        'Nationality',
        'Gender',
        'Date of birth',
    ];
@endphp

<x-adminlte-card>

    <x-adminlte-datatable id="clients-table searchResultsCard" :heads="$headings" striped hoverable bordered>
        @foreach($humans as $human)

        <tr>
                <td>{{ $human[0]['o_pid'] }}</td>
                <td>-</td>
                <td>{{ $human[0]['name'] }}</td>
                <td>{{ $human[0]['last_name'] }}</td>
                <td>{{ $human[0]['surn'] }}</td>
                <td>KENYAN  <span class="fi fi-ke" style="font-size: 1rem;"></span></td>
                <td>{{ $human[0]['sex'] }}</td>
                <td>
                    {{ Carbon::parse($human->date_birth)->format("d-m-Y") ?? '-' }}
                </td>
        </tr>

        @endforeach
    </x-adminlte-datatable>

</x-adminlte-card>


