@extends('dashboard.layouts.index') @section('page_title') @lang('global.create_permeations') @stop @section('breadcrumb') @stop @section('content')
id)}}" novalidate method="POST"> @csrf

@lang("global.admin_permeation")

@foreach($model['permission'] as $key => $permission)

@lang("global.$key")

@foreach($permission as $p) @if(auth()->user()->getRoleNames()[0] == "super-admin")
hasPermissionTo($key . "_" . $p)) checked @endif>
@else @if(auth()->user()->permissions()->where("name" , $key . "_". $p )->first())
hasPermissionTo($key . "_" . $p)) checked @endif>
@endif @endif @endforeach
@endforeach
@stop @push('js') @endpush