@extends('layouts.master')
@section('head')
<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>
<script stype="text/javascript">
    var ngUsersubrolesApp = angular.module('ngUsersubrolesApp', [], function($interpolateProvider)
    {$interpolateProvider.startSymbol('<%'); $interpolateProvider.endSymbol('%>'); });
    ngUsersubrolesApp.controller('ngUsersubrolesAppcontroller', function($scope) {
    $scope.UsersubrolesItem = {!! $data !!};
    
    $('#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'});
    });
</script>
@stop
@section('content')
<div class="">
    <div class="page-title">
        <div class="title_left">
            <h3>View Usersubroles</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_content">
                    <form  ng-app="ngUsersubrolesApp" ng-controller="ngUsersubrolesAppcontroller" id="Usersubroles-form" class="form-horizontal form-label-left" method="post" action='{!! route("Usersubrolescreateorupdate") !!}' autocomplete="off">
                        <input type="hidden" name="_token" value="{{ csrf_token()}}" />
                        <table class="table table-striped" ><tr><td >SubRole</td><td><%UsersubrolesItem.subrole%></td></tr><tr><td >Sub-Role Priority</td><td><%UsersubrolesItem.subrole_priority%></td></tr></table>
                        <input ng-model='UsersubrolesItem.id' type="text" id="id" name="id" style="display: none" />
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
@stop

@section('footer')
<script type="text/javascript">
    $(document).ready(function() {
        var ajaxAction=function(url,action){ 
            $.ajax({url:url,type:action,data:{'_token':"{{ csrf_token()}}" ,'selected_rows':SelectedCheckboxes() },success:function(){ ListTable.ajax.reload(); }}); 
        }
        $.ajaxSetup({
            headers: { 'X-CSRF-TOKEN':'{{ csrf_token() }}','X-Requested-With': 'XMLHttpRequest'}
        });
    });
</script>
@stop