@extends('backpack::layout') @section('header')

{{ __('base.marks.title') }}

@endsection @section('content')
@php //$status = \App\Models\Student::find(\Auth::id()); if(!empty($status)){ $status_slug = $status->student_status_slug; } else { $status_slug = 'active'; } @endphp @if(!in_array($status_slug, ['suspend', 'deduct']))
{{ __('main.semesters') }}: {{ __('main.all_semesters') }} @if(!empty($semesters)) @foreach ($semesters as $key => $semester) {{ $semester }} @endforeach @endif
@if(!empty($statements))
@foreach($statements as $statement) @php $student = $statement->students->where('id', auth()->user()->id)->first(); # $marsk = $marsk->pluck('value', 'mark_group.slug')->toArray(); $marsk = $student->marks->where('statement_id', $statement->id)->pluck('value', 'mark_group.slug'); @endphp @php $marsk = $student->marks->where('statement_id', $statement->id); $marsk = $marsk->pluck('value', 'mark_group.slug')->toArray(); $intermediate_sum = $student->marks ->where('statement_id', $statement->id) ->where('mark_group_id','>=', 11) ->where('mark_group_id','<=', 25) ->pluck('value', 'mark_group.slug') ->sum(); $disabled = function() use ($student){ if( $student->student_status_slug != 'active' ){ echo 'disabled'; } }; $readonly = function() use ($student){ if( $student->student_status_slug == 'suspend' ){ echo 'readonly '; echo 'style="border-color: #ffc107; cursor: not-allowed;"'; } if( $student->student_status_slug == 'deduct'){ echo 'readonly '; echo 'style="border-color: #dc3545; cursor: not-allowed;"'; } }; $isSuspend = false; if($student->student_status_slug == 'suspend'){ $isSuspend = true; } @endphp @endforeach
{{ __('base.subjects_plural') }} {{ __('base.bachelor.actual_biology') }} {{ __('base.bachelor.article_method') }} {{ __('base.bachelor.technology_style') }} {{ __('base.bachelor.presentation_content') }} {{ __('base.bachelor.presentation_design') }} {{ __('base.bachelor.bid') }}
{{ $statement->subject->name }} {{ $marsk['bibliographic_sources'] ?? '' }} {{ $marsk['research_methodology'] ?? '' }} {{ $marsk['correct_work'] ?? '' }} {{ $marsk['presentation_content'] ?? '' }} {{ $marsk['presentation_design'] ?? '' }} {{ $marsk['final_rate'] ?? '' }} Настоящая:{{ $marsk['final_rate'] ?? 'Нету' }}
@if(!empty($statements))
@if(!empty($statements->previousPageUrl())) @endif @if($statements->currentPage() > 3) 1 @endif @if($statements->currentPage() > 4) ... @endif @if($statements->currentPage() > 2) {{ $statements->currentPage() - 2 }} @endif @if(!empty($statements->previousPageUrl())) {{ $statements->currentPage() - 1 }} @endif {{ $statements->currentPage() }} @if($statements->hasMorePages()) {{ $statements->currentPage() + 1 }} @endif @if(($statements->lastPage() - $statements->currentPage()) > 2) {{ $statements->currentPage() + 2 }} @endif @if(($statements->lastPage() - $statements->currentPage()) > 3) ... @endif @if(!($statements->lastPage() == $statements->currentPage()) and ($statements->lastPage() - $statements->currentPage()) > 1) {{ $statements->lastPage() }} @endif @if($statements->hasMorePages()) @endif
@endif
GPA = {{ $gpa }}
@endif
@else

{{ __('student.title') }}!

{{ __('student.text') }}
@endif
@endsection