u
Cette révision appartient à :
Parent
73a18b7775
révision
7cb52ca2b3
@ -195,9 +195,9 @@ class="feather feather-log-out">
|
||||
<span class="nav-text">Dashboard</span>
|
||||
</a>
|
||||
<ul aria-expanded="false">
|
||||
<li><a href="index.html">Dashboard 1</a></li>
|
||||
<li><a href="index-2.html">Dashboard 2</a></li>
|
||||
<li><a href="index-3.html">Dashboard 3</a></li>
|
||||
<li><a href="{{route('dashboard')}}">Dashboard 1</a></li>
|
||||
<li><a href="{{route('dashboard')}}">Dashboard 2</a></li>
|
||||
<li><a href="{{route('dashboard')}}">Dashboard 3</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a class="ai-icon" href="event-management.html" aria-expanded="false">
|
||||
@ -513,6 +513,8 @@ class="feather feather-log-out">
|
||||
toastr.error("{{ Session::get('error') }}");
|
||||
@endif
|
||||
</script>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.css" />
|
||||
{!! Toastr::message() !!}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@ -52,13 +52,11 @@ class="nav-link btn-primary mr-1 show active">List View</a></li>
|
||||
<div class="col-lg-12">
|
||||
<div class="row tab-content">
|
||||
<div id="list-view" class="tab-pane fade active show col-lg-12">
|
||||
<div class="card">
|
||||
<div class="card px-3 rounded">
|
||||
<div class="card-header">
|
||||
<h4 class="card-title">All Role List </h4>
|
||||
<a href="{{route('role.create')}}" class="btn btn-primary">+ Add new</a>
|
||||
<h4 class="card-title">{{$role->type}}</h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<h4>{{$role->type}}</h4>
|
||||
@php
|
||||
$routes=array();
|
||||
$auto_accept=array('GET',"DELETE");
|
||||
@ -76,31 +74,31 @@ class="nav-link btn-primary mr-1 show active">List View</a></li>
|
||||
@endphp
|
||||
@endif
|
||||
@endforeach
|
||||
<div class="basic-form">
|
||||
<form action="{{route('permission.save',encryptor('encrypt',$role->id))}}" method="post"
|
||||
enctype="multipart/form-data">
|
||||
@csrf
|
||||
<div class="row">
|
||||
@forelse($routes as $k=>$r)
|
||||
<div class="col-lg-6 col-md-6 col-sm-12">
|
||||
<input type="checkbox" onchange="checkAll(this)"> {{__($k)}}
|
||||
<input type="checkbox" onchange="checkAll(this)" class="form-check-input">
|
||||
<strong>{{__($k)}}</strong>
|
||||
<div class="form-group">
|
||||
<div class="form-check form-check-inline">
|
||||
@if($r)
|
||||
<ul class="list-group">
|
||||
@foreach($r as $name)
|
||||
@if(in_array($name['method'],$auto_accept))
|
||||
<li class="list-group-item">
|
||||
<label class="form-check-label">
|
||||
@if(in_array($k.'.'.$name['function'],$permissions))
|
||||
<input type="checkbox" checked name="permission[]"
|
||||
value="{{$k.'.'.$name['function']}}">
|
||||
<input type="checkbox" checked name="permission[]" value="{{$k.'.'.$name['function']}}">
|
||||
{{__($name['function'])}}
|
||||
@else
|
||||
<input type="checkbox" name="permission[]"
|
||||
value="{{$k.'.'.$name['function']}}">
|
||||
<input type="checkbox" name="permission[]" value="{{$k.'.'.$name['function']}}">
|
||||
{{__($name['function'])}}
|
||||
@endif
|
||||
</li>
|
||||
</label>
|
||||
@endif
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@empty
|
||||
@ -110,9 +108,8 @@ class="nav-link btn-primary mr-1 show active">List View</a></li>
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
<button type="submit" class="btn btn-light">Cencel</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -204,3 +201,4 @@ function checkAll(e){
|
||||
</script>
|
||||
|
||||
@endpush
|
||||
|
||||
|
||||
Chargement…
Référencer dans un nouveau ticket
Block a user