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