@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 ngMambkongregasyonApp = angular.module('ngMambkongregasyonApp', [], function($interpolateProvider)
    {$interpolateProvider.startSymbol('<%'); $interpolateProvider.endSymbol('%>'); });
    ngMambkongregasyonApp.controller('ngMambkongregasyonAppcontroller', function($scope) {
    $scope.MambkongregasyonItem = {!! $data !!};
    $scope.usersubroles={!! App\Usersubroles::all()->toJson() !!};
    $('#Mambkongregasyon-form').Add({Type:'POST',Headers:{'X-CSRF-TOKEN':'<?php echo csrf_token();?>'}, ModuleName:'Mambkongregasyon', ModuleItemName:'MambkongregasyonItem', NgAppName:'ngMambkongregasyonApp'});
    $('#Mambkongregasyon-form').Edit({Type:'GET',Headers:{'X-CSRF-TOKEN':'<?php echo csrf_token();?>'}, ModuleName:'Mambkongregasyon', ModuleItemName:'MambkongregasyonItem', NgAppName:'ngMambkongregasyonApp'});
    $('#Mambkongregasyon-form').Delete({Type:'DELETE',Headers:{'X-CSRF-TOKEN':'<?php echo csrf_token();?>'}, ModuleName:'Mambkongregasyon', ModuleItemName:'MambkongregasyonItem', NgAppName:'ngMambkongregasyonApp'});
    $('#Mambkongregasyon-form').Submit({Type:'POST',Headers:{'X-CSRF-TOKEN':'<?php echo csrf_token();?>'}, ModuleName:'Mambkongregasyon', ModuleItemName:'MambkongregasyonItem', NgAppName:'ngMambkongregasyonApp'});
    });
</script>
@stop
@section('content')
<div class="">
    <div class="page-title">
        <div class="title_left">
            <h3>View Mambkongregasyon</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="ngMambkongregasyonApp" ng-controller="ngMambkongregasyonAppcontroller" id="Mambkongregasyon-form" class="form-horizontal form-label-left" method="post" action='{!! route("Mambkongregasyoncreateorupdate") !!}' autocomplete="off">
                        <input type="hidden" name="_token" value="{{ csrf_token()}}" />
                        <table class="table table-striped" ><tr><td >First Name</td><td><%MambkongregasyonItem.firstname%></td></tr><tr><td >LastName</td><td><%MambkongregasyonItem.lastname%></td></tr><tr><td >Address1</td><td><%MambkongregasyonItem.address1%></td></tr><tr><td >address2</td><td><%MambkongregasyonItem.address2%></td></tr><tr><td >City</td><td><%MambkongregasyonItem.city%></td></tr><tr><td >State</td><td><%MambkongregasyonItem.state%></td></tr><tr><td >Zip</td><td><%MambkongregasyonItem.zip%></td></tr><tr><td >Role</td><td   ng-repeat=" usersubrolesitem in usersubroles" ng-show="MambkongregasyonItem.role==usersubrolesitem.id" ><%usersubrolesitem.subrole%></td></tr></table>
                        <input ng-model='MambkongregasyonItem.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