{!! Form::open(['url' => session::get('role_name').'/report', 'class' => 'form-inline']) !!}
{!! Form::close() !!}
Material Stored In Store
| ID |
Date |
Material Name |
Amount |
@foreach (DB::table('materials')->get() as $m)
| {{ $m->id }} |
{{ $m->date }} |
{{ $m->materialname }} |
{{ $m->amount }} |
@endforeach
Total Material Used
| ID |
Date |
Material Name |
Amount Used |
@foreach (DB::table('regtodays')->groupBy('materialname')->get() as $u)
| {{ $u->id }} |
{{ $u->date }} |
{{ $u->materialname }} |
{{ $u->amount }} |
@endforeach
Total Students Used (By Date)
@php
$selectedDate = request('report_date');
$query = DB::table('mealcards')
->select(
'date',
DB::raw('COUNT(DISTINCT std_id) as total_students')
);
if($selectedDate){
$query->where('date', $selectedDate);
}
$usedReport = $query->groupBy('date')
->orderBy('date','desc')
->get();
@endphp
| # |
Date |
Total Students Used |
@forelse($usedReport as $key => $row)
| {{ $key + 1 }} |
{{ $row->date }} |
{{ $row->total_students }}
|
@empty
| No data found |
@endforelse
Active Cafe Student Lists
@php $cafeCount = DB::table('students')->where('std_status', '0')->count(); @endphp
Total Active Cafe Students: {{ $cafeCount }}
| ID |
Student Name |
Sex |
Status |
Action |
@foreach (DB::table('students')->where('std_status', '0')->get() as $std)
| {{ $std->id }} |
{{ $std->firstname }} {{ $std->lastname }} |
{{ $std->sex }} |
In Cafe |
|
@endforeach
Non-Cafe Students Lists
@php $nonCount = DB::table('students')->where('std_status', '1')->count(); @endphp
Total Non-Cafe Students: {{ $nonCount }}
| Student ID |
Student Name |
Sex |
Cafe Status |
Action |
@foreach (DB::table('students')->where('std_status', '1')->get() as $std)
| {{ $std->id }} |
{{ $std->firstname }} {{ $std->lastname }} |
{{ $std->sex }} |
Non-Cafe |
|
@endforeach