<x-admin.layout>
    <x-slot name="title">Marriage Registration Report / विवाह नोंदणी अहवाल</x-slot>
    <x-slot name="heading">Marriage Registration Report / विवाह नोंदणी अहवाल</x-slot>

    <div class="row">
        <div class="col-lg-12">
            <div class="card">
                <div class="card-header">
                    <div class="row">
                        <div class="col-sm-12">
                            <h4>Reports</h4>
                        </div>
                    </div>
                </div>
                <div class="card-body">
                    <div class="table-responsive">
                        <table id="buttons-datatables" class="table table-bordered nowrap align-middle" style="width:100%">
                            <thead>
                                <tr>
                                    <th>Sr No</th>
                                    <th>Service Name</th>
                                    <th>Application NO</th>
                                    <th>Date</th>
                                    <th>Action</th>
                                </tr>
                            </thead>
                            <tbody>
                                @forelse($data as $key => $item)
                                    <tr>
                                        <td>{{ $key + 1 }}</td>
                                        <td>Issuance Of Marriage Registration Certificate</td>
                                        <td>{{ $item->application_no }}</td>
                                        <td>{{ $item->created_at->format('d-m-Y') }}</td>
                                         <td>
                                            <a href="{{ route('marriage.goshwar1', ['id' => $item->id]) }}" class="btn btn-sm btn-success">
                                                Goshwar 1
                                            </a>
                                            <a href="{{ route('marriage.goshwar3', ['id' => $item->id]) }}" class="btn btn-sm btn-primary">
                                                Goshwar 3
                                            </a>
                                        </td>

                                    </tr>
                                @empty
                                    <tr align="center">
                                        <td colspan="7">No Data Found</td>
                                    </tr>
                                @endforelse
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</x-admin.layout>
