@extends('frontend.index') @section('content')
  • @lang('frontend.student_attendance')

  • @if($class) @foreach ($class as $c) @endforeach @endif
    @lang('frontend.class') @lang('frontend.total_student') @lang('frontend.present') @lang('frontend.absent')
    {{$c->class_name}} @php $total_student = DB::connection('mysql_second')->table('running_student_info')->where('class_id',$c->id)->count(); @endphp {{$total_student}} @php $total_present = DB::connection('mysql_second')->table('attendance')->where('class_id',$c->id)->where('attendance',1)->where('attend_date',date('Y-m-d'))->count(); @endphp {{$total_present}} {{$total_student - $total_present}}

@include('frontend.sidebar')
@endsection