<style type="text/css">
.new-bill {
    width: 95px !important;
    height: auto !important;
    line-height: 1.5 !important;
    padding: 0.275rem 0.5rem !important;
}
</style>
<div class="table-responsive">
    <table id="example" class="table table-bordered align-middle" style="width:100%">
        <thead class="table-light">
            <tr>
                <th class ="thbutton">Sl No.</th>
                <th> Child Name</th>
                <th> Gender</th>
                <th> Birth Date</th>
                <th> Birth Time</th>
                <th> Mother Name</th>
                <th> Father Name</th>
                <th> Report</th>
                <th class ="thbutton"> Edit</th>
                <th class ="thbutton"> Delete</th>
            </tr>
        </thead>
        <tbody>
            @php $i=1;@endphp
            @if($birth_registers->count() > 0)
                @foreach($birth_registers as $list)
                <tr>
                    <td class="text-center">{{$i++}}</td>
                    <td class="text-left">{{$list->child_name}}</td>
                    <td class="text-left">{{$list->gender_name}}</td>
                    <td class="text-left">{{ formatedDate($list->birth_date)}}</td>
                    <td class="text-left">{{ formatedTime($list->birth_time)}}</td>
                    <td class="text-left">{{$list->mother_name}}</td>
                    <td class="text-left">{{$list->father_name}}</td>
                    <td class="text-left">{{$list->birth_report}}</td>
                    <td class="thbutton">
                        <a data-id="{{ $list->birth_registers_id }}" class="btn btn-warning edit edit_birth_register" type="button" data-bs-toggle="modal" data-bs-target="#commonModal" id="edit_birth_register">
                            <i class="bi bi-pencil-square text-white"></i>
                        </a>
                    </td>

                    <td class="thbutton">
                        <a data-url="{{ route('birth-registers.destroy', $list->birth_registers_id) }}" class="btn btn-danger deleteDataCustom" class="text-danger" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Delete">
                            <i class="bi bi-trash text-white"></i>
                        </a>
                    </td>

                </tr>
                @endforeach
            @else
                <tr>
                    <td colspan="10">No Data Found</td>
                </tr>
            @endif
</tbody>

    </table>
</div>
<nav class="mt-2 row">
    <div class="col-lg-10 col-md-10 col-10 float-start">
    </div>
    <div class="col-lg-2 col-md-2 col-2 dataTables_length" id="example_length" style="text-align: right;">
        <i class="bi bi-funnel" style=" top: 11px;left: 20px;"></i>
        <select class="form-select sorting sorting-box" id="" name="example_length" aria-controls="example" style="padding-left: 30px;">
            <option value="10">Show: 10</option>
            <option value="30">Show: 30</option>
            <option value="50">Show: 50</option>
        </select>
    </div>
</nav>
</div>
