<div class="text-center">
    <h5 class="font-size-16 me-3">Open Breed Report</h5>
</div>
<table class="table table-bordered dt-responsive nowrap w-100">
    <thead>
        <tr>
            <th scope="col">No</th>
            <th scope="col">Tag ID</th>
            <th scope="col" >Sire</th>
            <th scope="col" >Age</th>
            <th scope="col">Total AI</th>
            <th scope="col" colspan="2">Last AI Date</th>
        </tr>
    </thead>
    <tbody>
        @forelse ($open_bred_employees as $key=>$item)
            <tr>
                <td>{{$key+1}}</td>
                <td>{{$item->tag->uid}}</td>
                <td>{{($item->sire_id) ? $item->sire->code : 'Unknown'}}</td>
                <td>{{($item->birth_date) ? \Carbon\Carbon::parse($item->birth_date)->diff(\Carbon\Carbon::now())->format('%y Y, %m M, %d D') : 'N/A'}}</td>
                <td>{{($item->total_heat) ?? '0'}}</td>
                <td>{{($item->heat_date) ?? 'N/A'}}</td>
            </tr>
        @empty
            <tr>
                <td colspan="7" class="text-center">No Employees Found</td>
            </tr>
        @endforelse
    </tbody>
</table>
