
<?php $__env->startSection('title'); ?> Member | Rent Car <?php $__env->stopSection(); ?>
<?php $__env->startSection('member'); ?> active <?php $__env->stopSection(); ?>
<?php $__env->startSection('styles'); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('main_content_section'); ?>

<div class="row py-3 ps-2">
    <div class="heading d-flex justify-content-start heading-margin-bottom-minus">
        <h3 class="mb-0 pb-0"><span>Member Create</span></h3>
    </div>
</div>

<!-- BEGIN: Content-->
<div class="app-content content ">
    <div class="table_wrapper card">

        <div class="card-body">
            <form action="<?php echo e(route('member.store')); ?>" method="post" onsubmit="return checkValidate(event)" enctype="multipart/form-data">
                <?php echo csrf_field(); ?>
                <div class="row">
                    <div class="col-12 mb-4">
                        <div class="card-header border-bottom-0">
                            <h3 class="my-2 text-center">Bio Data</h3>
                        </div>
                    </div>

                    <div class="col-md-6 mb-3">
                        <div class="form-group">
                            <label for="member_name">Name<span class="text-danger">(required)</span>
                            </label>
                            <input type="text" name="member_name" id="member_name" class="form-control form-control-solid" 
                                value="<?php echo e(old('member_name')); ?>" placeholder="Name" required>
                        </div>
                    
                        <?php $__errorArgs = ['member_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class=text-danger><?php echo e($message); ?></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    
                    <div class="col-md-6 mb-3">
                        <div class="form-group">
                            <label for="father_name">Father/Husband's Name<span class="text-danger">(required)</span>
                            </label>
                            <input type="text" name="father_name" id="father_name" class="form-control form-control-solid" 
                                value="<?php echo e(old('father_name')); ?>" placeholder="Father/Husband's Name" required>
                        </div>
                    
                        <?php $__errorArgs = ['father_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class=text-danger><?php echo e($message); ?></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    
                    <div class="col-md-6 mb-3">
                        <div class="form-group">
                            <label for="mother_name">Mother's Name<span class="text-danger">(required)</span>
                            </label>
                            <input type="text" name="mother_name" id="mother_name" class="form-control form-control-solid" 
                                value="<?php echo e(old('mother_name')); ?>" placeholder="Mother's Name" required>
                        </div>
                    
                        <?php $__errorArgs = ['mother_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class=text-danger><?php echo e($message); ?></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    
                    <div class="col-md-6 mb-3">
                        <div class="form-group">
                            <label for="present_address">Present Address<span class="text-danger">(required)</span>
                            </label>
                            <input type="text" name="present_address" id="present_address" class="form-control form-control-solid" 
                                value="<?php echo e(old('present_address')); ?>" placeholder="Present Address" required>
                        </div>
                    
                        <?php $__errorArgs = ['present_address'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class=text-danger><?php echo e($message); ?></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    
                    <div class="col-md-6 mb-3">
                        <div class="form-group">
                            <label for="permanent_address">Permanent Address<span class="text-danger">(required)</span>
                            </label>
                            <input type="text" name="permanent_address" id="permanent_address" class="form-control form-control-solid"
                                value="<?php echo e(old('permanent_address')); ?>" placeholder="Permanent Address" required>
                        </div>
                    
                        <?php $__errorArgs = ['permanent_address'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class=text-danger><?php echo e($message); ?></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    
                    <div class="col-md-6 mb-3">
                        <div class="form-group">
                            <label for="profession">Profession<span class="text-danger">(required)</span>
                            </label>
                            <input type="text" name="profession" id="profession" class="form-control form-control-solid" 
                                value="<?php echo e(old('profession')); ?>" placeholder="Profession" required>
                        </div>
                    
                        <?php $__errorArgs = ['profession'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class=text-danger><?php echo e($message); ?></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>

                    <div class="col-md-6 mb-3">
                        <div class="form-group">
                            <label for="birth_of_date">Birth Date<span class=" text-danger">(required)</span> </label>
                    
                            <input type="text" class=" form-control flatpickr-basic custom-date-picker" name="birth_of_date" id="birth_of_date"
                                placeholder="DD-MM-YYYY" value="<?php echo e(old('birth_of_date')); ?>" required>
                        </div>
                    
                        <?php $__errorArgs = ['birth_of_date'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class=text-danger><?php echo e($message); ?></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    
                    <div class="col-md-6 mb-3">
                        <div class="form-group">
                            <label for="nationality">Nationality<span class="text-danger">(required)</span>
                            </label>
                            <input type="text" name="nationality" id="nationality" class="form-control form-control-solid" 
                                value="<?php echo e(old('nationality')); ?>" placeholder="Nationality" required>
                        </div>
                    
                        <?php $__errorArgs = ['nationality'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class=text-danger><?php echo e($message); ?></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    
                    <div class="col-md-6 mb-3">
                        <div class="form-group">
                            <label for="professional_address">Professional Address<span class="text-danger">(required)</span>
                            </label>
                            <input type="text" name="professional_address" id="professional_address" class="form-control form-control-solid"
                                value="<?php echo e(old('professional_address')); ?>" placeholder="Professional Address" required>
                        </div>
                    
                        <?php $__errorArgs = ['professional_address'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class=text-danger><?php echo e($message); ?></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    
                    <div class="col-md-6 mb-3">
                        <div class="form-group">
                            <label for="member_phone">Phone<span class="text-danger">(required)</span>
                            </label>
                            <input type="number" name="member_phone" id="member_phone" class="form-control form-control-solid" 
                                value="<?php echo e(old('member_phone')); ?>" placeholder="Phone" required>
                        </div>
                    
                        <?php $__errorArgs = ['member_phone'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class=text-danger><?php echo e($message); ?></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    
                    <div class="col-md-12 mb-3">
                        <div class="form-group">
                            <label for="nid_no">National ID No<span class="text-danger">(required)</span>
                            </label>
                            <input type="number" name="nid_no" id="nid_no" class="form-control form-control-solid" 
                                value="<?php echo e(old('nid_no')); ?>" placeholder="National ID No" required>
                        </div>
                    
                        <?php $__errorArgs = ['nid_no'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class=text-danger><?php echo e($message); ?></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>

                    <div class="col-md-12 mb-3">
                        <div class="form-group">
                            <label for="name">Profile Photo<span class=" text-danger">(required)</span></label> <br>
                            <div class=" position-relative custom-soft-setting dropzone">
                                <div class="select_imgWith_preview custom-product-img py-2">
                                    <img id="uploadPreview" src="<?php echo e(asset('backend/template-assets/')); ?>/images/img_preview.png">
                    
                                    <div id="dropzone-block" class="custom-media-upload-block mt-3">
                                        <span class="dropzone-label fw-bolder">Upload Photo</span>
                                    </div>
                                    <input id="uploadImage" type="file" name="member_photo"
                                        onchange="PreviewImage('uploadImage','uploadPreview');" required />
                    
                                    <span onclick="cancelPreview('uploadImage','uploadPreview')" class="material-symbols-outlined"
                                        id="image_remove_buttton">
                                        close </span>
                                </div>
                            </div>

                            <?php $__errorArgs = ['member_photo'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <span class=text-danger><?php echo e($message); ?></span>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                    </div>

                </div>

                
                <div class="row mt-4">

                    <div class="col-12 mb-4">
                        <div class="card-header border-bottom-0">
                            <h3 class="my-2 text-center">Bio of Nomini</h3>
                        </div>
                    </div>

                    <div class="col-md-6 mb-3">
                        <div class="form-group">
                            <label for="nomini_name">Nomini Name<span class="text-danger">(required)</span>
                            </label>
                            <input type="text" name="nomini_name" id="nomini_name" class="form-control form-control-solid" 
                                value="<?php echo e(old('nomini_name')); ?>" placeholder="Nomini Name" required>
                        </div>
                    
                        <?php $__errorArgs = ['nomini_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class=text-danger><?php echo e($message); ?></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    
                    <div class="col-md-6 mb-3">
                        <div class="form-group">
                            <label for="nomini_father_name">Nomini Father/Husband's Name<span class="text-danger">(required)</span>
                            </label>
                            <input type="text" name="nomini_father_name" id="nomini_father_name" class="form-control form-control-solid"
                                value="<?php echo e(old('nomini_father_name')); ?>" placeholder="Father/Husband's Name" required>
                        </div>
                    
                        <?php $__errorArgs = ['nomini_father_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class=text-danger><?php echo e($message); ?></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    
                    <div class="col-md-6 mb-3">
                        <div class="form-group">
                            <label for="nomini_mother_name">Nomini Mother's Name<span class="text-danger">(required)</span>
                            </label>
                            <input type="text" name="nomini_mother_name" id="nomini_mother_name" class="form-control form-control-solid"
                                value="<?php echo e(old('nomini_mother_name')); ?>" placeholder="Mother's Name" required>
                        </div>
                    
                        <?php $__errorArgs = ['nomini_mother_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class=text-danger><?php echo e($message); ?></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    
                    <div class="col-md-6 mb-3">
                        <div class="form-group">
                            <label for="nomini_present_address">Nomini Present Address<span class="text-danger">(required)</span>
                            </label>
                            <input type="text" name="nomini_present_address" id="nomini_present_address"
                                class="form-control form-control-solid" value="<?php echo e(old('nomini_present_address')); ?>" 
                                placeholder="Present Address" required>
                        </div>
                    
                        <?php $__errorArgs = ['nomini_present_address'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class=text-danger><?php echo e($message); ?></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    
                    <div class="col-md-6 mb-3">
                        <div class="form-group">
                            <label for="nomini_permanent_address">Nomini Permanent Address<span class="text-danger">(required)</span>
                            </label>
                            <input type="text" name="nomini_permanent_address" id="nomini_permanent_address"
                                class="form-control form-control-solid" value="<?php echo e(old('nomini_permanent_address')); ?>" 
                                placeholder="Permanent Address" required>
                        </div>
                    
                        <?php $__errorArgs = ['nomini_permanent_address'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class=text-danger><?php echo e($message); ?></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    
                    <div class="col-md-6 mb-3">
                        <div class="form-group">
                            <label for="nomini_profession">Nomini Profession<span class="text-danger">(required)</span>
                            </label>
                            <input type="text" name="nomini_profession" id="nomini_profession" class="form-control form-control-solid"
                                value="<?php echo e(old('nomini_profession')); ?>" placeholder="Nomini Profession" required>
                        </div>
                    
                        <?php $__errorArgs = ['nomini_profession'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class=text-danger><?php echo e($message); ?></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    
                    <div class="col-md-6 mb-3">
                        <div class="form-group">
                            <label for="nomini_birth_of_date">Nomini Birth Date<span class="text-danger">(required)</span> </label>
                    
                            <input type="text" class=" form-control flatpickr-basic custom-date-picker" name="nomini_birth_of_date"
                                id="nomini_birth_of_date" placeholder="DD-MM-YYYY" value="<?php echo e(old('nomini_birth_of_date')); ?>" required>
                        </div>
                    
                        <?php $__errorArgs = ['nomini_birth_of_date'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class=text-danger><?php echo e($message); ?></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    
                    <div class="col-md-6 mb-3">
                        <div class="form-group">
                            <label for="nomini_nationality">Nomini Nationality<span class="text-danger">(required)</span>
                            </label>
                            <input type="text" name="nomini_nationality" id="nomini_nationality" class="form-control form-control-solid"
                                value="<?php echo e(old('nomini_nationality')); ?>" placeholder="Nomini Nationality" required>
                        </div>
                    
                        <?php $__errorArgs = ['nomini_nationality'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class=text-danger><?php echo e($message); ?></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    
                    <div class="col-md-6 mb-3">
                        <div class="form-group">
                            <label for="nomini_professional_address">Nomini Professional Address<span class="text-danger">(required)</span>
                            </label>
                            <input type="text" name="nomini_professional_address" id="nomini_professional_address"
                                class="form-control form-control-solid" value="<?php echo e(old('nomini_professional_address')); ?>" 
                                placeholder="Professional Address" required>
                        </div>
                    
                        <?php $__errorArgs = ['nomini_professional_address'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class=text-danger><?php echo e($message); ?></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    
                    <div class="col-md-6 mb-3">
                        <div class="form-group">
                            <label for="nomini_phone">Nomini Phone<span class="text-danger">(required)</span>
                            </label>
                            <input type="number" name="nomini_phone" id="nomini_phone" class="form-control form-control-solid" 
                                value="<?php echo e(old('nomini_phone')); ?>" placeholder="Nomini Phone" required>
                        </div>
                    
                        <?php $__errorArgs = ['nomini_phone'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class=text-danger><?php echo e($message); ?></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    
                    <div class="col-md-6 mb-3">
                        <div class="form-group">
                            <label for="relation">Relation<span class="text-danger">(required)</span>
                            </label>
                            <input type="text" name="relation" id="relation" class="form-control form-control-solid" 
                                value="<?php echo e(old('relation')); ?>" placeholder="Relation" required>
                        </div>
                    
                        <?php $__errorArgs = ['relation'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class=text-danger><?php echo e($message); ?></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    
                    <div class="col-md-6 mb-3">
                        <div class="form-group">
                            <label for="nomini_nid_no">Nomini National ID No<span class="text-danger">(required)</span>
                            </label>
                            <input type="number" name="nomini_nid_no" id="nomini_nid_no" class="form-control form-control-solid"
                                value="<?php echo e(old('nomini_nid_no')); ?>" placeholder="National ID No" required>
                        </div>
                    
                        <?php $__errorArgs = ['nomini_nid_no'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class=text-danger><?php echo e($message); ?></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    
                    <div class="col-md-12 mb-2">
                        <div class="form-group">
                            <label for="name">Profile Image<span class=" text-danger">(required)</span></label> <br>
                            <div class=" position-relative custom-soft-setting dropzone">
                                <div class="select_imgWith_preview custom-product-img py-2">
                                    <img id="uploadPreviewfnc" src="<?php echo e(asset('backend/template-assets/')); ?>/images/img_preview.png">
                    
                                    <div id="dropzone-block" class="custom-media-upload-block mt-3">
                                        <span class="dropzone-label fw-bolder">Upload Photo</span>
                                    </div>
                                    <input id="uploadImagefnc" type="file" name="nomini_photo"
                                        onchange="PreviewImageFNC('uploadImagefnc','uploadPreviewfnc');" required />
                    
                                    <span onclick="cancelPreviewFNC('uploadImagefnc','uploadPreviewfnc')" class="material-symbols-outlined"
                                        id="image_remove_buttton">
                                        close </span>
                                </div>
                            </div>

                            <?php $__errorArgs = ['nomini_photo'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <span class=text-danger><?php echo e($message); ?></span>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                    </div>

                    <div class="col-12 d-flex align-items-center" style="margin-top: 15px;">
                        <input type="submit" name="submit" class="btn btn btn-success" value="Save Mamber">
                    </div>

                </div>
            </form>
        </div>

    </div>

</div>
<!-- END: Content-->

<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>
<script>
    $(document).ready(function(){
        $("#birth_of_date, #nomini_birth_of_date").flatpickr({
            allowInput: true,
            dateFormat: "d-m-Y",
        });
    });

    function checkValidate(event) {
        var mobileNumber1 = $("#member_phone").val();
        if (mobileNumber1 != '' && mobileNumber1.length != 11) { 
            event.preventDefault();
            toastr.error("Mobile number must be 11 digit."); 
        }
        
        var mobileNumber2 = $("#nomini_phone").val();
        if (mobileNumber2 != '' && mobileNumber2.length != 11) { 
            event.preventDefault();
            toastr.error("Nomini mobile number must be 11 digit."); 
        }

        return true;
    }

    //For image preview...
    function PreviewImage(selectFile, previewImg) {
        var oFReader = new FileReader();
        oFReader.readAsDataURL(document.getElementById(selectFile).files[0]);

        oFReader.onload = function (oFREvent) {
            document.getElementById(previewImg).src = oFREvent.target.result;
        };
    }

    function cancelPreview(selectFile, previewImg) {
        const img = document.getElementById(previewImg);
        img.src = window.location.origin + "/backend/template-assets/images/img_preview.png";
        $("#" + selectFile).val('');
    }
    
    //For image preview...
    function PreviewImageFNC(selectFile, previewImg) {
        var oFReader = new FileReader();
        oFReader.readAsDataURL(document.getElementById(selectFile).files[0]);

        oFReader.onload = function (oFREvent) {
            document.getElementById(previewImg).src = oFREvent.target.result;
        };
    }

    function cancelPreviewFNC(selectFile, previewImg) {
        const img = document.getElementById(previewImg);
        img.src = window.location.origin + "/backend/template-assets/images/img_preview.png";
        $("#" + selectFile).val('');
    }
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\Project\Personal-Project\Office-Project\Next-Web-Service\muktijoddhe-somobai-somity\resources\views/admin/member/create.blade.php ENDPATH**/ ?>