@extends('backEnd.master') @section('title') @lang('exam.exam') @endsection @section('mainContent')
@if(isset($exam)) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'exam-setup-store', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }} @else {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'exam', 'method' => 'PUT', 'enctype' => 'multipart/form-data']) }} @endif

@if(isset($exam)) @lang('common.add') @else @lang('common.update') @endif @lang('exam.exam')

@php $h = 0; @endphp @foreach($classes as $class)
id, old('class_ids'))) ? ' checked' : '' }}>
@php $h++; @endphp @endforeach
@if($errors->has('class_ids')) {{ $errors->first('class_ids') }} @endif
@foreach($sections as $section)
@endforeach
@if($errors->has('section_ids')) {{ $errors->first('section_ids') }} @endif
@foreach($subjects as $subject)
@endforeach
@if($errors->has('subjects_ids')) {{ $errors->first('subjects_ids') }} @endif
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('class')) {{ $errors->first('class') }} @endif
@if ($errors->has('section')) {{ $errors->first('section') }} @endif
@if ($errors->has('subject')) {{ $errors->first('subject') }} @endif
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('exam_mark')) {{ $errors->first('exam_mark') }} @endif

@lang('exam.add_mark_distributions')

@lang('exam.exam_title') @lang('exam.exam_mark') @lang('common.action')
@lang('exam.result')
{{ Form::close() }}
@endsection