<?php $__env->startSection('head'); ?>
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo asset('assets/css/custom.css'); ?>" />
<script type="text/javascript" src="<?php echo asset('assets/js/ng-form-plugin.js'); ?>"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.1/angular.js" ></script>
    <!-- PNotify -->
    <script type="text/javascript" src="<?php echo e(asset('assets/js/notify/pnotify.core.js')); ?>"></script>
    <script type="text/javascript" src="<?php echo e(asset('assets/js/notify/pnotify.buttons.js')); ?> "></script>
    <script type="text/javascript" src="<?php echo e(asset('assets/js/notify/pnotify.nonblock.js')); ?>"></script>
<script stype="text/javascript">
    var ngUsersubrolesApp = angular.module('ngUsersubrolesApp', [], function($interpolateProvider)
    {$interpolateProvider.startSymbol('<%'); $interpolateProvider.endSymbol('%>'); });
    ngUsersubrolesApp.controller('ngUsersubrolesAppcontroller', function($scope) {
    $scope.user = [];
    
    $('#Usersubroles-form').Add({Type:'POST',Headers:{'X-CSRF-TOKEN':'<?php echo csrf_token();?>'}, ModuleName:'Usersubroles', ModuleItemName:'UsersubrolesItem', NgAppName:'ngUsersubrolesApp'});
    $('#Usersubroles-form').Edit({Type:'GET',Headers:{'X-CSRF-TOKEN':'<?php echo csrf_token();?>'}, ModuleName:'Usersubroles', ModuleItemName:'UsersubrolesItem', NgAppName:'ngUsersubrolesApp'});
    $('#Usersubroles-form').Delete({Type:'DELETE',Headers:{'X-CSRF-TOKEN':'<?php echo csrf_token();?>'}, ModuleName:'Usersubroles', ModuleItemName:'UsersubrolesItem', NgAppName:'ngUsersubrolesApp'});
    $('#Usersubroles-form').Submit({Type:'POST',Headers:{'X-CSRF-TOKEN':'<?php echo csrf_token();?>'}, ModuleName:'Usersubroles', ModuleItemName:'UsersubrolesItem', NgAppName:'ngUsersubrolesApp',
    callback:function(){ window.location.replace('<?php echo route("UsersubrolesIndex"); ?>'); } });
    });
</script>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="">
    <div class="page-title">
        <div class="title_left">
            <h3>Add new Usersubroles record</h3>
        </div>
    </div>
    <div class="clearfix"></div>
    <div class="row">
        <div class="col-md-12 col-sm-12 col-xs-12">
            <div class="x_panel">
                <div class="x_title">
                    <div class="row">
                       <div class="col-md-8 col-sm-8 col-xs-7"><h2>Usersubroles</h2></div>
                    </div>
                    <div class="clearfix"></div>
                </div>
                <div class="x_content">
                    <form  ng-app="ngUsersubrolesApp" ng-controller="ngUsersubrolesAppcontroller" id="Usersubroles-form" class="form-horizontal form-label-left" method="post" action='<?php echo route("Usersubrolescreateorupdate"); ?>' autocomplete="off">
                        <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>" />
                        <div class="form-group"><label class="control-label col-md-3 col-sm-3 col-xs-12" for="subrole"> SubRole <span class="required">*</span></label><div class="col-md-6 col-sm-6 col-xs-12"><input ng-model="UsersubrolesItem.subrole" type="text" id="subrole" name="subrole" required="required" class="form-control col-md-7 col-xs-12" ><label ng-repeat="error in moduleerrors.errors.subrole" ng-bind="error" class="error_label"   ></div></div><div class="form-group"><label class="control-label col-md-3 col-sm-3 col-xs-12" for="subrole_priority"> Sub-Role Priority <span class="required">*</span></label><div class="col-md-6 col-sm-6 col-xs-12"><input ng-model="UsersubrolesItem.subrole_priority" type="text" id="subrole_priority" name="subrole_priority" required="required" class="form-control col-md-7 col-xs-12" ><label ng-repeat="error in moduleerrors.errors.subrole_priority" ng-bind="error" class="error_label"   ></div></div>
                        <input ng-model='UsersubrolesItem.id' type="text" id="id" name="id" style="display: none" />
                        <div class="ln_solid"></div>
                        <div class="form-group">
                            <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
                                <button type="reset" class="btn btn-primary cancel">Cancel</button>
                                <button type="submit" class="btn btn-success">Submit</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('footer'); ?>
<script type="text/javascript">
    $(document).ready(function() {
        var ajaxAction=function(url,action){ 
            $.ajax({url:url,type:action,data:{'_token':"<?php echo e(csrf_token()); ?>" ,'selected_rows':SelectedCheckboxes() },success:function(){ ListTable.ajax.reload(); }}); 
        }
        $.ajaxSetup({
            headers: { 'X-CSRF-TOKEN':'<?php echo e(csrf_token()); ?>','X-Requested-With': 'XMLHttpRequest'}
        });
    });
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\laragon\www\AppBuilder\resources\views/Usersubroles_add.blade.php ENDPATH**/ ?>