@extends('layouts/eims_layout') @section('title', '| ' . $pageTitle) @section('content')
Edit {{ $pageTitle }}
{!! Form::open([ 'url' => '', 'enctype' => 'multipart/form-data', 'role' => 'form', 'class' => 'form-horizontal form-groups', 'id' => 'addDesignAdmitCardForm', ]) !!}
{!! Form::radio('alignment_type', 'horizontal', $editStudentIdCard->alignment_type === 'horizontal', ['class' => 'form-check-input', 'id' => 'horizontal_name', 'style' => 'margin-left: 10px;']) !!} {!! Form::radio('alignment_type', 'vertical', $editStudentIdCard->alignment_type === 'vertical', ['class' => 'form-check-input', 'id' => 'vertical_name']) !!}
{!! Form::radio('signature_person', 'administrator', $editStudentIdCard->signature_of === 'Administrator', ['class' => 'form-check-input', 'id' => 'administrator_signature', 'style' => 'margin-left: 10px;', 'onclick' => 'toggleSignatureImage()']) !!} {!! Form::radio('signature_person', 'teacher', $editStudentIdCard->signature_of === 'Teacher', ['class' => 'form-check-input', 'id' => 'teacher_signature', 'onclick' => 'toggleSignatureImage()']) !!} {!! Form::radio('signature_person', 'student', $editStudentIdCard->signature_of === 'Student', ['class' => 'form-check-input', 'id' => 'student_signature', 'onclick' => 'toggleSignatureImage()']) !!}
{!! Form::checkbox('is_visible_watermark', '1', $editStudentIdCard->is_visible_watermark, ['class' => 'form-check-input', 'id' => 'watermark']) !!} {!! Form::label('watermark', 'Is Water Mark?', ['class' => 'form-check-label']) !!}
{!! Form::checkbox('is_visible_scanner', '1', $editStudentIdCard->is_visible_qrcode, ['class' => 'form-check-input', 'id' => 'scanner']) !!} {!! Form::label('scanner', 'Is Scanner?', ['class' => 'form-check-label']) !!}
{!! Form::checkbox('is_visible_background', '1', $editStudentIdCard->is_visible_background_image, ['class' => 'form-check-input', 'id' => 'background']) !!} {!! Form::label('background', 'Is Background?', ['class' => 'form-check-label']) !!}
{!! Form::checkbox('is_visible_logo', '1', $editStudentIdCard->is_visible_logo_image, ['class' => 'form-check-input', 'id' => 'is_visible_logo']) !!} {!! Form::label('is_visible_logo', 'Is Logo?', ['class' => 'form-check-label']) !!}
@php $conditions = json_decode($editStudentIdCard->conditions, true); @endphp {{-- admit card rules --}}
{!! Form::checkbox('is_visible_condition', '1', $editStudentIdCard->is_visible_conditions, ['class' => 'form-check-input', 'id' => 'condition']) !!} {!! Form::label('condition', 'Is Condition?', ['class' => 'form-check-label']) !!}
{!! Form::text('condition_1', $conditions['1'] ?? '', [ 'class' => 'form-control', 'id' => 'condition_1', 'type' => 'text', 'placeholder' => 'Enter Condition', 'style' => 'width: 90%;', 'maxlength' => '98', ]) !!}

{!! Form::text('condition_2', $conditions['2'] ?? '', [ 'class' => 'form-control', 'id' => 'condition_2', 'type' => 'text', 'placeholder' => 'Enter Condition', 'style' => 'width: 90%;', 'maxlength' => '98', ]) !!}

{!! Form::text('condition_3', $conditions['3'] ?? '', [ 'class' => 'form-control', 'id' => 'condition_3', 'type' => 'text', 'placeholder' => 'Enter Condition', 'style' => 'width: 90%;', 'maxlength' => '98', ]) !!}

@foreach($activeStatus as $keyStatus => $status) {!! Form::radio('status', $keyStatus, $keyStatus === $editStudentIdCard->status, ['class' => 'form-check-input', 'id' => 'status'.$keyStatus, 'style' => 'margin-left: 10px;']) !!} @endforeach

{!! Form::label( 'signature_image', 'Signature Image: *', ['class' => 'col-sm-4 control-label'], false, ) !!}
Sign Preview {!! Form::file('signature_image',[ 'class' => 'form-control hidden', 'id' => 'signature_image', 'type' => 'file', 'accept' => 'image/*', 'autocomplete' => 'off', ]) !!}

{!! Form::label( 'logo_image', 'Logo Image: *', ['class' => 'col-sm-4 control-label'], false, ) !!}
Logo Image Preview {!! Form::file('logo_image', [ 'class' => 'form-control hidden', 'id' => 'logo_image', 'type' => 'file', 'accept' => 'image/*', 'autocomplete' => 'off', ]) !!}

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