@extends('layouts/eims_layout') @section('title', '| ' . $pageTitle) @section('content')
Add {{ $pageTitle }}
{!! Form::open([ 'url' => '', 'enctype' => 'multipart/form-data', 'role' => 'form', 'class' => 'form-horizontal form-groups', 'id' => 'addDesignAdmitCardForm', ]) !!}
{{-- template name --}}
{!! Form::label( 'name', 'Template name: *', ['class' => 'col-sm-4 control-label'], false, ) !!}
{!! Form::text('name', $value = null, [ 'class' => 'form-control', 'id' => 'name', 'type' => 'text', 'placeholder' => 'Enter template name', ]) !!}

{{-- Conditions --}}
{!! Form::label( 'conditions', 'Conditions: *', ['class' => 'col-sm-4 control-label'], false, ) !!}
{!! Form::text('conditions[]', null, [ 'class' => 'form-control', 'id' => 'conditions', 'type' => 'text', 'placeholder' => 'Enter admit card rules', 'rows' => 5, ]) !!}

{{-- Show conditions to front or back --}}
{!! Form::label( 'show_conditions_to_front', 'Show conditions to: *', ['class' => 'col-sm-4 control-label'], false, ) !!}
{!! Form::radio('show_conditions_to_front', 1, false, ['class' => 'form-check-input', 'id' => 'show_conditions_to_front_front']) !!} {!! Form::label('show_conditions_to_front_front', 'Front', ['class' => 'form-check-label']) !!}
{!! Form::radio('show_conditions_to_front', 0, false, ['class' => 'form-check-input', 'id' => 'show_conditions_to_front_back']) !!} {!! Form::label('show_conditions_to_front_back', 'Back', ['class' => 'form-check-label']) !!}

{{-- signature_of --}}
{!! Form::label( 'signature_of', 'Signature of: *', ['class' => 'col-sm-4 control-label'], false, ) !!}
@foreach($signatures as $signature)
{!! Form::radio('signature_of', $signature, null, ['class' => 'form-check-input', 'id' => "signature_of_$signature"]) !!} {!! Form::label("signature_of_$signature", $signature, ['class' => 'form-check-label']) !!}
@endforeach

{!! Form::label('', 'Visible Field:', ['class' => 'control-label']) !!}
{!! Form::checkbox('is_visible_exam_name', '1', false, ['class' => 'form-check-input', 'id' => 'is_visible_exam_name']) !!} {!! Form::label('is_visible_exam_name', 'Exam Name', ['class' => 'form-check-label']) !!}
{!! Form::checkbox('is_visible_student_name', '1', false, ['class' => 'form-check-input', 'id' => 'is_visible_student_name']) !!} {!! Form::label('is_visible_student_name', 'Student Name', ['class' => 'form-check-label']) !!}
{!! Form::checkbox('is_visible_date_of_birth', '1', false, ['class' => 'form-check-input', 'id' => 'is_visible_date_of_birth']) !!} {!! Form::label('is_visible_date_of_birth', 'Date of Birth', ['class' => 'form-check-label']) !!}
{!! Form::checkbox('is_visible_gender', '1', false, ['class' => 'form-check-input', 'id' => 'is_visible_gender']) !!} {!! Form::label('is_visible_gender', 'Gender', ['class' => 'form-check-label']) !!}
{!! Form::checkbox('is_visible_photo', '1', false, ['class' => 'form-check-input', 'id' => 'is_visible_photo']) !!} {!! Form::label('is_visible_photo', 'Photo', ['class' => 'form-check-label']) !!}
{!! Form::checkbox('is_visible_exam_routine', '1', false, ['class' => 'form-check-input', 'id' => 'is_visible_exam_routine']) !!} {!! Form::label('is_visible_exam_routine', 'Exam Routine', ['class' => 'form-check-label']) !!}
{!! Form::checkbox('is_visible_conditions', '1', false, ['class' => 'form-check-input', 'id' => 'is_visible_conditions']) !!} {!! Form::label('is_visible_conditions', 'Conditions', ['class' => 'form-check-label']) !!}
{!! Form::checkbox('is_visible_background_image', '1', false, ['class' => 'form-check-input', 'id' => 'is_visible_background_image']) !!} {!! Form::label('is_visible_background_image', 'Background Image', ['class' => 'form-check-label']) !!}
{{-- signature_image --}}
Signature Image

Signature Image

{!! Form::file('signature_image', [ 'class' => 'hidden', 'id' => 'signature_image', 'type' => 'file', 'accept' => 'image/*', 'autocomplete' => 'off', ]) !!}
{{-- background_image --}}
Student Photo

Background Image

{!! Form::file('background_image', [ 'class' => 'hidden', 'id' => 'background_image', 'type' => 'file', 'accept' => 'image/*', 'autocomplete' => 'off', ]) !!}
{!! Form::label('submit', ' ', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::submit('Submit', ['id' => 'add', 'class' => 'btn btn-info']) !!} Close
{!! Form::close() !!}
@endsection