@extends('layouts.main_dashboard.app') @section('title', __('dashboard.View Mark Record')) @section('page_heading', __('dashboard.View Mark Record')) @section('breadcrumb') @endsection @section('actions') {{ __('dashboard.Edit') }} @endsection @section('content')

{{ __('dashboard.Student Marks') }}

@if($mark->students->isNotEmpty())
@foreach($mark->students as $studentMark) @if($studentMark->student) @endif @endforeach
{{ __('dashboard.Student Name') }} {{ __('dashboard.Mark') }} {{ __('dashboard.Status') }}
{{ $studentMark->student->name }} @if($studentMark->absent) {{ __('dashboard.Absent') }} @else {{ $studentMark->mark ?? 0 }} / {{ $mark->score }} @endif @if(!$studentMark->absent && !is_null($studentMark->mark)) @if($studentMark->mark >= ($mark->score / 2)) {{ __('dashboard.Pass') }} @else {{ __('dashboard.Fail') }} @endif @endif
@else
{{ __('dashboard.No student marks have been entered for this record.') }}
@endif

{{ __('dashboard.Summary') }}

{{ $mark->title }}
{{ $mark->date->format('d M, Y') }}

{{ $mark->description }}

{{ __('dashboard.Status') }}
@if($mark->is_published) {{ __('dashboard.Published') }} @else {{ __('dashboard.Unpublished') }} @endif
{{ __('dashboard.Total Score') }}
{{ $mark->score }}
@endsection