@extends('backEnd.master') @section('title') @lang('student.my_profile') @endsection @push('css') @endpush @section('mainContent') @php @$setting = generalSetting(); if (!empty(@$setting->currency_symbol)) { @$currency = @$setting->currency_symbol; } else { @$currency = '$'; } @endphp

@lang('student.welcome_to') {{ @$student_detail->full_name }}

@if (userPermission('dashboard-subject')) @endif @if (userPermission('dashboard-notice') && userPermission('student_noticeboard')) @endif @if (userPermission('dashboard-exam')) @endif @if (userPermission('dashboard-online-exam')) @endif @if (userPermission('dashboard-teachers')) @endif @if (userPermission('dashboard-issued-books')) @endif @if (userPermission('dashboard-pending-homeworks')) @endif @if (userPermission('dashboard-attendance-in-current-month')) @endif @php $feesDue = 0; $totalPoint = 0; $balance_fees = 0; foreach ($student_detail->studentRecords as $record) { foreach ($record->feesInvoice as $key => $studentInvoice) { $amount = $studentInvoice->Tamount; $weaver = $studentInvoice->Tweaver; $fine = $studentInvoice->Tfine; $paid_amount = $studentInvoice->Tpaidamount; $sub_total = $studentInvoice->Tsubtotal; $feesDue += $amount + $fine - ($paid_amount + $weaver); } foreach ($record->directFeesInstallments as $feesInstallment) { $balance_fees += discount_fees($feesInstallment->amount, $feesInstallment->discount_amount) - $feesInstallment->paid_amount; } foreach ($record->incidents as $incident) { $totalPoint += $incident->point; } } @endphp @if (moduleStatusCheck('BehaviourRecords')) @endif
@if (userPermission('student_class_routine')) @include('backEnd.studentPanel._class_routine_content', [ 'sm_weekends' => $sm_weekends, 'records' => $records, 'routineDashboard' => $routineDashboard, ]) @endif @if (userPermission('student_my_attendance')) @include('backEnd.studentPanel.inc._attendance_statistics') @include('backEnd.studentPanel.inc._dashboard_subject_attendance_tab') @endif
@if (userPermission('fees.student-fees-list')) @include('backEnd.studentPanel.inc._fees_info', ['currency' => $currency]) @endif
@if (userPermission('student_exam_schedule'))

@lang('exam.exam_routine')

@foreach ($records as $key => $record) @if ($record->Exam) @foreach ($record->Exam as $key => $exam) @php $exam_routines = App\SmExamSchedule::getAllExams($exam->class_id, $exam->section_id, $exam->exam_type_id); @endphp
@foreach ($exam_routines as $date => $exam_routine) @endforeach
@lang('exam.date_&_day') @lang('exam.subject') @lang('common.class_Sec') @lang('exam.teacher') @lang('exam.time') @lang('exam.duration') @lang('exam.room')
{{ dateConvert($exam_routine->date) }}
{{ Carbon::createFromFormat('Y-m-d', $exam_routine->date)->format('l') }}
{{ $exam_routine->subject ? $exam_routine->subject->subject_name : '' }} {{ $exam_routine->subject ? '(' . $exam_routine->subject->subject_code . ')' : '' }} {{ $exam_routine->class ? $exam_routine->class->class_name : '' }} {{ $exam_routine->section ? '(' . $exam_routine->section->section_name . ')' : '' }} {{ $exam_routine->teacher ? $exam_routine->teacher->full_name : '' }} {{ date('h:i A', strtotime(@$exam_routine->start_time)) }} - {{ date('h:i A', strtotime(@$exam_routine->end_time)) }} @php $duration = strtotime($exam_routine->end_time) - strtotime($exam_routine->start_time); @endphp {{ timeCalculation($duration) }} {{ $exam_routine->classRoom ? $exam_routine->classRoom->room_no : '' }}
@endforeach @endif @endforeach
@endif
@if (userPermission('student_teacher'))
@include('backEnd.studentPanel.inc._teacher_list')
@endif @if (userPermission('leave'))
@include('backEnd.studentPanel.inc._leave_type')
@endif
@include('backEnd.studentPanel.inc._complaint_list_tab')
@if (userPermission('dashboard-calendar'))
@include('backEnd.communicate.commonAcademicCalendar')
@endif
@endsection @include('backEnd.communicate.academic_calendar_css_js')