@extends('layouts.studentapp') @section('title','Hostels List') @include('admin.components.toster') @include('admin.components.datatablecss') @section('content')
@foreach ($hostelstudents as $item) @endforeach
# Hostel UID Student Name Hostel Type Hostel Hostel Room Year Month Fee Date Status Due Amount Action
{{ $loop->iteration }} {{ $item->hostel_uid }} {{ optional($item->studentuser)->name }} {{ optional($item->hostel->hosteltype)->name }} {{ optional($item->hostel)->name }} {{ $item->hostelroom?item->hostelroom->name:'Not Assign' }} {{ optional($item->year)->name }} {{ optional($item->month)->name }} {{ optional($item->hostel)->fee }} {{ $item->created_at->format('d-m-Y') }} {{ $item->status }} {{$item->dueamount($item->id)}} Download
@endsection @include('admin.components.tosterjs') @include('admin.components.datatablejs')