@extends('backend.layouts.master') {{-- Use your custom layout file --}} @section('content')
Student Details
Add New
Student Information

Name: {{ $student->name }}

Roll No: {{ $student->roll_no }}

Email: {{ $student->email }}

Phone: {{ $student->phone }}

College Details

Course: {{ $student->course }}

Department: {{ $student->department }}

Year: {{ $student->year }}

Hostel Details

Hostel Name: {{ $student->hostel_name }}

Room No: {{ $student->room_no }}

Mess Details

Mess Type: {{ $student->mess_type }}

Mess Fees Paid: {{ $student->mess_fees_paid ? 'Yes' : 'No' }}

Disciplinary / Fines
@if($student->fines->isEmpty())

No fines or disciplinary actions.

@else
    @foreach($student->fines as $fine)
  • {{ $fine->description }} ₹{{ $fine->amount }}
  • @endforeach
@endif
Attendance Details

Total Classes: {{ $student->attendance_total }}

Attended: {{ $student->attendance_present }}

Percentage: @php $percentage = $student->attendance_total > 0 ? round(($student->attendance_present / $student->attendance_total) * 100, 2) : 0; @endphp {{ $percentage }}%

@endsection