<?php $__env->startSection('content'); ?>



<link href="<?php echo e(asset('assets/css/vendor/quill.core.css')); ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo e(asset('assets/css/vendor/quill.snow.css')); ?>" rel="stylesheet" type="text/css" />


<div class="container mt-2">
		<?php $__env->startComponent('components.breadcrumb'); ?>
            <?php $__env->slot('title'); ?>
                <?php echo app('translator')->get('vice_principal.addtitle'); ?>
            <?php $__env->endSlot(); ?>
            <?php $__env->slot('breadcrumb1'); ?>
                <?php echo app('translator')->get('common.dashboard'); ?>
            <?php $__env->endSlot(); ?>
            <?php $__env->slot('breadcrumb1_link'); ?>
                <?php echo e(route('dashboard')); ?>

            <?php $__env->endSlot(); ?>
            <?php $__env->slot('action_button1_class'); ?>
                btn-primary
            <?php $__env->endSlot(); ?>
        <?php echo $__env->renderComponent(); ?>
	<div class="col-12">
		<div class="card">
			<div class="card-body">
				<h3><?php echo app('translator')->get('vice_principal.addtitle'); ?></h3><br>
				<?php if($errors->any()): ?>
				<div class="alert alert-danger">
					<ul>
						<?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
						<li><?php echo e($error); ?></li>
						<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
					</ul>
				</div>
				<?php endif; ?>
				<form method="post" class="btn-submit" action="<?php echo e(route('vice_principal_message.store')); ?>" enctype="multipart/form-data">
					<?php echo csrf_field(); ?>
					<div class="row myinput">
						<div class="form-group mb-3 col-md-6">
							<label><?php echo app('translator')->get('vice_principal.name'); ?>: <span class="text-danger" style="font-size: 15px;">*</span></label>
							<div class="input-group mt-2">
								<input class="form-control" type="text" name="name" id="name"  required="" value="<?php echo e($data->name); ?>">
							</div>
						</div>
						<div class="form-group mb-3 col-md-6">
							<label><?php echo app('translator')->get('vice_principal.name_bn'); ?>: </label>
							<div class="input-group mt-2">
								<input class="form-control" type="text" name="name_bn" id="name_bn"  value="<?php echo e($data->name_bn); ?>">
							</div>
						</div>
						<div class="form-group mb-3 col-md-6">
							<label><?php echo app('translator')->get('vice_principal.details'); ?>: <span class="text-danger" style="font-size: 15px;">*</span></label>
							<div class="input-group mt-2">
								<textarea id="summernote"  class="form-control w-100" rows="8" type="text" name="details" required=""><?php echo $data->details; ?></textarea>
							</div>
						</div>
						<div class="form-group mb-3 col-md-6">
							<label><?php echo app('translator')->get('vice_principal.details_bn'); ?>: </label>
							<div class="input-group mt-2">
								<textarea id="summernote1"  class="form-control w-100" rows="8" type="text" name="details_bn" ><?php echo $data->details_bn; ?></textarea>
							</div>
						</div>
						<div class="form-group mb-3 col-md-12">
							<label><?php echo app('translator')->get('vice_principal.image'); ?>: <span class="text-danger" style="font-size: 15px;">*</span></label>
							<div class="input-group mt-2">
								<input class="form-control" type="file" name="image" id="image">
							</div>
                            <img src="<?php echo e(asset('vice_principal_image')); ?>/<?php echo e($data->image); ?>" style="max-height: 100px;">
						</div>
						<div class="modal-footer border-0">
							<button type="button" class="btn btn-secondary border-0" onClick="window.location.reload();"><?php echo app('translator')->get('common.close'); ?></button>
							<button type="update" class="btn btn-success button border-0"><?php echo app('translator')->get('common.update'); ?></button>
						</div>
					</div>
				</form>
			</div> <!-- end card body-->
		</div> <!-- end card -->
	</div><!-- end col-->
</div>



<script src="<?php echo e(asset('assets/js/vendor/quill.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/pages/demo.quilljs.js')); ?>"></script>


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


<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/gzmcfenigov/public_html/resources/views/admin/vice_principal/index.blade.php ENDPATH**/ ?>