PHP Classes

File: resources/views/central/backend/includes/permissions.blade.php

Recommend this page to a friend!
  Classes of Nyi Nyi Lwin   Laravel SAAS Boilerplate   resources/views/central/backend/includes/permissions.blade.php   Download  
File: resources/views/central/backend/includes/permissions.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Laravel SAAS Boilerplate
Base application to develop software as a service
Author: By
Last change:
Date: 1 year ago
Size: 697 bytes
 

Contents

Class file image Download
@foreach($permissions as $permission)
    <li class="w-1/3 mb-2">
        <input type="checkbox" name="permissions[]" class="h-5 w-5 text-indigo-600"
               {{ in_array($permission->id, $usedPermissions ?? [], true) ? 'checked' : '' }} value="{{ $permission->id }}" id="{{ $permission->id }}"
        >
        <label for="{{ $permission->id }}" class="inline-flex items-center mt-3">
            <span class="ml-2 text-gray-700">{{ $permission->description ?? $permission->name }}</span>
        </label>
        @if($permission->children->count())
            @include('central.backend.role.includes.children', ['children' => $permission->children])
        @endif
    </li>
@endforeach