@extends('layouts.app') @section('content')
@include('layouts.leftside-menubar')
@include('components.pages-bar',['pageTitle' =>''. trans('Exams').' / '. trans('Seat Plan').'']) @include('components.sectionbar.examination-bar')
{!! Form::open(['method' => 'post','autocomplete'=>'off']) !!}
{!! Form::label('section', trans('Section'), ['class' => 'control-label']) !!} {!! Form::select('section',$pluckSection ?? array(), $section ?? null, array('id' => 'sections', 'class' => 'select2 form-control','required','placeholder' =>trans('Choose'))) !!} @error('section') {{ $message }} @enderror
{!! Form::label('exam', trans('Exam'), ['class' => 'control-label']) !!} {!! Form::select('exam', $pluckExam ?? array() , $exam_id?? null , ['class' => 'select2 form-control','required','placeholder'=>trans('Choose')]) !!} @error('exam') {{ $message }} @enderror
{!! Form::close() !!} @if (isset($students) && $students->count())
@lang('Print')
@foreach($students as $student)

{{school('name')}}

{{school('address')}}

{{$exam->exam_name}}

@lang('Student Id') : {{$student->student_code}}
@lang('Name') : {{$student->name}}
@lang('Class') : {{$student->section->class->name}}
@lang('Section') : {{$student->section->section_number}}
@lang('Group') : {{$student->section->class->group}}
@lang('Session') : {{getSessionById($student->session,'schoolyear')}}
@endforeach
@else
@lang('No Related Data Found.')
@endif
@endsection {{-- /*The window.onload function will run as soon as the window loads in the browser */ window.onload = function () { /* This method returns the html element that has the ID attribute with the specified value. */ let canvas = document.getElementById("canv"); /* This method returns a drawing context on the canvas, or null if the context identified is not supported. */ let context = canvas.getContext("2d"); /* It will change the style and appearance of the text to make it look more geeky. */ context.font = "50px serif"; context.fillStyle = "green"; context.textAlign = "center"; let string = "{{school('name')}}"; let angle = Math.PI * 0.6; // in radians let radius = 200; context.translate(300, 300); context.rotate(-1 * angle / 2); for (let i = 0; i < string.length; i++) { /* It is worth noting that we are not rotating the text,here the whole context is being rotated and translated, and the letters are just filled in it. */ context.rotate(angle / string.length); context.save(); context.translate(0, -1 * radius); context.fillText(string[i], 0, 0); context.restore(); } }; --}}