Viewing file: 3fd9917a9fef2234183e667928a176c6.php (3.69 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title','Groups'); ?>
<?php $__env->startSection('extra-css'); ?>
<link rel="stylesheet" href="<?php echo e(asset('plugins/select2/css/select2.min.css')); ?>">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-12 mx-auto col-sm-10 mt-3">
<div class="card">
<div class="card-header">
<h2 class="card-title"><?php echo app('translator')->get('customer.new_group'); ?></h2>
<a class="btn btn-info float-right"
href="<?php echo e(route('customer.from-group.index')); ?>"><?php echo app('translator')->get('customer.back'); ?></a>
</div>
<!-- /.card-header -->
<!-- form start -->
<form method="post" role="form" id="groupForm" action="<?php echo e(route('customer.from-group.store')); ?>"
enctype="multipart/form-data">
<?php echo csrf_field(); ?>
<div class="card-body">
<?php echo $__env->make('customer.from_group.form', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
<!-- /.card-body -->
<div class="card-footer">
<button type="submit" class="btn btn-primary"><?php echo app('translator')->get('customer.submit'); ?></button>
</div>
</form>
</div>
</div>
<!-- /.card -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</section>
<!-- /.content -->
<?php $__env->stopSection(); ?>
<?php $__env->startSection('extra-scripts'); ?>
<script src="<?php echo e(asset('plugins/jquery-validation/jquery.validate.min.js')); ?>"></script>
<script src="<?php echo e(asset('plugins/select2/js/select2.full.min.js')); ?>"></script>
<script !src="">
"use strict";
$('#groupForm').validate({
rules: {
name: {
required: true,
},
status: {
required: true,
}
},
messages: {
name: "Name is required"
},
errorElement: 'span',
errorPlacement: function (error, element) {
error.addClass('invalid-feedback');
element.closest('.form-group').append(error);
},
highlight: function (element, errorClass, validClass) {
$(element).addClass('is-invalid');
},
unhighlight: function (element, errorClass, validClass) {
$(element).removeClass('is-invalid');
}
});
$(document).on('change','#senderType',function (e) {
const type = $(this).val();
$('.numbers-section').hide();
$('#' + type + "_section").show();
$('.select2').select2({
multiple:true
}).val('').change();
});
$('.select2').select2({
multiple:true
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.customer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\Project\Pico-SMS-v-2\picosms\resources\views/customer/from_group/create.blade.php ENDPATH**/ ?>
|