@extends('layouts.admin') @section('page-title','') @section('breadcrumb') @include('admin.partials.crumb',[ 'crumbs'=>[ route('admin.dashboard')=>__('default.dashboard'), route('admin.certificate.index')=>__lang('certificates'), '#'=>__lang('edit') ]]) @endsection @section('content')
@csrf
{{ __lang('reset') }}
@php $elements = [ 'student_name','session_name','session_start_date','session_end_date','date_generated','company_name','certificate_number' ]; @endphp
@php foreach($elements as $element): @endphp
{{ ucfirst(str_replace('_',' ',$element)) }}
@php endforeach; @endphp


{{ __lang('class-attendance-dates') }}
@php foreach($lessons as $lessonRow): @endphp
@php endforeach; @endphp
{{ __lang('custom-student-fields') }}
@php foreach($studentFields as $field): @endphp
@php endforeach; @endphp

{{ __lang('set-font-size') }}

@php if(empty($row->html)): @endphp
[STUDENT_NAME]
[SESSION_NAME]
[SESSION_START_DATE]
[SESSION_END_DATE]
[DATE_GENERATED]
[COMPANY_NAME]
[CERTIFICATE_NUMBER]
@php $count= 230; foreach($lessons as $lessonRow): @endphp @php $count = $count + 30; @endphp @php endforeach; @endphp @php $count = 20; @endphp @php foreach($studentFields as $field): @endphp @php $count = $count + 30; @endphp @php endforeach; @endphp
@php else: @endphp {!! $row->html !!} @php endif; @endphp
{{ formElement($form->get('html')) }}
{{ formLabel($form->get('name')) }} {{ formElement($form->get('name')) }}

{{ formElementErrors($form->get('name')) }}

{{ formLabel($form->get('course_id')) }}
{{ formElement($form->get('course_id')) }}

{{ formElementErrors($form->get('course_id')) }}

{{ __lang('certificate-warning') }}

{{ formLabel($form->get('description')) }} {{ formElement($form->get('description')) }}

{{ formElementErrors($form->get('description')) }}

{{ formLabel($form->get('enabled')) }} {{ formElement($form->get('enabled')) }}

{{ formElementErrors($form->get('enabled')) }}

{{ formLabel($form->get('orientation')) }} {{ formElement($form->get('orientation')) }}

{{ formElementErrors($form->get('orientation')) }}

{{ __lang('certificate-orientation-warning') }}

{{ formLabel($form->get('max_downloads')) }} {{ formElement($form->get('max_downloads')) }}

{{ formElementErrors($form->get('max_downloads')) }}

{{ __lang('max-download-help') }}



{{ formElement($form->get('image')) }} {{__lang('browse')}}  |  {{ __lang('clear') }}
{{ formLabel($form->get('payment_required')) }} {{ formElement($form->get('payment_required')) }}

{{ formElementErrors($form->get('payment_required')) }}

@php foreach($form->getElements() as $element): @endphp @php if(preg_match('#lesson_#',$element->getName())): @endphp
getName(),$certificate->lessons()->where('id',$element->getCheckedValue())->first())) checked @endif> {{ $element->getLabel() }}
@php endif; @endphp @php endforeach; @endphp

any_session)==1) checked @endif> {{ $form->get('any_session')->getLabel() }}
{{ __lang('selected-test') }}
{{ __lang('test') }} {{ __lang('passmark') }}
@{{ test.name }} @{{test.passmark}}%
{{ __lang('add-tests') }}
@php foreach($allTests as $row): @endphp @php endforeach; @endphp
{{ __lang('test') }} {{ __lang('created-on') }} {{ __lang('passmark') }} {{ __lang('enabled') }}
{{ $row->name }} {{ showDate('d/M/Y',$row->created_at) }} {{ $row->passmark }}% {{ boolToString($row->enabled) }}
{{ __lang('selected-homework') }}
@verbatim @endverbatim
{{ __lang('homework') }} {{ __lang('passmark') }}
{{ assignment.name }} {{assignment.passmark}}%
{{ __lang('add-homework') }}
@php foreach($allAssignments as $row): @endphp @php endforeach; @endphp
{{ __lang('homework') }} {{ __lang('created-on') }} {{ __lang('passmark') }}
{{ $row->title }} {{ showDate('d/M/Y',$row->created_at) }} {{ $row->passmark }}%
@endsection @section('footer') @endsection