@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::checkbox('is_visible_principal_signature_image', '1', $editStudentIdCard->is_visible_principal_signature_image, ['class' => 'form-check-input', 'id' => 'principal_signature']) !!}
{!! Form::checkbox('is_visible_vice_principal_signature_image', '1', $editStudentIdCard->is_visible_vice_principal_signature_image, ['class' => 'form-check-input', 'id' => 'vice_principal_signature']) !!}
{!! 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_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']) !!}
{!! Form::checkbox('is_visible_class_teacher_signature_image', '1', $editStudentIdCard->is_visible_class_teacher_signature_image, ['class' => 'form-check-input', 'id' => 'is_visible_class_teacher']) !!} {!! Form::label('is_visible_class_teacher', 'Is Class Teacher?', ['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 Reason Apply?', ['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( 'principal_signature_image', 'Principal Signature Image: *', ['class' => 'col-sm-4 control-label'], false, ) !!}
Principal Sign Preview {!! Form::file('principal_signature_image',[ 'class' => 'form-control hidden', 'id' => 'principal_signature_image', 'type' => 'file', 'accept' => 'image/*', 'autocomplete' => 'off', ]) !!}

{!! Form::label( 'vice_principal_signature_image', 'Vice Principal Signature Image: *', ['class' => 'col-sm-4 control-label'], false, ) !!}
Vice Principal Sign Preview {!! Form::file('vice_principal_signature_image',[ 'class' => 'form-control hidden', 'id' => 'vice_principal_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