<!-- View Details Modal -->
<div class="modal fade" id="viewDetailsModal{{ $student->id }}" tabindex="-1" role="dialog" aria-labelledby="detailsLabel{{ $student->id }}" aria-hidden="true">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">Student Details - {{ $student->name }}</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>

            <div class="modal-body">
                <ul class="list-group">
                    <li class="list-group-item"><strong>ID:</strong> {{ $student->id }}</li>
                    <li class="list-group-item"><strong>Name:</strong> {{ $student->name }}</li>
                    <li class="list-group-item"><strong>ID No:</strong> {{ $student->idno }}</li>
                    <li class="list-group-item"><strong>Station:</strong> {{ $student->station }}</li>
                    <li class="list-group-item"><strong>Course:</strong> {{ $student->course_name }}</li>
                    <li class="list-group-item"><strong>Phone:</strong> {{ $student->phone }}</li>
                    <li class="list-group-item"><strong>Email:</strong> {{ $student->email }}</li>
                    <li class="list-group-item"><strong>Payment Mode:</strong> {{ $student->paymentmode }}</li>
                    <li class="list-group-item"><strong>Account:</strong> {{ $student->account }}</li>
                    <li class="list-group-item"><strong>Payment Status:</strong> {{ $student->paystatus }}</li>
                     <li class="list-group-item"><strong>Company Name:</strong> {{ $student->companyname }}</li>
                    <li class="list-group-item"><strong>Registration Date:</strong> {{ \Carbon\Carbon::parse($student->created_at)->format('d-m-Y') }}</li>
                </ul>
            </div>

            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>
